From owner-freebsd-current@FreeBSD.ORG Sun Jan 21 10:33:13 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 5E90C16A400; Sun, 21 Jan 2007 10:33:13 +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 39EF413C441; Sun, 21 Jan 2007 10:33:13 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-5.cisco.com ([171.68.10.79]) by sj-iport-5.cisco.com with ESMTP; 21 Jan 2007 02:33:12 -0800 Received: from sj-core-3.cisco.com (sj-core-3.cisco.com [171.68.223.137]) by sj-dkim-5.cisco.com (8.12.11/8.12.11) with ESMTP id l0LAXCNl003175; Sun, 21 Jan 2007 02:33:12 -0800 Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-3.cisco.com (8.12.10/8.12.6) with ESMTP id l0LAXCho026650; Sun, 21 Jan 2007 02:33:12 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 21 Jan 2007 02:33:10 -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); Sun, 21 Jan 2007 02:33:09 -0800 Message-ID: <45B34141.4080600@cisco.com> Date: Sun, 21 Jan 2007 05:32:33 -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: John Baldwin References: <45AF7C3A.2080303@cisco.com> <200701201006.17619.jhb@freebsd.org> In-Reply-To: <200701201006.17619.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Jan 2007 10:33:09.0847 (UTC) FILETIME=[8BA99E70:01C73D47] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1315; t=1169375592; x=1170239592; c=relaxed/simple; s=sjdkim5002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20Zone=20memory=20for=20UMA |Sender:=20; bh=Ma2j63j3yPPIlHKKNaD6UvLzU5g6PtwffpJOhZoOd8k=; b=tVf/AisCHQoaSu/Lrk62OEBbaA8DAFiC8UuCzjpKYwCtJwRI3l8YjWwFESMnu/mGr8vFzCuC 2SJoCEEpNJ1vVqkOiJpjq7NRvJDjRkz4nNZXQMtx0CSXsfos9JqdI99M; Authentication-Results: sj-dkim-5; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim5002 verified; ); Cc: freebsd-current@freebsd.org 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: Sun, 21 Jan 2007 10:33:13 -0000 John Baldwin wrote: > 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. > Hmm.. Ok I see that path now that its been pointed out... but that means the crash I saw earlier was one where for some reason the PD did not wake up in time... Hmm.. I need to see if I can't recreate that crash ( I was a month behind and sup'd to current of course)... I would like to know the circumstances when this occurs :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)