Display Solaris swap information

Home -> UNIX -> Solaris -> System administration

24221 views

From the computer of: qmchenry (338 recipes)
Created: Oct 06, 2003


2 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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 -s

total: 597744k bytes allocated + 99760k reserved = 697504k used, 095216k available


The output of the swap -s 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.

To get details on the individual devices or files that constitute the swap space, use:

swap -l

swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   32,1      16 2624560 2624560
/dev/dsk/c0t8d0s1   32,57     16 2624560 2624560


The 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.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




2 Recipe comments: View comments

Display Solaris swap information by Anonymous
swap by prakash



Related recipes:

  Add swap space temporarily in Solaris
  Monitor Solaris system load: understanding vmstat
  Solaris: list detailed package information with pkginfo
  Solaris: list installed packages with pkginfo
  Solaris software RAID
  Change BootPROM settings from the Solaris command line
  Validate information from a Solaris flash archive
  Change Solaris DNS client settings
  Solaris 10: shutdown or stop a zone
  Solaris: fuser to find users or processes making filesystem umount fail

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.