- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reduce Primary Swap
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
11-13-2007 11:42 AM
11-13-2007 11:42 AM
Reduce Primary Swap
I want to know is there a way to reduce the Primary Swap size [/dev/vg00/lvol2] in HPUX 11i. The documentation talks about it but no clear steps are there.
Thanks
Mukul
- Tags:
- swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 11:55 AM
11-13-2007 11:55 AM
Re: Reduce Primary Swap
Why bother? Disk is cheap and your vg00 should only be the standard HP-UX logical volumes --- no application filesystems.
If you really want to downsize your primary swap, create an Ignite make_recovery_tape image and re-Ignite. Specify an Advanced Installation and size your filesystems (logical volumes) according to your needs.
Regards
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 12:28 PM
11-13-2007 12:28 PM
Re: Reduce Primary Swap
Thanks for your replay. I understand the logic of disk and memory being cheap. I also understand that re-igniting the system would take care of this issue. However the requirement is to configure the pimary swap/RAM at various sizes to see the impact on performance of application and re-igniting using make_net_recovery or make_tape_recovery seems to be overkill [may be it is the only was :)]. Since this is a vpar instance so managing RAM is not a problem but swap have me puzzled.
Regards
Mukul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2007 12:36 PM
11-13-2007 12:36 PM
Re: Reduce Primary Swap
> However the requirement is to configure the pimary swap/RAM at various sizes to see the impact on performance of application
Give this, why not configure additional secondary device swap that can easily be removed after your emperical study?
As for performance, you simply want enough swap space for process reservation purposes. You never want to actually swap since as soon as you do performance begins to suffer! Using 'vmstat', if you begin to see page-outs in double-digits, you are significantly beginning to swap and need to add more memory or reduce the number of processes that you are attempting to run concurrently.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 01:06 AM
11-14-2007 01:06 AM
Re: Reduce Primary Swap
You need to either ignite or boot in the lvm maintenance mode, hpux -lm
then, remove the primary swap, and then create a new one of the size you want...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 02:04 AM
11-14-2007 02:04 AM
Re: Reduce Primary Swap
This is harder to do on 11iv2 and later since maxswapchunks is gone and swchunk is held to 2048 as a minimum... so there's really no way to constrict swap below 32Gb.
Personally, though -- I'm in the camp of "What does this really test, anyway?" Limiting swap space will cause your processes to start getting ENOMEM earlier on new virtual object creation/growth. I suppose if you're testing throughput performance and want to see what happens when you can create fewer concurrent processes, throttling this would work... but it seems rather arbitrary.
The simplest solution (as stated by Mr. Ferguson) would be to configure your vPar with the smallest amount of swap you want to test as primary and then use FileSystem swap as Secondary swap as you iterate up to your largest configuration... i.e. X Gb Primary + M * N Gb of Secondary where M is your testing step value and N is whatever's appropriate for how you want to step between configurations. If you're on 11iv3 you could even do the testing without reboots this way (OLA in the new memory, swapon() the increased Secondary Swap). 11iv2 or v1 would need a reboot for the memory, obviously.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 02:47 AM
11-14-2007 02:47 AM
Re: Reduce Primary Swap
As mentioned performance with regards to swapspace only comes into play if you are actually paging out to swap because you ran out of physical memory. If swapping occurs then generically your performance will be poor. If you are looking for a level of poor I guess it would be a legitimate question. My experience is that poor is poor and completely unacceptable in most environments.
You should at a minium have at least as much primary+secondary swap = physicall memeory. You can plan games with considering psuedo swap but eventually you will be back in the same place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 03:08 AM
11-14-2007 03:08 AM
Re: Reduce Primary Swap
You can assign secondary swap at priority 0 and primary swap won't be used at all as long as there is enough priority 0 swap. You can assign additional priority 1 swap and it will be interleaved at equal priority with all other priority 1 swap including primary swap. In short, all of your tests can be done using secondary swap if you set the appropriate priorities.
The bottom line is that you really shouldn't be doing this at all especially if performance is your goal for the simple reason that if you are swapping to any significant degree to any type of swap (with the possible exception of a solid-state disk) then you are taking about a 100x performance hit. All of your tweaking with choosing swap layouts and priorities might change that 100x to 98x or 102x. It's still very bad. The real goal is to not to swap at all. I always say that worrying about swap layout on modern UNIX boxes is akin to rearranging the deck chairs on the Titanic.