- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swapon: The kernel tunable parameter "maxswapchunk...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 06:21 AM
02-23-2004 06:21 AM
swapon: The kernel tunable parameter "maxswapchunks" needs to be increased
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 06:25 AM
02-23-2004 06:25 AM
Re: swapon: The kernel tunable parameter "maxswapchunks" needs to be increased
The math is simple.
Total_swap_that_can_be_configured
=maxswapchunks * swapchunk
On your system, the total swap you can configure is 4096*2048 = 8388608 which is 8 GB.
If you want to add more swap, then calculate the maxswapchunks by the same forumula
total_swap / swchunk
However, the limit for maxswapchunks is 16384. If you need to go beyond that limit, then you will need to increase the swchunk size.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 07:55 AM
02-23-2004 07:55 AM
Re: swapon: The kernel tunable parameter "maxswapchunks" needs to be increased
vmunix: Unable to add all swap for device: Primary Swap.
Increase the tunable parameter maxswapchunks by 512 and re-configure your system.
If you're planning several swap additions - then (as mentioned by prior post) the math is pretty straightforward.
Amount of Swap You want = maxswapchunks * swchunk * 1k.
With the default swchunk being 2k, that means maxswapchunks needs to be however much you want divided by 2Mb. [32Gb? 16*1024... 1Gb? 512, etc.]
If anyone's curious... there's a similar message for swchunk on 11i v1.6 and higher (since maxswapchunks doesn't exist anymore as a tunable).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 07:58 AM
02-23-2004 07:58 AM
Re: swapon: The kernel tunable parameter "maxswapchunks" needs to be increased
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 08:05 AM
02-23-2004 08:05 AM
Re: swapon: The kernel tunable parameter "maxswapchunks" needs to be increased
The formula above is probably right also.
Howerver, as a rule of thumb, this parameter should be set to half of the total Mbytes configured as device swap. Did you get that? Look at this table:
----------------------
<512Mb 256
>512Mb and <768Mb 384
>768Mb and <1Gb 512
>1Gb and <1.25Gb 640
>1.25Gb and <1.5Gb 768
>1.5Gb and <1.75Gb 896
>1.75Gb 1024
5 GB 2500
24 GB 12000
5 GB is 5000 MB, so set maxswapchunks equal to 5000/2 = 2500.
You have to reboot.