From owner-freebsd-current@FreeBSD.ORG Thu Jan 18 13:55:40 2007 Return-Path: X-Original-To: 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 9D09D16A60B for ; Thu, 18 Jan 2007 13:55:40 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by mx1.freebsd.org (Postfix) with ESMTP id 6B05513C455 for ; Thu, 18 Jan 2007 13:55:40 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-5.cisco.com with ESMTP; 18 Jan 2007 05:55:40 -0800 Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id l0IDtdqW030400 for ; Thu, 18 Jan 2007 05:55:39 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l0IDtcGk003338 for ; Thu, 18 Jan 2007 05:55:39 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Jan 2007 05:55:37 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Jan 2007 05:55:37 -0800 Message-ID: <45AF7C3A.2080303@cisco.com> Date: Thu, 18 Jan 2007 08:55:06 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Jan 2007 13:55:37.0849 (UTC) FILETIME=[55325E90:01C73B08] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1200; t=1169128540; x=1169992540; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Zone=20memory=20for=20UMA |Sender:=20; bh=yWravBXhL4Kr0FmE9zg4Wws/hJ7aXcsE+2fmqY2fHLk=; b=rEvP8kbu4Tcfo06Q89jDGm78jAiKZ0ooC0l+jVo9IpSvUSJEv4oyASd6VFzFxl9WFncqZILr K3NaZISpT8O9zTtRzGP2ZUU7aWYrIlinym/u9ga0c68OTypxXpyRJ2hV; Authentication-Results: sj-dkim-2; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim2002 verified; ); Cc: Subject: 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: Thu, 18 Jan 2007 13:55:40 -0000 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 The only zone that seems to get drain'ed is the zone for ZONE headers it would appear as part of its destructor ... So this means we have no real way that I can see to give back memory to the system. So.. here is a question.. 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? Or maybe this already exists and I just can't find the connection??? Yes, I know there are pluses and minuses to GC's and we would have to have a way to turn it on/off as well as set up thresholds and control its timing... But it seems to me that it would be something worth doing... I am willing to build such a critter .. if folks are interested... Comments/thoughts (yes even flames)?? R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)