To check the swap usage on a Solaris system, you can use the swap
command. The swap
command displays information about the swap space on the system, including the total swap space, the amount of swap space currently in use, and the percentage of swap space currently in use.
Here's an example of how to use the swap
command to check the swap usage on a Solaris system:
swap -s
This will display the current swap usage on the system. The output will look something like this:
total: 2048 MB reserved: 0 MB used: 128 MB available: 1920 MB
In this example, the system has 2048 MB of swap space, and 128 MB of that space is currently in use.
You can also use the vmstat
command to check the swap usage on a Solaris system. The vmstat
command displays a variety of system statistics, including the amount of swap space being used.
Here's an example of how to use the vmstat
command to check the swap usage on a Solaris system:
vmstat
This will display a variety of system statistics, including the amount of swap space being used. The output will look something like this:
kthr memory page faults cpu ----- ----------- ------------------------ ------------ ----------------------- r b w swap free re mf pi po fr de sr m1 m1 m1 m1 in sy cs us sy id 0 0 0 6144 5840 0 0 0 0 0 0 0 0 0 0 0 1 2 3 1 1 98
The swap
field shows the total amount of swap space on the system, and the free
field shows the amount of swap space currently available. In this example, the system has 6144 MB of swap space, and 5840 MB of that space is currently available.