/proc, machine specs, top

Here are various ways to see what kind of machines we have.

WASABI[~]$ cat /proc/cpuinfo 
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 4
model name	: Quad-Core AMD Opteron(tm) Processor 2387
stepping	: 2
cpu MHz		: 2800.114
cache size	: 512 KB
...

WASABI[~]$ cat /proc/meminfo 
MemTotal:       16466936 kB
MemFree:        15658856 kB
Buffers:          213560 kB
Cached:           146600 kB
SwapCached:            0 kB
Active:           138308 kB
...

$ for i in `cat /usr/swat/db/hosts.robotlab `
more> do
more> echo $i
more> ssh $i "cat /proc/cpuinfo | grep 'model name'"
more> done
cardamom
model name	: Quad-Core AMD Opteron(tm) Processor 2387
model name	: Quad-Core AMD Opteron(tm) Processor 2387
model name	: Quad-Core AMD Opteron(tm) Processor 2387
model name	: Quad-Core AMD Opteron(tm) Processor 2387
cilantro
model name	: Quad-Core AMD Opteron(tm) Processor 2387
model name	: Quad-Core AMD Opteron(tm) Processor 2387
model name	: Quad-Core AMD Opteron(tm) Processor 2387
model name	: Quad-Core AMD Opteron(tm) Processor 2387
...
...

We also try to keep this page up-to-date:

http://www.cs.swarthmore.edu/help/machines.html

Running top on any lab machine shows real-time info about what is happening on that machine. Hitting "1" while top is running shows more info for each core.

SPINACH[~]$ top 

top - 13:53:27 up 97 days,  5:21,  6 users,  load average: 0.05, 0.05, 0.07
Tasks: 204 total,   1 running, 203 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.2%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  16464428k total, 10702976k used,  5761452k free,   469560k buffers
Swap:  2072348k total,        0k used,  2072348k free,  8735016k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                           
 1287 root      20   0  171m  68m  16m S    4  0.4 175:43.04 Xorg                              
    1 root      20   0 24144 2224 1288 S    0  0.0   0:26.45 init                              
    2 root      20   0     0    0    0 S    0  0.0   0:03.09 kthreadd                          
    3 root      20   0     0    0    0 S    0  0.0   0:37.05 ksoftirqd/0                       
    6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0                       
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1                       
    9 root      20   0     0    0    0 S    0  0.0   0:38.86 ksoftirqd/1                     
...