From owner-freebsd-current@FreeBSD.ORG Sat Jan 20 15:54:24 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E41016A402 for ; Sat, 20 Jan 2007 15:54:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 4153B13C442 for ; Sat, 20 Jan 2007 15:54:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l0KFrpqm081614; Sat, 20 Jan 2007 10:53:52 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Sat, 20 Jan 2007 10:06:16 -0500 User-Agent: KMail/1.9.4 References: <45AF7C3A.2080303@cisco.com> In-Reply-To: <45AF7C3A.2080303@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701201006.17619.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Sat, 20 Jan 2007 10:53:52 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2467/Fri Jan 19 23:42:15 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Randall Stewart Subject: Re: Zone memory for UMA X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 15:54:24 -0000 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