Results 1 to 8 of 8
Hi,
I am running a 64 bit RHEL 4 in one of mymachines with 8 Gb of physical memory.But when I run the top command, it outputs as below:
Code:
...
- 03-21-2011 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 6
top command memory calculation
Hi,
I am running a 64 bit RHEL 4 in one of mymachines with 8 Gb of physical memory.But when I run the top command, it outputs as below:
On calculation, it shows it has only 7.7 Gb of memory if I calculate ( using 1 Gb = 1024*1024 Kb).Code:Mem: 8165428k total, 8109988k used, 55440k free, 65772k buffers Swap: 4194296k total, 135596k used, 4058700k free, 6739936k cached
Where is .3Gb gone ? Again, it is a 64 bit machine..so should see all 8Gb. Is it mistake of top command calculating 1Gb=1024*1000Kb ?
- 03-21-2011 #2
With top running. Open another terminal and type in
compare the readouts.Code:free
Linux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 03-21-2011 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 6
- 03-21-2011 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
The .3gb missing memory is probably file system cache. It will be released to the OS for running programs as necessary.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-21-2011 #5
- 03-21-2011 #6So you know it is not a top thing. Since you did not post the free readout.free also gives me the same amount of memory, ie 8165428KB
linux - Meaning of the buffers/cache line in the output of free - Server Fault
Might explain that the kernel might be using the .3 of ram.Linux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 03-22-2011 #7Just Joined!
- Join Date
- Sep 2010
- Location
- Skövde, Sweden
- Posts
- 1
I suggest you install 'htop' for a better view of your computerstatuses. You can aswell sort, search and kill processes.
Install it by simply: sudo apt-get install htop
and run it by typing 'htop'.
Does that give you the same results as top and free?
- 03-22-2011 #8
unfortunately OP is running RHEL4, so the command you gave to install htop simply will not work
OP will have to use up2date to install, or download the RPM


Reply With Quote
