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:
# 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.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop