From owner-cvs-all Thu Nov 7 8:11: 6 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 164E037B401; Thu, 7 Nov 2002 08:11:06 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D1BB43E42; Thu, 7 Nov 2002 08:11:04 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Nov 2002 16:11:02 +0000 (GMT) Date: Thu, 7 Nov 2002 16:10:57 +0000 From: David Malone To: Jeff Roberson Cc: Poul-Henning Kamp , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c Message-ID: <20021107161057.GA3476@walton.maths.tcd.ie> References: <200211011858.gA1IwDrc035364@repoman.freebsd.org> <20021106141427.J1374-100000@mail.chesapeake.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021106141427.J1374-100000@mail.chesapeake.net> User-Agent: Mutt/1.3.25i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 06, 2002 at 02:16:00PM -0500, Jeff Roberson wrote: > I would like to add a 'flush' callback to uma. So each zone could get a > callback when the system is low on memory and it could reduce it's memory > footprint. This would be very effective for something like the vnode > cache or the directory cache, etc. > > What do you think of this? It would be trivial to add. Something like this would be useful for dirhash to let it know when it should give memory back. With some tuning we should be able to dirhash_maxmem if we got feedback from uma. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message