User Tools

Site Tools


memory_use_monitoring

This is an old revision of the document!


Memory Use Monitoring

Whole Node Monitoring

Suppose you have a program to run and you expect it to use a lot of memory, but are unsure of exactly how much.

  • Run it on a node reserved exclusively for you.
    • Use the –exclusive option to get a whole node.
  • Run a background program to monitor memory use on that node.

Files: memmon, memlog, leakmem

srun memmon

leakmem allocates 1MB of RAM every second (for up to 10000 seconds).

We use the SLURM_JOB_ID environment variable to get a unique name for the log file.

Single Program Monitoring

/proc/PID/smaps provides a detailed view of the memory being used by a specific process. You can parse it (or use some previously written Perl code, Linux::Smaps.pl).

Files: memmon2, memlog2, leakmem.

memory_use_monitoring.1415140858.txt.gz · Last modified: 2014/11/04 17:40 by root