www.ntnu.no *
INFOWEB >  programs >  unix  > Avoid getting your simulation killed
Tasks
You may add comments
Or e-mail this article
Read articles written by majo
User rating
How much did this article help you?
Much Some Little
Print preview
You do not need a 'printer-friendly page' to print this page. Here's why

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.


Languages: en flag_no Comments: 0 Aid: 257 User rating:
 
 
Last updated: 2007-07-03 Author: majo Read: 1280 times