View previous topic :: View next topic |
Author |
Message |
pat Tux's lil' helper
Joined: 26 Aug 2002 Posts: 102 Location: Lausanne, Switzerland
|
Posted: Fri Mar 05, 2004 2:19 pm Post subject: [memory] why does it get full when I do quite nothing ? |
|
|
Hello !
I've got some trouble with memory. When I boot, vmstat 5 4 gives me:
Code: | procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 873784 6320 48524 0 0 2290 101 339 482 6 8 86 0
0 0 0 873780 6320 48524 0 0 0 0 201 80 0 0 100 0
0 0 0 873780 6320 48524 0 0 0 1 201 78 0 0 100 0
1 0 0 873776 6324 48524 0 0 0 0 202 79 0 0 100 0
|
and cat /proc/meminfo:
Code: | total: used: free: shared: buffers: cached:
Mem: 1056264192 161533952 894730240 0 6520832 49688576
Swap: 1028149248 0 1028149248
MemTotal: 1031508 kB
MemFree: 873760 kB
MemShared: 0 kB
Buffers: 6368 kB
Cached: 48524 kB
SwapCached: 0 kB
Active: 19720 kB
Inactive: 35272 kB
HighTotal: 129472 kB
HighFree: 20516 kB
LowTotal: 902036 kB
LowFree: 853244 kB
SwapTotal: 1004052 kB
SwapFree: 1004052 kB
|
This is a normal situation (from my point of view).
But after some time, my RAM is almost fully occupied... But all my apps are launched from a while !
Here is a partial output of vmstat 600 in that case :
Code: |
(* after 8 hours*)
0 0 0 11296 279152 83816 0 0 803 33 403 784 6 5 89 0
(* and just 600s before *)
0 0 0 693092 17248 117592 0 0 0 0 201 292 0 0 100 0
|
Note that I launch the previous command just before leaving my office on evening.
That sitution started at the end of last year with 2.4.22 kernel series, and no kernel versions could arrange it from that time...
The problem would not be so dramatic if I would not use such program as matlab doing image treatment... For example, I've got an array of about 125 MB, if I try to do a surface plot, my swap get completely full as quick as possible for my HD allows it, and my system hangs : first, my fluxbox sessions is terminated, as X is restarted... then, all my processes are zombies, and my PC init process is using 99%+ of my CPU. If I go to a virtual console, I have a big big font, and when I try to use it, I've got rapidly disapointed : nothing appears in the prompt until I press myself the return key... I'm not guru at all, so all I can do is press the power button
Any suggestions is very welcomed, please I do really need some help to know the origin of my problems.
Thank you very much. |
|
Back to top |
|
|
ZothOmmog Apprentice
Joined: 05 May 2003 Posts: 216 Location: Nashville, TN
|
Posted: Fri Mar 05, 2004 3:11 pm Post subject: |
|
|
Linux, as a rule, is very memory intensive. Unlike Windows which moves anything it can into swap, Linux uses every last bit of memory it can & relies on swap only when it needs it. _________________ -It's gonna take a lot of fireworks to clean this place up. |
|
Back to top |
|
|
pat Tux's lil' helper
Joined: 26 Aug 2002 Posts: 102 Location: Lausanne, Switzerland
|
Posted: Fri Mar 05, 2004 3:43 pm Post subject: |
|
|
Sure, but previously my memory was mainly used by "cache", now it is just "used+shared" !
I may be wrong, but it's not really the same or ?!
Thanks ! |
|
Back to top |
|
|
|
|
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
|
|