From owner-freebsd-stable Wed Apr 1 14:13:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA26161 for freebsd-stable-outgoing; Wed, 1 Apr 1998 14:13:16 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA26002; Wed, 1 Apr 1998 14:12:52 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id OAA07880; Wed, 1 Apr 1998 14:12:28 -0800 (PST) Message-Id: <199804012212.OAA07880@implode.root.com> To: stable@FreeBSD.ORG cc: current@FreeBSD.ORG Subject: Re: swap-leak in 2.2.5 ? In-reply-to: Your message of "Wed, 01 Apr 1998 14:07:31 PST." <199804012207.OAA01425@kithrup.com> From: David Greenman Reply-To: dg@root.com Date: Wed, 01 Apr 1998 14:12:28 -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk >In article <657.891465523.kithrup.freebsd.current@critter.freebsd.dk> you write: >>The problem is, the kernel cannot account for the twohundred som Mbyte >>of swap space it claims is in use. Even if I kill all processes the >>number doesn't decrease significantly :-( > >There is something wrong with -stable. I reported this to John about a month >ago, maybe two (I forget exactly). > >I noticed it when I upgraded from 32MBytes to 96MBytes of RAM; my swap usage, >instead of going down, went drastically up. > >I am pretty sure it is related to MFS in my case; I was unable to see an MFS >process in PHK's ps listing. > >Right now, I am at: > >Device 1K-blocks Used Avail Capacity Type >/dev/sd0s1b 131072 4448 126560 3% Interleaved >/dev/sd1s1b 131072 4408 126600 3% Interleaved >Total 262016 8856 253160 3% > >I'm sorry, but with 96MBytes of RAM, there is no reason for my system to swap, >given what it does. And that amount will slowly grow; when I rebooted for the >OS upgrade on Saturday, it was at 39MBytes or so (MFS is 32MBytes on my >system). > >However: when I shut down to single user mode, it dropped down to about >100Kbytes in use. > >So, I think there's a leak, but I'm not sure *where* it is. Or perhaps it's >just bad swap usage by the kernel. FreeBSD will slowly page infrequently used pages out in favor of file caching, and 8MB (or 32+8) is about what you'd expect to see in this case. Poul's problem seems to be different, however. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message