From owner-freebsd-stable@FreeBSD.ORG Wed May 9 17:50:20 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E0DF716A473 for ; Wed, 9 May 2007 17:50:20 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 4B56213C447 for ; Wed, 9 May 2007 17:50:19 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qdovsj@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l49Ho6TX058283; Wed, 9 May 2007 19:50:11 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l49Ho5sh058282; Wed, 9 May 2007 19:50:05 +0200 (CEST) (envelope-from olli) Date: Wed, 9 May 2007 19:50:05 +0200 (CEST) Message-Id: <200705091750.l49Ho5sh058282@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, tom.hurst@clara.net, bill@lefebvre.org In-Reply-To: <20070509163028.GA73424@voi.aagh.net> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 09 May 2007 19:50:11 +0200 (CEST) Cc: Subject: Re: top shows '' X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, tom.hurst@clara.net, bill@lefebvre.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2007 17:50:21 -0000 Thomas Hurst wrote: > I'm seeing this sort of thing too -- I do have swap, but it's not being > used by these processes (swapoff -a didn't do anything to them): > > Mem: 1672M Active, 5337M Inact, 279M Wired, 400M Cache, 215M Buf, 74M Free > Swap: 10G Total, 12K Used, 10G Free > > 1251 www 1 4 0 87884K 0K accept 2 0:00 0.00% > 1106 root 1 20 0 12756K 0K pause 1 0:00 0.00% > 950 root 1 115 0 8536K 0K select 3 0:00 0.00% > 1143 mysql 1 8 0 5220K 0K wait 3 0:00 0.00% > 1288 root 1 5 0 3644K 0K ttyin 2 0:00 0.00% > > The bulk of the data is probably "swapped" to the on-disk binaries, You probably mean that the text pages of the binary have not been paged into memory (that's different from "swapping"). That's unlikely. > but this would imply there isn't a single page unique to each process. I don't think that could happen. As soon as you link with libc (which sh, httpd and others certaily do), you get a bunch of global variables and other things that are not shared across processes. > Quite why it's bothering in the first place with >5GB Inact I'm not > sure -- is it unmapping idle processes to conserve VM objects? That doesn't happen. FreeBSD has a feature to proactively swap processes that have been idle for a certain time, but it's disabled by default, see: sysctl vm.swap_idle_enabled > I also find it interesting that I only noticed this behavior a few days > ago and suddenly someone else mentions it too :) I don't see it on any of my FreeBSD 6-stable machines, but they run RELENG_6 of about 2 months ago. Maybe a subtle bug has been introduced recently. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie