My Opera is closing 1st of March

Felâsife

Bir BSD almaz mıydın?

Sonradan Swap eklemek | BSD

,

FreeBSD kullanırken hiç aklıma gelmezdi ama 1GB swap alanının
yetmeyip derlemenin yarıda kesilebileceği ama kesiliyormuş, onuda gördük smile
O yüzden bu rehberde sisteme sonradan swap alanı ekleyeceğiz.

log'larda şöyle bir satırlar görürseniz, bu swap alanını büyütmeniz anlamına geliyor.
kernel: swap_pager_getswapspace(7): failed
kernel: swap_pager_getswapspace(13): failed
kernel: swap_pager_getswapspace(7): failed

Örn. 2GB swap alanı ekleyelim.
dd if=/dev/zero of=/swapfile.dat bs=1m count=2048

İznini düzenleyelim.
chmod 0600 /swapfile.dat

/etc/rc.conf 'a ekleyelim.
swapfile="/swapfile.dat"

Hemen kullanmaya başlayalım.
/etc/rc.d/addswap start

swapinfo da eklenen swap ve toplamını görebilirsiniz.
Device          1K-blocks     Used    Avail Capacity
/dev/ada0s2b      1048552    74648   973904     7%
/dev/md0          2097152    75348  2021804     4%
Total             3145704   149996  2995708     5%

PCBSD 9 Kurulum ve Tanıtım (Video) Video birleştirme | Avidemux

Comments

Mağruf ÇolakoğluZAHEK Friday, February 24, 2012 12:26:09 PM

up

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies