www.ntnu.no *
INFOWEB >  programs >  unix  > Avoid getting your simulation killed
Verktøy
Du kan legge til kommentarer
Eller sende denne artikkelen
Les artikler skrevet av majo
Brukervurdering
Hvor mye hjelp var det i denne artikkelen?
Mye Noe Lite
Forhåndsvisning
Du trenger ikke en 'utskriftsvennlig side' for å skrive ut denne siden. Forklaring

Avoid getting your simulation killed

Simulations are only permitted on solarislogin.stud.ntnu.no. All other machines are reserved for interactive use. No simulations are allowed on these machines!

You can specify the processes you do not want to get killed in a special file in your home directory. The file is called DONT_KILL_ME, and it should be readable by everyone (chmod a+r DONT_KILL_ME). In addition, your home directory must have the executable bit set for everyone (chmod a+x ~). The format for the file is as follows: [machinename]:[pid/ ProcessID]. Comments and emtpy lines are allowed.

To find the PID (Process ID), run the command ps. This lists all your running processes. Each one of these has a unique PID.

To kill a program, use the command kill -9 PID. Replace PID with the PID of your process.

An example:

kode #1
# Don't-kill-me file
#
# Matlab process running on panter
panter:12495
kode #2
# C++ simulation in CyberSpace
panter:42

NOTE: You will not be permitted to estimate/ simulate on other machines than panter. The simulations will be killed by a script.

Start processes that will run for a long time, with the nice command. E.g.:

kode #3
 nice -n 19 simulation

You can also renice the process after you have started it. You need to do this in order to make your processes recede for interactive processes. If you are running really heavy processes, which might take a while, you should do this after 6 pm when there is not to much interactive activity on the computer. If simulations do not have a nice:19 value, they will be killed immediatly by the SIGKILL.


Språk: en flag_no Kommentarer: 0 Aid: 257 Brukervurdering:
 
 
Sist oppdatert: 2007-07-03 Forfatter: majo Lest: 1274 ganger