Monday, July 13, 2009

Managing swap configuration

Managing swap configuration


Virtual Memory = RAM + Disk Space
Swap Slice | Swap File | RAM } Swap Space

# swap –s -- Summary of virtual swap space
# swap –l -- Lists the details of systems physical swap (eg. Swap file)

Adding Swap Space

# vi /etc/vfstab
/dev/dsk/c1t0d0s3 - - swap - no -
# swap –a /dev/dsk/c1t0d0s3 -- To add swap space from HDD slice.

Adding Swap File

# mkfile 20m /export/data/swapfile -- Swap file allocation
# swap –a /export.data.swapfile
# swap –l -- To list the details of the modified system swap space
# swap –s -- List a summary of the modified system swap space
# vi /etc/vfstab
/export/data/swapfile - - swap - no -

Removing Swap Space

# swap –d /dev/dsk/c1t0d0s3 -- Also remove entry from vfstab

Removing Swap File

# swap –d /export/data/swapfile
# rm /export/data/swapfile -- Also remove entry from vfstab

No comments:

Custom Search

Feeds from my other blog

Samsung S2 Brand new for 25900 White piece sealed box

For Sale, Mobile Phones - Accessories in India, Andhra Pradesh, Hyderabad. Date September 17

For Sale in Hyderabad