We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

More Virtual Memory


Myatu
17-09-2013, 15:47
I think you can use "free -m" on CentOS. The -h / -m bit just makes it a bit more readable to us mere humans

Shought
17-09-2013, 15:34
Ah yes I can see it has worked anyway. Thanks for your help.

Shought
17-09-2013, 15:34
Thanks for your help. However free -h is a invalid command on CentOS.

Myatu
17-09-2013, 15:21
P.S: Looks that you're using a 2G - is that correct? If so, look into using ZRam (though it will require a different kernel from what you're using now).

Myatu
17-09-2013, 15:20
Create a swap file. Here's a quick way to create 1G more space (in file /swap_1 - you can change the location if you want; keep used disk space in mind).

Login as root in a shell:

Code:
dd if=/dev/zero of=/swap_1 bs=1024 count=1048576
chmod 600 /swap_1
mkswap /swap_1
swapon /swap_1
And check with:

Code:
free -h
If you're happy with it, and want it enabled at (re)boot:

Code:
echo "/swap_1 swap swap defaults 0 0" >> /etc/fstab
(double check you have a double ">>"!!)

Shought
17-09-2013, 15:02
Hi there

I have run out of Virtual memory on my dedicated server. How do I increase this and what should I increase it too?



Thanks