You are not logged in.

#1 2010-04-10 22:58:05

keizer
Member
Registered: 2009-08-29
Posts: 10

Increase swap memory

Hi guys,

I'm trying to run some strain calculations but my PC keeps running out of memory (first the RAM (4gb) and after that the swap memory (1GB), checked it with free). I know that for these particular calculations <8GB of memory should suffice. Does anybody know how to increase the swap memory from 1GB to 4GB without reinstalling arch linux?   
Cheers,
Joris

Last edited by keizer (2010-04-10 23:00:14)

Offline

#2 2010-04-10 23:13:57

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Increase swap memory

You can create a swapfile

http://wiki.archlinux.org/index.php/HOW … #Swap_file

Make a 8GB swapfile and use it.

OR make your swap partition bigger

OR buy more RAM tongue

Offline

#3 2010-04-10 23:18:14

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: Increase swap memory

1) replace swap with swapfile
http://wiki.archlinux.org/index.php/Swap
2) set properly swappiness:
vm.swappiness = 100
number corresponds to % of swap than can be used
set
vm.vfs_cache_pressure=500

you can adjust these settings permanently via /etc/sysctl.conf or temporarily:
sysctl -w vm.swappiness="100"

these settings will not affect system performance if RAM memory is not exhausted but will help if swap is needed.

Offline

#4 2010-04-12 07:32:34

keizer
Member
Registered: 2009-08-29
Posts: 10

Re: Increase swap memory

Thanks,
Creating a swap file worked!
Greetings

Offline

Board footer

Powered by FluxBB