OVH Community, your new community space.

Increase Virtual Memory


Shought
07-01-2014, 09:27
Yep all done, That's great!

Thank-You for your help +1 !

freshwire
07-01-2014, 01:10
Quote Originally Posted by Shought
So what do I do with this?
Code:
dd if=/dev/zero of=/swap bs=1024 count=1048576
mkswap /swap
chown root:root /swap
chmod 0600 /swap
swapon /swap
Put it in a file then run it or what?
You could do, but most people run it one line at a time.

Shought
06-01-2014, 23:49
So what do I do with this?
Code:
dd if=/dev/zero of=/swap bs=1024 count=1048576
mkswap /swap
chown root:root /swap
chmod 0600 /swap
swapon /swap
Put it in a file then run it or what?

Jasgriff
06-01-2014, 19:45
Thanks Mytau and +1 for the other tips in the link.

Myatu
06-01-2014, 18:43
Linux? If so, from shell (may have to use sudo):

Code:
dd if=/dev/zero of=/swap bs=1024 count=1048576
mkswap /swap
chown root:root /swap
chmod 0600 /swap
swapon /swap
That'll give you 1GB extra - you can change that by changing "count=" in the first command. It doesn't survive boot, but if you want that, edit /etc/fstab by adding:

Code:
/swap swap swap defaults 0 0
PS. Have a look in this thread, particularly regarding ZRAM.

http://forum.ovh.co.uk/showthread.ph...Kimsufi-mKS-2G

Shought
06-01-2014, 16:21
Anyway to increase the virtual memory on a KS2G?