Hello,
I have installed a Centos 5.3 on vmware esx server 3i, 3.5.5, 110271.
I have given it 2 cpu's and 4gb og memory. However it uses a lot of memory, but I cant find out on what?
This is how it looks after startup, 1,2gb
Tasks: 94 total, 1 running, 93 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3896208k total, 1242996k used, 2653212k free, 23528k buffers
Swap: 5931000k total, 56k used, 5930944k free, 1117636k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14390 gdm 17 0 31368 14m 7040 S 0.0 0.4 0:04.27 gdmgreeter
2181 root 15 0 13340 4792 1004 S 0.0 0.1 0:00.57 python
14369 root 17 0 14516 4584 3404 S 0.0 0.1 0:02.57 Xorg
2565 root 25 0 27460 4220 3580 S 0.0 0.1 0:03.03 gdm-rh-security
2367 haldaemo 18 0 5652 3748 1700 S 0.0 0.1 0:04.07 hald
2488 root 15 0 15528 2904 2344 S 0.0 0.1 0:00.15 gdm-binary
13656 root 15 0 9980 2852 2292 S 0.0 0.1 0:04.44 sshd
This while running a basic unzip command on a large file.
top - 10:26:46 up 19:04, 3 users, load average: 0.82, 0.27, 0.12
Tasks: 95 total, 2 running, 93 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.1%us, 25.1%sy, 0.0%ni, 49.3%id, 17.2%wa, 0.2%hi, 0.2%si, 0.0%st
Mem: 3896208k total, 1857116k used, 2039092k free, 24364k buffers
Swap: 5931000k total, 56k used, 5930944k free, 1731900k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15418 root 18 0 1844 604 452 R 65.1 0.0 0:37.41 unzip
15419 root 15 0 2196 996 796 R 1.3 0.0 0:00.56 top
16 root 10 -5 0 0 0 S 0.3 0.0 0:03.58 kblockd/1
1984 root 15 0 2340 940 764 S 0.3 0.0 2:54.63 vmware-guestd
13656 root 15 0 9980 2852 2292 S 0.3 0.1 0:04.52 sshd
1 root 15 0 2064 588 512 S 0.0 0.0 0:00.92 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.82 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/0
After an unzip finished .. over 2gb. Running an unzip ate 1gb of memory
top - 10:27:52 up 19:05, 3 users, load average: 0.75, 0.37, 0.17
Tasks: 94 total, 1 running, 93 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3896208k total, 2342816k used, 1553392k free, 24948k buffers
Swap: 5931000k total, 56k used, 5930944k free, 2217024k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15419 root 15 0 2196 996 796 R 0.7 0.0 0:00.97 top
14147 root 15 0 9980 2832 2288 S 0.3 0.1 0:01.23 sshd
1 root 15 0 2064 588 512 S 0.0 0.0 0:00.92 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.82 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/0
After running a tar -xvf finished it looks like this... 2.5gb
top - 10:29:53 up 19:07, 3 users, load average: 0.80, 0.48, 0.22
Tasks: 94 total, 1 running, 93 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3896208k total, 2545624k used, 1350584k free, 27016k buffers
Swap: 5931000k total, 56k used, 5930944k free, 2417200k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15419 root 15 0 2196 996 796 R 0.3 0.0 0:01.67 top
1 root 15 0 2064 588 512 S 0.0 0.0 0:00.92 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.82 migration/0
3 root 39 19 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/0
after waiting 5 minutes from the tar job finished... it still uses 2.5gb of memory.
top - 10:35:17 up 19:13, 3 users, load average: 0.00, 0.15, 0.15
Tasks: 94 total, 1 running, 93 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.2%us, 2.2%sy, 0.1%ni, 95.8%id, 0.5%wa, 0.1%hi, 0.1%si, 0.0%st
Mem: 3896208k total, 2545624k used, 1350584k free, 27420k buffers
Swap: 5931000k total, 56k used, 5930944k free, 2417200k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 15 0 2064 588 512 S 0.0 0.0 0:00.92 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.83 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:01.10 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/1
I have just a simple centos 5.3 install. I have not installed anything myself. Eventually it reaches the 4gb max memory and everything slows to a halt ...
Why is it behaving like this???
Chris