Friday, January 8, 2010

larger Swap partition with additional swap files

When the free memory in RAM and swap space is not enough in Linux, one can with a simple trick to increase the available memory. Indeed, it is easily possible to use any files on systems other than swap file.
To create a 1024MB swap file and activate satisfy the following two commands.

# dd if=/dev/zero of=/swapfile bs=1M count=1024
# mkswap /swapfile

No comments:

Post a Comment