<artikkel xmlns="" spraak="no" versjon="1.0">
  
<tittel>Avoid getting your simulation killed</tittel>
  
<forfatter>oymo</forfatter>
  
<sammendrag>When running a simulation you need to follow certain routines.</sammendrag>

<lenker><infoweb aid="128" tittel="VPN">VPN</infoweb>
</lenker>

  
<hoveddel>

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

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

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

    
<avsnitt>
        To kill a program, use the command 
<kommando>kill -9 PID</kommando>. Replace PID with the PID of your process. 
    
</avsnitt>

    
<avsnitt>
            An example:
    
</avsnitt>

<kode>
# Don't-kill-me file
#
# Matlab process running on panter
panter:12495
</kode>

<kode>
# C++ simulation in CyberSpace
panter:42
</kode>

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

<avsnitt>
        Start processes that will run for a long time, with the 
<trykk>nice</trykk>
        command. E.g.:
</avsnitt>

<kode> nice -n 19 simulation</kode>

<avsnitt>
        You can also 
<trykk>renice</trykk> 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 
<trykk>nice:19</trykk>
        value, they will be killed immediatly by the SIGKILL.
    
</avsnitt>

</hoveddel>
</artikkel>