HowTo: Check Swap Usage In Solaris Unix

How do I check swap (page) usage under Sun / Oracle Solaris Unix operating systems using command line options? How do I see virtual memory statistics including used and total swap space?

Solaris Unix supports various command to get the information about swap space. You need to login as root and type the following commands:

# swap -s
# swap -l

You can also use the top and vmstat commands:
# top
# vmstat
# vmstat -p

You need to see page field which report information about page faults and paging activity. The information on each of the following activities is given in units per second:

re – page reclaims — but see the -S option for how this field is modified.
mf – minor faults — but see the -S option for how this field is modified.
pi – kilobytes paged in
po – kilobytes paged out
fr – kilobytes freed
de – anticipated short-term memory shortfall (Kbytes)
sr – pages scanned by clock algorithm
When executed in a zone and if the pools facility is active, all of the above (except for “de”) only report activity on the processors in the processor set of the zone’s pool.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts