Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2006 20:10:53 +0400
From:      Alexander Polakov <polachok@narod.ru>
To:        freebsd-stable@freebsd.org
Subject:   Re: why the swapping
Message-ID:  <20060518201053.83e5e74d.polachok@narod.ru>
In-Reply-To: <200605180733.07375.x@vex.net>
References:  <200605180733.07375.x@vex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 May 2006 07:33:07 -0400
Tim Middleton <x@vex.net> wrote:

> 
> Running 6.0-release, with 2 gig ram. Typical memory stats like this (from 
> top):
> 
> 626M Active, 
> 1045M Inact, 
> 204M Wired, 
> 75M Cache, 
> 112M Buf, 
> 22M Free
> 
> Under moderately high load i'm seeing a lot of swapping periodically through 
> the day (and then load avg going way, way up, of course). I'm wondering why 
> is there, with so much inactive memory, so much disk swapping?
> 
> The machine runs some fairly intense stuff, such as squid, postgresql, and 
> zope; but it seems to me there should be enough RAM to cover all of this 
> without swapping. What am I missing? Am i misinterpretting the stats, and 
> just not understanding how the vm works?
> 
> -- 
> Tim Middleton | Vex.Net    | There is a wisdom that is woe; but there 
> x@veX.net     | VexTech.ca | is a woe that is madness. --Melville (MD)
> 
maybe you have to set
vm.swap_idle_enabled=0
or 
vm.swap_enabled=0 ?

-- 
Best regards. Alexander "polachok" Polakov 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060518201053.83e5e74d.polachok>