- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding Swap Space
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
04-15-2002 06:16 AM
04-15-2002 06:16 AM
Adding Swap Space
My kernel parameter maxswapchunk is set to 8192.
I am adding another 10 GB of memory into my N4000-55 server. What are the proper steps to get it there with what i have already configured for swap space?
Do I need to adjust any other kernel parameters besides maxswapchunk and what size for that one as well?
Please advise?
thanks,
Vito
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:21 AM
04-15-2002 06:21 AM
Re: Adding Swap Space
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:22 AM
04-15-2002 06:22 AM
Re: Adding Swap Space
I would suggest you to do this through SAM. It will be very simple; go to disk devices, select disk, create swap space and SAM will tell you the correct value of the kernel parameters that needs to be changed.
You can also do it through command line. For finding out the maxswapchunk value, check this formula:
http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/os/KCparam.MaxSwapChunks.html&searchterms=maxswapchunks&queryid=20020415-072853
You need to restart the server after doing this.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:23 AM
04-15-2002 06:23 AM
Re: Adding Swap Space
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x048c5220af9bd5118ff10090279cd0f9,00.html
I'd probably use filesystem swap, but that's me.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:28 AM
04-15-2002 06:28 AM
Re: Adding Swap Space
Thanks,
Vito
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:28 AM
04-15-2002 06:28 AM
Re: Adding Swap Space
It would appear that you will need to increase your 'maxswapchunks' value. I calculate that your current limit is about 17GB (assuming a standard value for 'swchunk':
http://docs.hp.com/hpux/onlinedocs/os/KCparam.MaxSwapChunks.html
I would consider setting 'swapmem_on' too, if not already done.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:29 AM
04-15-2002 06:29 AM
Re: Adding Swap Space
(nbuf and bufpages should be 0 in that case)
If you add 10GB of memory and need it for running applications and not for extra filesystem buffercache, you need to recalculate the value of these parameters so that the maximum amount of buffer cache is approx. the same siez in MBytes (or GBytes).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 06:46 AM
04-15-2002 06:46 AM
Re: Adding Swap Space
You stated "I am adding another 10 GB of memory ". To me that means physical memory, is this correct?
My statement was presuming that you are adding physical memory to a machine, and want to increase swap space to allow for the possibility of needing more swap because you have more memory.
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 07:05 AM
04-15-2002 07:05 AM
Re: Adding Swap Space
So besides changing maxswapchunk in SAM, is there anything else I need to do? please advise?
thanks,
Vito
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 07:20 AM
04-15-2002 07:20 AM
Re: Adding Swap Space
Because in general if you are having good amount of RAM you do not need that high amount of Swap.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 07:28 AM
04-15-2002 07:28 AM
Re: Adding Swap Space
So, if you are adding another 10GB memory, how much will the new total be? And how much swap are you currently using (can you please post the output of swapinfo)?
But in answer to your original question... thinking along the lines of you already having 5GB memory - if you follow JRFs link, you will be able to find the formula for maximum swap using swchunk, maxswapchunks and DEV_BSIZE (1024). Once you know what you want for your new swap value (lets say 20GB for now), you allocate some free disk (using SAM -> Disks and File Systems -> Logical Volumes) to be an appropriately sized swap volume. Then you again use SAM (Disks and File Systems -> Swap) to allocate that to swap.
But again, I do not think you will need more swap that your existing 11.5GB. I suggest doing some performance monitoring of swap use before you possibly waste disk.
Hope this helps.
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 07:31 AM
04-15-2002 07:31 AM
Re: Adding Swap Space
1) maxswapchunk = a must
2) swapmem_on = depends, only enable pseudo swap if you do not intend to configure your swap to equal or more than physical memory
3) dbc_max_pct and dbc_min_pct = depends, only if you want to allocate more/less buffer cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 09:04 AM
04-15-2002 09:04 AM
Re: Adding Swap Space
1. Suppose your total physical memory is X
then adjust the value of maxswapchunk as per the formula.
X=maxswapchunk*swchunk.
Keep the variable as maxswapchunk so your new maxswapchunk will be X/swchunk
X is in MBs.in above case.
2. Now if you have X MB of physical memory, then keep swap space same as that of Physical memory..i.e X MB.
Now you can have idea where , what needs to be changed. Accordingly id you are short of swap space, then you can add device swap to your machine.
Thanks,
-pap