Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2007 10:06:16 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Randall Stewart <rrs@cisco.com>
Subject:   Re: Zone memory for UMA
Message-ID:  <200701201006.17619.jhb@freebsd.org>
In-Reply-To: <45AF7C3A.2080303@cisco.com>
References:  <45AF7C3A.2080303@cisco.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 18 January 2007 08:55, Randall Stewart wrote:
> Hi all:
> 
> Query (with flame suit in place :-D)
> 
> Currently the UMA zone's will hold all memory
> in them until .. well until the page deamon
> runs.. or so the "zone_drain()" comment says.. but
> I can't find that connection either. So I guess
> not at all :-0

uma_reclaim() drains all zones when it is called.  It is called by the
pagedaemon when it is woken up to free some memory.

> Should we think about adding some sort of garbage
> collector thread.. that could hang around slowly and
> periodically look for a zone with large numbers of free
> pages... and then drain that zone?

pagedaemon is a sort of GC thread, but it kicks in whenever the system
is low on memory and asks other subsystems like UMA to free up some
memory.

-- 
John Baldwin



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