Child pages
  • Hyak_memory
Skip to end of metadata
Go to start of metadata

Method 1 (for interactive jobs)

Below are steps to find out how much memory your application is using while it is running.

(1) Open two terminal windows on your desktop or laptop and ssh to hyak in both of them.

(2) On terminal window 1, get an interactive node:

 For ikt.hyak or mox.hyak (xyz is your group name):

    srun -p xyz -A xyz --time=4:00:00 --pty /bin/bash

(3) In terminal window 2, ssh to the node on terminal window 1:

For example if the node on terminal window 1 is n0123 then issue below command in terminal window 2

ssh n0123

(4) In terminal window 1, run your application.

(5) In terminal window 2, issue the top command. This command tells you how much cpu and memory your program is using.

     Your memory usage should remain well below 100% per core, your CPU usage should be close to 100% per core and there should be 16 copies of your program running on ikt.hyak and 28, 32 or 40 copies on mox.hyak.

(6) In terminal window 2, you can exit the top command by typing q.


Method 2 (for already completed jobs)

You can also find the memory used by  job 1234 after the program has ended by using sacct:

sacct --format="CPUTime,MaxRSS" -j 1234

For a running program you can use sstat:

sstat --format="CPUTime,MaxRSS" -j 1234

Method 3 (for running slurm sbatch jobs)

(1) Use below command to find the nodes on which your jbs is running. Here abc is your userid.

    squeue -u abc

(2) use below command to ssh to the node (e.g. n1234)

  ssh n1234

(3)  Issue the top command. This command tells you how much cpu and memory your program is using.

     Your memory usage should remain well below 100% per core, your CPU usage should be close to 100% per core and there should be 16 copies of your program running on ikt.hyak and 28, 32 or 40 copies on mox.hyak.



  • No labels