Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2003 23:17:27 -0700
From:      David Schultz <das@FreeBSD.ORG>
To:        Peter Edwards <pmedwards@eircom.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: vm_page_max_wired and gpg...
Message-ID:  <20030517061727.GC21878@HAL9000.homeunix.com>
In-Reply-To: <20030515073237.879E243FA3@mx1.FreeBSD.org>
References:  <20030515073237.879E243FA3@mx1.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 15, 2003, Peter Edwards wrote:
> The kernel has a "max wired pages" limit, that's set when the swapper
> starts up to be one third of physical memory. You can see this in
> src/sys/vm_pageout.c, on about line 1414:
> 
> > if (vm_page_max_wired == 0)
> >   vm_page_max_wired = cnt.v_free_count / 3;
> 
> This is pretty much a third of what you see at boot time (and in
> /var/log/messages or dmesg) for "avail memory = "
[...]
> For your purpose, making vm_page_max_wired a sysctl would probably
> fix the problem in the short term.

It could be made a tunable, but that's mostly just a footshooting
opportunity.  If you wire too much memory, the system will thrash
and possibly deadlock.  On the other hand, I suppose it could be
useful in systems with very little memory...



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