Find the answer to your Linux question:
Results 1 to 6 of 6
Dear reader, atm I use a centos VPS with 1gb memory and enough space and brandwidth (if this info is off any use). I am using this ded for fun ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8

    [SOLVED] Where is my CPU/MEM going?


    Dear reader,

    atm I use a centos VPS with 1gb memory and enough space and brandwidth (if this info is off any use). I am using this ded for fun (to date with linux ) and to host some gameservers.

    Now I am running 1 gameserver and 1 teamspeak (voice talk) server. This should be together (when not in use) maximal; 300mb.

    So now I did top as the root to check my memory and CPU and this is what came out;

    Code:
    top - 09:51:00 up 3 days, 20:17,  2 users,  load average: 0.00, 0.00, 0.00
    Tasks:  87 total,   1 running,  86 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.2%hi,  0.2%si,  0.0%st
    Mem:   1026960k total,   992576k used,    34384k free,    55548k buffers
    Swap:  2064376k total,       84k used,  2064292k free,   558920k cached
    Without the gameserver and voiceserver running:

    Code:
    top - 09:57:57 up 3 days, 20:24,  3 users,  load average: 0.00, 0.00, 0.00
    Tasks:  89 total,   1 running,  88 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.2%sy,  0.0%ni, 99.5%id,  0.0%wa,  0.3%hi,  0.0%si,  0.0%st
    Mem:   1026960k total,   692996k used,   333964k free,    56012k buffers
    Swap:  2064376k total,       84k used,  2064292k free,   559332k cached

    As you can see, I am using way too much of the 1gb but I dont understand where its going to. Can you sort in top on the processes using the most memory? And is there any thing I should know as a linux user what would less the memory much?

    Its not the purpose to use my swap memory.

    Greetings, Guido

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Linux doesn't handle Memory the way Windows OS does. Actual used memory might be much less than listed in the output because Linux cache a large chunk of memory as cached memory to load most used packages faster and manage buffers.
    Post the output of this
    Code:
    free -h
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    casper, I think you made typo or were thinking about df command

    should be
    Code:
    free -m
    for seeing true available/used memory

    also, you are looking at 99.5% IDLE CPU

  4. #4
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    It doesn't really matter how much RAM you put in your machine, Linux is set to fill it all up. The philosophy is that unused RAM is wasted RAM. This speeds the machine up considerably.

    When your RAM is completely filled up and you launch another app then other RAM is freed again. It only starts swapping when no more RAM can be freed up anymore.
    Can't tell an OS by it's GUI

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by coopstah13 View Post
    casper, I think you made typo or were thinking about df command

    should be
    Code:
    free -m
    for seeing true available/used memory

    also, you are looking at 99.5% IDLE CPU
    You are right coopstah13. Thanx for correcting me.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    Quote Originally Posted by Freston View Post
    It doesn't really matter how much RAM you put in your machine, Linux is set to fill it all up. The philosophy is that unused RAM is wasted RAM. This speeds the machine up considerably.

    When your RAM is completely filled up and you launch another app then other RAM is freed again. It only starts swapping when no more RAM can be freed up anymore.
    total used free shared buffers cached
    Mem: 1002 720 282 0 76 571
    -/+ buffers/cache: 72 930
    Swap: 2015 0 2015

    Ahhhh ty! That explains a lot! Otherwise I was like; darn, I'm scammed.

    Sorry for the late reply btw, my girlfriend and I see eachother every weekend. Thanks all

Posting Permissions

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