41 번 글: [swap] make a swapfile of 1GB |
글쓴이: 산이
[홈페이지]
|
글쓴날: 2006년 01월 11일 11:39:44 수(오전) |
조회: 5844 |
[swap] make a swapfile of 1GB
-- san2@2006.01.09
-- http://dev.panopticsearch.com/swapfile-notes.html
-- http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swa
p-space.html
-- http://kerneltrap.org/node/329
/part => top level partition(available of many free size)
[FreeBSD/4.x]
dd if=/dev/zero of=/part/system.swap bs=1024k count=1024
chmod 0600 /part/system.swap
## edit in `rc.conf' or `rc.conf.local'
swapfile="/part/system.swap"
vnconfig -e /dev/vn0b /part/system.swap swap
or
reboot
*misc)
swapinfo -k
swapoff ; // FreeBSD does not currently support swapoff
[Linux/2.4]
*RH7.x)
1G => bs=1024k count=1024
2G => bs=1024k count=2047 ; // notice
4G => 2G + 2G ; // two swapfiles
dd if=/dev/zero of=/part/system.swap bs=1024k count=1024
chmod 0600 /part/system.swap
mkswap -c /part/system.swap ; // -c: check bad block
## edit in `/etc/fstab'
/part/system.swap swap swap defaults 0 0
swapon /part/system.swap
or
swapon -a
*misc)
cat /proc/swaps ; // view of all swap list
swapoff /part/system.swap ; // disable
|
이전글 : [acpi] disabled of ACPI
다음글 : [rc.conf.local]
|
from 222.122.137.91
JS(Redhands)Board 0.4 +@
|