You can use the qsh.pl tool to check the memory usage of jobs running on Aitken or Electra. This tool is a Perl script that uses Secure Shell (SSH) protocol to access all of the nodes used by a PBS job in order to run a command that you supply.
For Aitken and Electra jobs, you can run qsh.pl on the PFEs.
The qsh.pl tool is available in the /u/scicon/tools/bin directory.
TIP: You can either run module load scicon/cli/tools or add the directory to your shell startup script so that you can invoke qsh.pl without typing the full path each time. For example: set path = ( $path /u/scicon/tools/bin )
Syntax:
pfe21% qsh.pl job_id command
You can use this script to check the amount of free memory in the nodes of your PBS job.