Skip to main content

Is it possible to increase swap partition ?

Comments

6 comments

  • cPanelMichael
    Hello :) It's possible, but not through any cPanel/WHM features. This is an OS-level task that should be handled with care. CentOS provides documentation on this at: [url=http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-swap-adding.html]CentOS - Adding Swap Space Thank you.
    0
  • globcom
    Thank you Mickael you wrote: "This is an OS-level task that should be handled with care." If, if I apply the tutorial "5.2.1. Extending Swap on an LVM2 Logical Volume" from your link, what are the risks ? Regards, Eric
    0
  • TheJudge
    Hi, Usually I would say you should look how much of the swap space is currently used and if you have enough free memory to move that swap space to RAM but since you are already doing swapoff and swapon I assume that you know the risks of doing these two actions. Besides this, there is no other risk involved in increasing a swap partition. Regards, Raul
    0
  • globcom
    Thank you Raul, I have 64 Go of ram in this server. I think increase swap partition to 8 or 16 Go. Could you think is a good choice ? Eric
    0
  • TheJudge
    If you can afford 16GB of swap I would go with that option. Everything beyond 16GB of swap on normal disks(even 15k disks) is a waste in my opinion(at least for this type of services). Why? Because the applications writing that amount(more than 16GB) of pages to swap will definitely suffer performance issues. Regards, Raul
    0
  • globcom
    Thank you Raul :) I will try to increase swap to 16 go this night. Regards, Eric
    0

Please sign in to leave a comment.