1. Sun O/S 4.xÀÎ °æ¿ì
# mkfile 40m /user/swap (40MB size¸¦ Ãß°¡ÇÏ°í½ÍÀ»¶§)
# swapon /user/swap
# pstat -T (swap size È®ÀÎ)
# vi /etc/fstab
.
.
/usr/swap swap swap rw 0 0
- swap file Á¦°Å
# rm /user/swap
# vi /etc/fstab - addÇÑ entry Á¦°Å
2. Solaris 2.x ÀÎ °æ¿ì
# /usr/sbin/mkfile 40m /user/swapfile (40 mbyteÀÇ swap fileÀ» »ý¼º½ÃÄÑÁÜ)
# swap -a /user/swapfile (»ý¼ºµÈ swap fileÀ» Àû¿ë½ÃÄÑÁÜ)
# swap -l (display swap space)
# vi /etc/vfstab (´ÙÀ½¹ø ºÎÆýÿ¡µµ ÀÚµ¿À¸·Î swap fileÀ» Ãß°¡½ÃÄÑÁÜ)
/user/swapfile - - swap - no - ( À̶óÀÎÀ» Ãß°¡)
# swap -s
total : 5828kbytes allocated + 2456k reserved = 8284k used, 103792k available
( allocated : ÇöÀç »ç¿ë, reserved : kernelÀÌ Àâ¾Æ³õÀ½ , available : »ç¿ëÇÒ¼ö Àִ¾ç)
# swap -d /user/swapfile (swap addÇÑ fileÀ» »èÁ¦)
|