*BSD News Article 16219


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!uunet!pipex!bnr.co.uk!zaphod.axion.bt.co.uk!lessen
From: lessen@axion.bt.co.uk (Lee Essen)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Swap problems on NetBSD
Date: 18 May 1993 08:10:46 GMT
Organization: BT Laboratories
Lines: 26
Distribution: world
Message-ID: <1ta5m6$ip5@zaphod.axion.bt.co.uk>
References: <1t99do$2rk@zip.eecs.umich.edu>
NNTP-Posting-Host: jammy.axion.bt.co.uk

In article <1t99do$2rk@zip.eecs.umich.edu>, khushro@niagara.eecs.umich.edu (Khushro Shahookar) writes:
|> The following shows that I have a b partition of 75Mb, but only 5 Mb is
|> recognized and used by the kernel. I really do run out of swapspace
|> frequently, or so the kernel says.
|> What is the cause of this, and what can I do to fix it? 
|> I am using the NEW NetBSD kernel, as distributed. 
|> The local help has given up on this, so any help from the net will be
|> appreciated.
|> 
|> danube# vmstat
|>  procs   memory     page                    disks         faults      cpu
|>  r b w   avm   fre  flt  re  pi  po  fr  sr ?0 ?1 ?2 ?3   in   sy  cs us sy id
|>  0 0 0  4824   212   38   0   0   0   0   0  0  0  0  0  122   47  31  5  4 91

The vmstat command does not show you the amount of swap available.

Try 'swapinfo -k', this will show you (in k) the amount of swap configured on
which partitions and how much of it is used.

NetBSD *will* use all the space available in the swap partition (b), so in
your case it *will* use 75Meg (I wish I could afford to be that extravagent).

I'm not sure what the avm figure is in a vmstat? Perhaps someone could explain
(I don't have the manual page handy!)

Lee.