December 9, 2009

Add system swap space for virtual memory paging:

Swap space may be a swap partition, a swap file or a combination of the two. One should size swap space to be at least twice the size of the computer's RAM. (but less than 2GB)
1. dd if=/dev/zero of=/swapfile bs=1024 count=265032 - Create file filled with zeros of size 256Mb
2. mkswap /swapfile - Create swap file
3. swapon /swapfile - Begin use of given swap file. Assign a priority with the "-p" flag.
4. swapon -s - List swap files
5. cat /proc/swaps - Same as above

No comments:

Post a Comment