Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Memory release
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
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Tue Aug 15, 2006 1:45 pm    Post subject: Memory release Reply with quote

I have an old server run low on memory the other day and it started swapping. We have monitoring tools in place to alert us when this box runs low on memory. The montioring tool doesn't technically report back the true memory status. It shows the same thing something like top would but not like free which reports actual usage not just how much the OS has grabbed. Since the box ran low, the memory stats have shown that it isn't swapping anymore but the OS is still holding on to it incase it needs it again. We have corrected the issue and the box shouldn't swap again unless of course something else pops up.
My question is if there is a way other than turning the swap off/on to get the OS to release it's hold on that memory so it can report back to the monitoring app.

Thanks,
Nick
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Thu Aug 17, 2006 2:57 pm    Post subject: Re: Memory release Reply with quote

Kvetch wrote:
get the OS to release it's hold on that memory so it can report back to the monitoring app.


This seems like a bad idea to me. You want to reduce the performance of your server so that your monitoring app (which is querying the system different than you would like) can be more accurate?! Why not just fix the app? "free" can already tell you the number you want so you know it exists...

as far as swapping early...

Quote:
As a sysctl, the swappiness can be set at runtime with either of the following commands:
Code:
# sysctl -w vm.swappiness=30
# echo 30 >/proc/sys/vm/swappiness


The default when Gentoo boots can also be set in /etc/sysctl.conf:

Code:
# Control how much the kernel should favor swapping out applications (0-100)
vm.swappiness = 30

https://forums.gentoo.org/viewtopic.php?t=175419
_________________
emerge: there are no ebuilds to satisfy "moo"
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