Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
memory loaded for nothing !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
punter
Guru
Guru


Joined: 25 Nov 2002
Posts: 506

PostPosted: Wed Jan 01, 2003 11:45 pm    Post subject: memory loaded for nothing ! Reply with quote

My pc is running X, gnome-sessions, nautilus, kmail and xmms.

And as you can see, 497MB of my RAM is already gone, leaving me with 17MB free (out of 512MB).

I know RAM is supposed to be used, but this much for a PC which is practically doing nothing? doesnt this get classified as a bad memory management of kernel??

what can I do? is it normal? I dont think even windows does it this bad.

Code:
top - 23:38:56 up 3 days,  8:02,  2 users,  load average: 0.00, 0.00, 0.00
Tasks:  74 total,   4 running,  70 sleeping,   0 stopped,   0 zombie
Cpu(s):   0.0% user,   0.3% system,   0.0% nice,  99.7% idle
Mem:    515280k total,   497408k used,    17872k free,    50700k buffers
Swap:  1052248k total,    87492k used,   964756k free,   296044k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  Command
 3890 root      15   0  322m  37m 2364 S  0.0  7.4  39:34.71 X
 6358 shane     15   0 20056  13m 8768 S  0.0  2.8   2:29.04 kmail
 3912 shane     15   0 14868  11m 8128 S  0.0  2.2   1:34.59 gnome-panel
 3914 shane     15   0 17976  10m 8460 S  0.0  2.1   0:19.51 nautilus
 3935 shane     15   0 17976  10m 8460 S  0.0  2.1   0:00.00 nautilus
 3936 shane     15   0 17976  10m 8460 S  0.0  2.1   0:00.01 nautilus
 3937 shane     15   0 17976  10m 8460 S  0.0  2.1   0:00.11 nautilus
 3941 shane     15   0 17976  10m 8460 S  0.0  2.1   0:00.04 nautilus
 3945 shane     15   0 17976  10m 8460 S  0.0  2.1   0:00.04 nautilus
 3916 shane     15   0 10592 8932 6716 S  0.0  1.7   1:43.82 gnome-terminal
 3910 shane     15   0  7828 6992 5232 S  0.0  1.4   0:58.63 metacity
 17425 root     15   0 80800 6924 6924 S  0.0  1.3   0:01.47 wine
 3952 shane     15   0  8396 6832 6332 S  0.0  1.3   0:03.84 gkb-applet-2
 4057 root      15   0 11008 6536 5036 R  0.0  1.3   0:08.09 xmms
 4058 root      15   0 11008 6536 5036 S  0.0  1.3   0:00.01 xmms
 4059 root      15   0 11008 6536 5036 R  0.0  1.3   0:00.12 xmms
 4060 root      15   0 11008 6536 5036 S  0.0  1.3   0:00.00 xmms
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Wed Jan 01, 2003 11:56 pm    Post subject: Reply with quote

oh boy, your X is using 322MB. i dont think its normal.

there must be running some process that is using a lot (!!) of memory.

play around with "top" (from sys-apps/procps) a little bit. watch the fields VIRT, RES, SHR.

look at man top for what these fields mean.
Back to top
View user's profile Send private message
uncle_meat
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2002
Posts: 93

PostPosted: Wed Jan 01, 2003 11:56 pm    Post subject: Reply with quote

That "296044k cached" line refers to the amount of disk currently cached in memory. Subtract that, and you'll see the active processes are really only using about 200M.

Linux puts every scrap of RAM to use whenever possible. You should be thrilled that Linux is using almost 100% of your RAM, that means those DIMMs are doing something more than just sucking up power. :)
Back to top
View user's profile Send private message
jufoa
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 213
Location: Rovaniemi, Finland

PostPosted: Thu Jan 02, 2003 10:34 am    Post subject: Reply with quote

yes linux is using the memory left from running programs as cache and frees it up if new or running programs need it more. this is a normal operation of linux memory management.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum