From owner-freebsd-current Sun Apr 5 16:08:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA14769 for freebsd-current-outgoing; Sun, 5 Apr 1998 16:08:24 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA14627; Sun, 5 Apr 1998 16:07:52 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id SAA00506; Sun, 5 Apr 1998 18:07:32 -0500 (EST) (envelope-from toor) Message-Id: <199804052307.SAA00506@dyson.iquest.net> Subject: Re: swap-leak in 2.2.5 ? In-Reply-To: <3.0.5.32.19980405182046.009137d0@mail.kersur.net> from Dan Swartzendruber at "Apr 5, 98 06:20:46 pm" To: dswartz@druber.com (Dan Swartzendruber) Date: Sun, 5 Apr 1998 18:07:31 -0500 (EST) Cc: dyson@FreeBSD.ORG, dg@root.com, dag-erli@ifi.uio.no, stable@FreeBSD.ORG, current@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Swartzendruber said: > At 04:35 PM 4/5/98 -0500, John S. Dyson wrote: > >Dan Swartzendruber said: > >> > >> My only quibble with this technique is that it would seem to make it > >> harder to tell if your machine is really running low on swap or not > >> (e.g. swap as backing store for stack/heap/whatever *is* critical and > >> allocation failure can cause application failure, whereas swap being > >> used to cache random cruft is in the "who really cares" department). > >> Or is there some way to tell the difference? > >> > >It is difficult not only to tell if you are low on swap, but also it > >is hard to quantify being low on memory. I have been thinking about > >this over the last year or so. > > It was actually kind of embarrassing. I convinced a local ISP to start > converting their servers from Linux (what I recommended a few years ago > when I didn't know different :)) One of the admins (who has some Linux > experience) asked me why it was using swap. I gave the canonical reply. > He asked the question I just posed. I had no good reply :( > The actual reply is the required size of swap is the sum of the size of all process private memory. I don't account for that anywhere, but might just put together a solution. On my workstation, I run with 1.2GB of available swap space, and anybody can afford that, can't they? (BTW, I seldom use more than 30-40MB, but with the price of disk, who cares?) The needed amount of physical memory is best judged by paging activity, but again, the system doesn't tell you directly. -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message