Hi,
I am trying to help a friend that is with a new server
His server has 1GB of RAM and just 512MB of swap.
Would not the correct be 2GB of swap?
Is it possible to resize the swap area?
Regards,
winger.
This is a discussion on Swap in the VPS & Dedicated forum
Hi,
I am trying to help a friend that is with a new server
His server has 1GB of RAM and just 512MB of swap.
...
Hi,
I am trying to help a friend that is with a new server
His server has 1GB of RAM and just 512MB of swap.
Would not the correct be 2GB of swap?
Is it possible to resize the swap area?
Regards,
winger.
WebHostingTalk now in portuguese
www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web
Hi,
This is a dedicated server I suppose?
Milovan Milic
DEHE.com - Definition of Hosting Experts
Hi Milovan,
Yes it is!
regards,
Ricardo.
WebHostingTalk now in portuguese
www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web
Here is a good explanation on how to do this:
http://www.redhat.com/docs/manuals/l...ap-adding.html
----
To add a swap file:
1. Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.
2. At a shell prompt as root, type the following command with count being equal to the desired block size:
dd if=/dev/zero of=/swapfile bs=1024 count=65536
3. Setup the swap file with the command:
mkswap /swapfile
4. To enable the swap file immediately but not automatically at boot time:
swapon /swapfile
5. To enable it at boot time, edit /etc/fstab to include:
/swapfile swap swap defaults 0 0
The next time the system boots, it will enable the new swap file.
6. After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.
----
Hope it helps.
Milovan Milic
DEHE.com - Definition of Hosting Experts
Of course you helped!
take a look:
[root@t295 ~]# free
total used free shared buffers cached
Mem: 1004184 30660 973524 0 3560 14688
-/+ buffers/cache: 12412 991772
Swap: 2066128 0 2066128
I make a file with 1.5GB + 512MB swap partition = 2GB
Thank you very much!
Best regards,
Ricardo.
WebHostingTalk now in portuguese
www.webhostingtalk.com.br venha se juntar a nossa comunidade sobre hospedagem web
Copyright © 2011 JaguarPC.com
Bookmarks