Find the answer to your Linux question:
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: ...
  1. #1
    Just 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:
    Code:
    Mem:   8165428k total,  8109988k used,    55440k free,    65772k buffers
    Swap:  4194296k total,   135596k used,  4058700k free,  6739936k cached
    On calculation, it shows it has only 7.7 Gb of memory if I calculate ( using 1 Gb = 1024*1024 Kb).

    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 ?

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,943
    With top running. Open another terminal and type in

    Code:
    free
    compare the readouts.
    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

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    6
    free also gives me the same amount of memory, ie 8165428KB

    Quote Originally Posted by rokytnji View Post
    With top running. Open another terminal and type in

    Code:
    free
    compare the readouts.

  4. #4
    Linux Guru Rubberman's Avatar
    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!

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    13
    Quote Originally Posted by Rubberman View Post
    The .3gb missing memory is probably file system cache. It will be released to the OS for running programs as necessary.
    so low system cache ?

  6. #6
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,943
    free also gives me the same amount of memory, ie 8165428KB
    So you know it is not a top thing. Since you did not post the free readout.

    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

  7. #7
    Just 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?

  8. #8
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...