Re: Zone memory for UMA

From: John Baldwin <jhb_at_freebsd.org>
Date: Sat, 20 Jan 2007 10:06:16 -0500
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
Received on Sat Jan 20 2007 - 14:54:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC