Personal tools
You are here: Home cm Wiki HPC tips
Views
FrontPage >>

HPC tips

last edited 4 months ago by snie007
To find out the memory used by your code type
 ps -elf | grep username

The top line giving the labels will not be printed but it can be worked out
    F    S  UID     PID    PPID     C PRI NI ADDR        SZ    WCHAN    STIME     TTY    TIME   CMD
  240001 A  snie007 243278 472762   0  60 20 1231922400  1460          20:15:16  pts/1   0:00 -tcsh
   40001 A  snie007 263918 583172   1  60 20 101811400   2024          19:43:29      -   0:00  sshd: snie007@pts/2

size	   SZ	    approximate amount of swap space that would be required if
		    the process were to dirty all writable pages and then be
		    swapped out. This number is very rough!
time	   TIME     cumulative CPU time, "[dd-]hh:mm:ss" format.
		    (alias cputime).