1834665 Members
1979 Online
110069 Solutions
New Discussion

maxswapchunks

 
spearsy
Occasional Contributor

maxswapchunks

quick question for a monday morning

increasing maxswapchunks = 1/2 x memory

can anyone tell me what the effects would be by oversizing the maxswapchunks say 3,4,5 x memory there must be a reason it has always been set to 1/2 x memory ???

rgds
steven spear
3 REPLIES 3
RAC_1
Honored Contributor

Re: maxswapchunks

The swap chunk size is 2MB. That is why it is set at 1/2 of total swap space to be configured. you can set it little high, so that you do not need to reboot, if you add swap space later on.

The only thing I can think of is kernel memeory will be little higher in that case.
There is no substitute to HARDWORK
Stanimir
Trusted Contributor

Re: maxswapchunks


Max Swap Space = maxswapchunks * 1024 * swchunk (typically 2048).
According this formula you could limit your
swap and have a problem. :)

Increasing "maxswapchunks" I thing - nothing would happened.

Patrick Wallek
Honored Contributor

Re: maxswapchunks

I would go ahead and increase maxswapchunks to its maximum value of 16384.

It will not hurt anything. It will not take up any additional resources. The benefit is that if you have to add more swap later, you won't have to rebuild the kernel and reboot the system. You can just do a 'swapon' and you new swap will be active.