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:
Post a Comment