Table of Contents
These are handy one line commands that can be used on most Linux systems. Areas covered include monitoring and controlling user processes, transferring files, executing commands on multiple machines simultaneously, etc.
Alter the Resource Parameter of a Job BEFORE it Starts
We only asked for 80 hours of walltime but need 100. Let's change that:
How about multiple parameters?:
Making these changes can and likely will, effect your job priority.
How many cores do I have?
A nice visual process monitor:
How much memory is available?
Inspect active process threading:
Get the command associated with a process:
Find out command details, resource utilization and threading by user:
Check swap usage by process, sorted in descending order:
Run Parallel Commands on Multiple Hosts
Perform an "rsync" to all compute nodes:
The above will sync the file "uniref100_release_2014_04" to a series of hosts named "compute-0-0" thru "compute-0-15". Note, in this case, it would be useful to have SSH keys setup so you aren't prompted for passwords on every host.
How about a listing of a common directory on every host:
Secure Transfers Using Ports Other than "22"
Performing an rsync to a machine using a different SSH port than "22" (in this example we use "58122"):
Now using SCP: