Topics: Sun Solaris
Solaris swap space
Having an appropriate amount of swap space is important for optimal system performance. Simple commands allow monitoring swap space utilization. To get a summary of total system swap space, use the swap command:
# swap -sThe output of this command shows the amount of swap space used (697504KB in this example) and available (95216KB), and further breaks down the used swap space into allocated and reserved. Allocated space represents swap space currently in use. Reserved space is in limbo, not available, not in use, but reserved for future use.
total: 597744k bytes allocated + 99760k reserved = 697504k used, 095216k available
To get details on the individual devices or files that constitute the swap space, use:
# swap -lThe swapfile column is the device or filename of the swap component. The dev column shows the major and minor device numbers for devices or zeros for a file. Blocks is the total size of the swap component in 512 byte blocks (divide by two for KB) and free shows the number of 512 byte blocks unused.
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 2624560 2624560 /dev/dsk/c0t8d0s1 32,57 16 2624560 2624560

If you found this useful, here's more on the same topic(s) in our blog:
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?




