View previous topic :: View next topic |
Author |
Message |
Kvetch Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/163654297444640480e813.jpg)
Joined: 29 Apr 2004 Posts: 318 Location: /dev/null, VA
|
Posted: Tue Aug 15, 2006 1:45 pm Post subject: Memory release |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
coolsnowmen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/2048126856430177a506846.gif)
Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Thu Aug 17, 2006 2:57 pm Post subject: Re: Memory release |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|