Memory Management on RHEL4
Jai Rangi
jrangi at automotive.com
Thu Jun 19 23:19:32 UTC 2008
Did a lot of googling without much success, and now I am here for some
help on Memory Management.
I have total of 8GB RAM, on two servers
Out put from free command,
On Machine 1
total used free shared buffers
cached
Mem: 8104664 8084304 20360 0 7848
64284
-/+ buffers/cache: 8012172 92492
Swap: 2031608 1001964 1029644
On Machine 2
total used free shared buffers
cached
Mem: 8104664 3571624 4533040 0 30568
1016700
-/+ buffers/cache: 2524356 5580308
Swap: 2031608 0 2031608
When I run this command on machine1 and machine2
ps -eo pid,size,vsize,cmd --sort -size | head -n 25 | awk '{print $1
"\t" $2 "\t" $3 "\t" $4}'
I get these results,
machine1
Machine2
PID
SZ
VSZ
CMD
PID
SZ
VSZ
CMD
30394
2950768
3083044
/usr/java/jdk1.5.0_12/bin/java
4164
2120244
2251492
/usr/java/jdk1.5.0_12/bin/java
11497
1342440
1568004
java
4054
1281480
1507044
java
32390
600596
727888
/usr/java/jdk1.5.0_12/bin/java
4256
501332
730232
/usr/java/jdk1.5.0_12/bin/java
29523
561132
790028
/usr/java/jdk1.5.0_12/bin/java
4320
490952
724420
/usr/java/jdk1.5.0_12/bin/java
31848
529884
664404
/usr/java/jdk1.5.0_12/bin/java
4195
488836
616132
/usr/java/jdk1.5.0_12/bin/java
12880
525296
653620
/usr/java/jdk1.5.0_12/bin/java
4227
476356
604680
/usr/java/jdk1.5.0_12/bin/java
9446
510412
641028
/usr/java/jdk1.5.0_12/bin/java
4291
467356
597976
/usr/java/jdk1.5.0_12/bin/java
21577
508136
636456
/usr/java/jdk1.5.0_12/bin/java
4348
465068
593392
/usr/java/jdk1.5.0_12/bin/java
2597
293032
387356
/opt/hp/hpsmh/sbin/hpsmhd
2765
280936
375268
/opt/hp/hpsmh/sbin/hpsmhd
2943
113012
114728
hpasmd
3108
113008
114724
hpasmd
3015
61672
63280
cmahealthd
3184
61804
63412
cmahealthd
3010
20696
22304
cmastdeqd
3175
20696
22304
cmastdeqd
27383
16752
101584
/usr/sbin/snmpd
2456
16780
101612
/usr/sbin/snmpd
2961
10892
12620
cmapeerd
3128
10892
12620
cmapeerd
3112
10628
13080
cmafcad
3276
10628
13080
cmafcad
2970
10592
12492
cmahostd
3141
10596
12496
cmahostd
11495
10476
15552
/usr/local/wrapper/bin/wrapper
4052
10476
15552
/usr/local/wrapper/bin/wrapper
3243
10448
19892
dbus-daemon-1
3412
10448
19892
dbus-daemon-1
3110
10436
11960
cmaided
3278
10436
11960
cmaided
3263
3944
17824
hald
3434
3944
17824
hald
2573
3132
96388
/opt/hp/hpsmh/sbin/hpsmhd
2739
3324
96588
/opt/hp/hpsmh/sbin/hpsmhd
2490
1592
34996
sendmail:
2551
1592
34996
sendmail:
2498
1448
27788
sendmail:
2559
1448
27788
sendmail:
2584
940
57080
crond
2800
1044
10260
xfs
Total
8108356
Total
6859676
1. Why the total on Machine 2 is not same as Memory used,
2. On machine 1, what is using 1 GB from SWAP.
Thank you,
Jai Rangi
More information about the redhat-list
mailing list