From owner-freebsd-questions Mon Sep 15 11:10:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA13991 for questions-outgoing; Mon, 15 Sep 1997 11:10:14 -0700 (PDT) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA13972 for ; Mon, 15 Sep 1997 11:10:05 -0700 (PDT) Received: from ws6303-f (root@firix [10.1.143.100]) by zwei.siemens.at with ESMTP id UAA16557; Mon, 15 Sep 1997 20:09:53 +0200 (MET DST) Received: from ws6423.gud.siemens.at (ws6423-f) by ws6303-f with ESMTP (1.40.112.8/16.2) id AA092616945; Mon, 15 Sep 1997 20:09:05 +0200 Received: by ws6423.gud.siemens.at (SMI-8.6/SMI-SVR4) id UAA04399; Mon, 15 Sep 1997 20:08:27 +0200 Date: Mon, 15 Sep 1997 20:08:27 +0200 From: lada@ws6303.gud.siemens.at (marino.ladavac@siemens.at) Message-Id: <199709151808.UAA04399@ws6423.gud.siemens.at> To: freebsd-questions@FreeBSD.ORG, psd@nev.ml.org Subject: Re: swap Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Md5: ooItED8jW+JopOF9gZcMiw== Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > From owner-freebsd-questions@FreeBSD.ORG Mon Sep 15 19:48:27 MET 1997 > Date: Mon, 15 Sep 1997 17:41:55 +0200 (MET DST) > From: Paul Dekkers > To: freebsd-questions@FreeBSD.ORG > Subject: swap > Mime-Version: 1.0 > X-Loop: FreeBSD.org > > Hi > > How can I see how much swap is used already? Swapon -s doesn't work, and I > don't think vmstat gives me that info (at least not the output of vmstat > as I saw it)... top gives you quite readable current values. > Does it matter how big your swapdrive is? I have currently a swapdisk of > 50MB, that's enough I think, but does it make the system slower the bigger > the swapslice is? How much swap do you need depends on the disparity of your RAM and total intended working set size--in other words if your apps require 100 Megs of memory, and you have only 20 Megs of RAM, you'd better have at least 80 Megs of swap. You might need even full 100 Megs of swap if the particular VM implementation reserves swap space for all potentially written RAM pages. The size of the swap area does imply an overhead consisting mainly of the free swap page list which is usually implemented as a bitmap. At 1 Byte per 32 KBype of swap (4 KByte page size is assumed), this overhead is rather negligible. There are some other issues (page identity lists, active working set) which are consequences of the computer usage patterns and not the swap size per se. /Marino > > -- > Paul Dekkers (psd@nev.ml.org or psd@dds.nl) > N.E.V - Nescio Ergo Valeo > >