Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[memory] Problem to flush unused memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ade05fr
Apprentice
Apprentice


Joined: 18 Sep 2006
Posts: 218

PostPosted: Mon Feb 21, 2011 7:40 am    Post subject: [memory] Problem to flush unused memory Reply with quote

Hello

i have a problem to understand the memory used by my gentoo apps.
I explain : With 2.5 Gb RAM i believe that my programs never flush memory after it stopped.

What is weird is that with top command it shows me for exemple

Tasks: 137 total, 1 running, 136 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.2%sy, 0.0%ni, 98.4%id, 1.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 2571692k total, 2154380k used, 417312k free, 35312k buffers
Swap: 1076316k total, 8k used, 1076308k free, 1805428k cached

but with gnome-monitor-system it indicates nearl 500 Mb used / 2.Gb

And it seems that top command is the "good" value.

Is it normal that these 2 commands indicates 2 differents values ?
How can i check if the memory is flush or not ?
How can i solve it ?

[Updated]
I saw that if i do "echo 1 > /proc/sys/vm/drop_cache"
my RAM memory is flushed
"Tasks: 156 total, 1 running, 155 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.2%us, 0.3%sy, 0.0%ni, 97.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2571692k total, 592960k used, 1978732k free, 996k buffers
Swap: 1076316k total, 8k used, 1076308k free, 98728k cached
"

but is it normal to do this manually ?

Thanks
Ade05fr
_________________
[LAPTOP]
DELL Inspiron 5110
i5-2450M CPU @ 2.50GHz
[LINUX-GENTOO]
Gentoo 2013-0
kernel 3.14-4
gnome 3.12
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 442

PostPosted: Mon Feb 21, 2011 9:01 am    Post subject: Reply with quote

Memory is there to be used. If no application needs it, the kernel takes it to
cache disk access and other things.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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