Linux Movies

Linux in Hollywood film production

Adding a Linux Swap File for Virtual Memory

Posted on | February 27, 2012 | No Comments

Give your Linux system more virtual memory

By Robin Rowe

HOLLYWOOD, CA (Hollywood  Today) 2012/2/27 – Sometimes you need a little more memory for programs that use a lot of memory like Firefox. It used to be you had to dedicate a separate swap partition, but now Linux virtual memory can use a file instead of a partition, like Windows. Here’s how to set that up….

# dd if=/dev/zero of=/boot/swapfile bs=1024 count=524288
# mkswap /boot/swapfile
# chown root:root /boot/swapfile
# chmod 0600 /boot/swapfile
# swapon /boot/swapfile

vi /etc/fstab

/boot/swapfile swap swap defaults 0 0

 

$ free

 

http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/

Comments

Leave a Reply





About

This is an area on your website where you can add text. This will serve as an informative location on your website, where you can talk about your site.

Subscribe to our feed

Search

Admin