swapon -i needed (inquire size of swap space)

iccad lalonde at semifs3
Fri Jun 21 13:18:42 AEST 1991


gplan at 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 at mitel.com   |                Editors Network Computing 01/91  



More information about the Comp.unix.admin mailing list