Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!ukc!acorn!ixi!ixi!pd From: pd@x.co.uk (Paul Davey) Newsgroups: comp.unix.admin Subject: Re: swapon -i needed (inquire size of swap space) Message-ID: Date: 24 Jun 91 12:21:12 GMT References: <13290@uwm.edu> Sender: paul@x.co.uk (Paul Davey) Organization: IXI Ltd. Lines: 21 In-Reply-To: ballen@convex.csd.uwm.edu's message of 21 Jun 91 20: 05:10 GMT >>>>> On 21 Jun 91 20:05:10 GMT, ballen@convex.csd.uwm.edu (Bruce Allen) said: -> In article gplan@sol.aer.com (George A. Planansky) writes: >How can a user find out how much swap space is available on any >given machine? Is there something like a "swapon -inquiry" >command? Or has someone written a shell script (perl "phrase" :-) ), -> Try pstat -s This is good for Berkley Software Distribution, but what does one do on a plain SYSV box? All I can think of is to use dd to copy the b partition of the root disc (default swap or page) to /dev/null to report the size, but this is obviously flawed. Is there a better way? -- Regards, pd@x.co.uk IXI Limited Paul Davey pd@ixi.uucp 62-74 Burleigh St. ...!uunet!ixi!pd Cambridge U.K. "These are interesting times" +44 223 462 131 CB1 1OJ USA: 1 800 XDESK 57