dib-lab / farm-notes

notes on the farm cluster
16 stars 9 forks source link

attaching to a node running a job in order to inspect processes, e.g. `top` #68

Open ctb opened 7 months ago

ctb commented 7 months ago

what if you are running something on a node and you want to figure out how to inspect it, by e.g. using top to look at its memory and CPU usage?

something like:

srun -p high2 --pty -w cpu-3-57 --time=5:00:00 /bin/bash

will attach to node cpu-3-57 for five minutes, and let you run things on that node with otherwise default memory etc parameters (for me, 2 GB of RAM, 2 CPUs, 1 node)

per https://ask.cyberinfrastructure.org/t/how-to-attach-to-a-running-job-to-run-top-on-compute-node/912