Path: utzoo!utgpu!cunews!semifs3!lalonde From: lalonde@semifs3 ( iccad) Newsgroups: comp.unix.admin Subject: Re: swapon -i needed (inquire size of swap space) Message-ID: <8374@semifs3> Date: 21 Jun 91 03:18:42 GMT References: Organization: MITEL Corporation, Kanata, Ontario, Canada. Lines: 36 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" :-) ), >that rounds up all the usual messages, and says what it's found? Try "pstat -s" It returns a line like: 4584k allocated + 704k reserved = 5288k used, 50864k available From the pstat mna page: -s Print information about swap space usage: allocated: The amount of swap space (in bytes) allocated to private pages. reserved: The number of swap space bytes not currently allocated, but claimed by memory mappings that have not yet created private pages. used: The total amount of swap space, in bytes, that is either allocated or reserved. available: The total swap space, in bytes, that is currently available for future reservation and allocation. -- ============================================================================== Terry Lalonde (613)592-2122 | "the war between mainframes and micros is over Usenet:...!uunet!mitel!lalonde| over and the network has won" Internet: lalonde@mitel.com | Editors Network Computing 01/91