Declaration / Creation of Swap Memory
The proper swap size depends on 2 things:
1. The size of your hard drive.
2. The size of your RAM memory.
2. The size of your RAM memory.
The less RAM you have, the more swap you will need. Usually you will want to set your swap space size to be twice the RAM size, with a maximum of 128 megs. This of course requires you to have a hard drive with enough free space to create such a partition.
Note : If you don’t select enough swap while installing, you may add more later.
creation of more swap file:
The trick to cincrease swap space to running host below is the methods, (Default Size should be 64MB free on root partition)
1. Create swap file:
#dd if=/dev/zero of=/swapfile bs=1024 count=65536
This will make a 64 megs (about 67 millions bytes) file on your hard drive.
2. You now need to initialize it:
#mkswap /swapfile 65536
sync
sync
3. And you can then add it to your swap pool:
#swapon /swapfile
4. Test the added swap using by free command.
#free -g
5. Added it to fstab file when restart it makes to on-line as default.
No comments:
Post a Comment