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 -c 16 option to get all cores on a (standard) 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).

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).

memory_use_monitoring.1398281049.txt.gz · Last modified: 2014/04/23 15:24 by root