- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maxswapchunks setting
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
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
11-13-2001 08:33 AM
11-13-2001 08:33 AM
When I rebooted the system, I got an error on the enabling of the additional swaps. Checked the /etc/rc.log and it noted that I needed to increase the maxswapchunks parameter in the kernel. When I was creating the addt'l swap devices, it did ask me to modify the parameter of maxswapchunks (each time I added an addt'l swap). Looks like it wasn't enough.
What would be a good setting of the maxswapchunks param in my case. Again, this is my config for swap:
Physical RAM: 384mb
Primary: 768mb (separate disk/priority 1)
Secondary Swap #1: 768mb (separate disk/priority 0)
Secondary Swap #2: 768mb (separate disk/priority 0)
Thanks.
Solved! Go to Solution.
- Tags:
- maxswapchunks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:39 AM
11-13-2001 08:39 AM
Re: maxswapchunks setting
Here is a link on maxswapchunks,
http://docs.hp.com//hpux/onlinedocs/os/11i/kcparams/KCparam.MaxSwapChunks.html
hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:41 AM
11-13-2001 08:41 AM
Re: maxswapchunks setting
Increase the value of maxswapchunks to a value equal to the total size of the new swap area (maxswapchunks x swchunk).
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:43 AM
11-13-2001 08:43 AM
Re: maxswapchunks setting
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:45 AM
11-13-2001 08:45 AM
Re: maxswapchunks setting
Assuming default swchunk (2k) and 1k blocksize; the minimum is 1152; I would set it to 2048 to give you some hreadroom in case your add more swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:52 AM
11-13-2001 08:52 AM
Re: maxswapchunks setting
See here, too:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:56 AM
11-13-2001 08:56 AM
Re: maxswapchunks setting
It takes care of any future swap size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:57 AM
11-13-2001 08:57 AM
Re: maxswapchunks setting
Use maxswapchunks to at least equal to swap on system.
Keeping this value even higher than existing swap will help you in future if you need to increase still more swap.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:07 AM
11-13-2001 09:07 AM
Re: maxswapchunks setting
I set it to 2048 and it is still giving me an error in the rc.log that I have to increase the maxswapchunks parameter. Should I go up to 4096?
Brando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:28 AM
11-13-2001 09:28 AM
Re: maxswapchunks setting
However, by my calculations, a maxswapchunks of 1152 should be enough, unless my maths are somewhat lacking in the last minutes of leaving work without enough coffee. You haven't changed the kernel param swchunk from it's default have you? It should be 2048.
Otherwise, if my maths are that bad, then just tune it up (i'd probably go up in 1024 chunks) until it works.
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:40 AM
11-13-2001 09:40 AM
Re: maxswapchunks setting
Please help!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:51 AM
11-13-2001 09:51 AM
Re: maxswapchunks setting
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:57 AM
11-13-2001 09:57 AM
Re: maxswapchunks setting
If you are running 10.20, do this:
# sysdef|grep maxswapchunks
If you are running 11.x, do this:
# kmtune -q maxswapchunks
In either case, post the result, please.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:58 AM
11-13-2001 09:58 AM
Re: maxswapchunks setting
Consider this:
<
384mb is too small a memory
to worry about hitting the
swap limit. You can have
one secondary swap instead
of two. It''s a huge overkill.
Regarding your problem, check
the nswapdev parameter. if less, increase it.
But, all said, i would suggest to rethink this swap increasing strategy.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 10:02 AM
11-13-2001 10:02 AM
Re: maxswapchunks setting
Result was the ff:
maxswapchunks = 16384 (Current Dynamic)/16384 (Planned)
Any thoughts and thanks.
Brando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 10:10 AM
11-13-2001 10:10 AM
Re: maxswapchunks setting
This is a possible indication that the change was not complete. Did you use SAM to change the kernel params?? or did you go the manual route?
In that case you would need to run a kmupdate.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 10:15 AM
11-13-2001 10:15 AM
Re: maxswapchunks setting
I used SAM. Just ran the kmupdate and rebooting the server now. Will post if there are further errors.
Thanks.
Brando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 10:21 AM
11-13-2001 10:21 AM
Re: maxswapchunks setting
Take a look at the threads below,
http://us-support.external.hp.com/cki/bin/doc.pl/sid=4e2ca7eb0c73f730fa/screen=ckiDisplayDocument?docId=200000024614173
http://us-support.external.hp.com/cki/bin/doc.pl/sid=4e2ca7eb0c73f730fa/screen=ckiDisplayDocument?docId=200000055198795
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 10:53 AM
11-13-2001 10:53 AM