|
|||||||||||
1. Managing Removable Media (Overview) 2. Managing Removable Media (Tasks) 3. Accessing Removable Media (Tasks) 4. Writing CDs and DVDs (Tasks) 5. Managing Devices (Overview/Tasks) 6. Dynamically Configuring Devices (Tasks) 7. Using USB Devices (Overview) 9. Using InfiniBand Devices (Overview/Tasks) 11. Administering Disks (Tasks) 12. SPARC: Adding a Disk (Tasks) 13. x86: Adding a Disk (Tasks) 14. Configuring Solaris iSCSI Targets and Initiators (Tasks) 15. Configuring and Managing the Solaris Internet Storage Name Service (iSNS) 16. The format Utility (Reference) 17. Managing File Systems (Overview) 18. Creating UFS, TMPFS, and LOFS File Systems (Tasks) 19. Mounting and Unmounting File Systems (Tasks) 20. Using The CacheFS File System (Tasks) 21. Configuring Additional Swap Space (Tasks) How Do I Know If I Need More Swap Space? How to Create a Swap File and Make It Available How to Remove Unneeded Swap Space 22. Checking UFS File System Consistency (Tasks) 23. UFS File System (Reference) 24. Backing Up and Restoring File Systems (Overview) 25. Backing Up Files and File Systems (Tasks) 26. Using UFS Snapshots (Tasks) 27. Restoring Files and File Systems (Tasks) 28. UFS Backup and Restore Commands (Reference) 29. Copying UFS Files and File Systems (Tasks) |
Monitoring Swap ResourcesThe /usr/sbin/swap command is used to manage swap areas. Two options, -l and -s, display information about swap resources. Use the swap -l command to identify a system's swap areas. Activated swap devices or files are listed under the swapfile column. # swap -l swapfile dev swaplo blocks free /dev/dsk/c0t0d0s1 136,1 16 1638608 1600528 Use the swap -s command to monitor swap resources. # swap -s total: 57416k bytes allocated + 10480k reserved = 67896k used, 833128k available The used value plus the available value equals the total swap space on the system, which includes a portion of physical memory and swap devices (or files). You can use the amount of available and used swap space (in the swap -s output) as a way to monitor swap space usage over time. If a system's performance is good, use swap -s to determine how much swap space is available. When the performance of a system slows down, check the amount of available swap space to determine if it has decreased. Then you can identify what changes to the system might have caused swap space usage to increase. When using this command, keep in mind that the amount of physical memory available for swap usage changes dynamically as the kernel and user processes lock down and release physical memory. Note - The swap -l command displays swap space in 512-byte blocks. The swap -s command displays swap space in 1024-byte blocks. If you add up the blocks from swap -l and convert them to Kbytes, the result is less than used + available (in the swap -s output). The reason is that swap -l does not include physical memory in its calculation of swap space. The output from the swap -s command is summarized in the following table. Table 21-1 Output of the swap -s Command
|
||||||||||
|