Operating System - HP-UX
1833780 Members
2886 Online
110063 Solutions
New Discussion

Re: Kernel Parms - maxswapchunks ??

 
Scott Adams
Occasional Contributor

Kernel Parms - maxswapchunks ??

K210 ; HPUX 10.20

I created a swap area with a size of 1024.
Currect kernel parameters are:
maxswapchunks 512
swchunk 2048
DEV_BSIZE ???

Q1: How do I find the value of DEV_BSIZE?
Q2: What size should maxswapchucks be?

4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Kernel Parms - maxswapchunks ??

Scott:

DEV_BSIZE is fixed at 1024 and is not configurable.

'swchunk' defaults to 2048 and generally should not be changed. swchunk' defines the "chunk" size, or minimum unit involved in swap activity. Thus, 'swchunk' is the smallest unit of allocation of device or filesystem swap.

'maxswapchunks' defines the maximum number of chunks of swap space allowed on the system.

Thus, the maxiumum number of bytes of swapspace is given by:

bytes of swap = maxswapchunks * swchunk * DEV_BSIZE

...JRF...


Dan Hetzel
Honored Contributor

Re: Kernel Parms - maxswapchunks ??

Hi Scott,

As your swap space is 1024K
and swapchunks is defined as 2048, a maxswapchunks value of 512 is enough to access all your swap space as 512*2K=1024K.
If you're planning to add more swap in the future, you could increase maxswapchunks to 2048 as this would allow for 4Gb swap.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
koundi
New Member

Re: Kernel Parms - maxswapchunks ??

Hi,

Formul to calculate the size of maxswapchunks :
(max swap space in bytes)=maxswapchunksXswchunckXDEV_BSIZE
DEV_BSIZE is fixed at 1024

Regards

HK
federico_3
Honored Contributor

Re: Kernel Parms - maxswapchunks ??

In the site below you'll get all the informations about the kernel parameters :

http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html


I hope this helps
Federico