- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swapspace configuration
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
07-03-2003 06:03 AM
07-03-2003 06:03 AM
Swapspace configuration
Primary Swap (lvol2) - 8 GB mirrored across both root disks
Secondary Swap (lvswapA) - 8 GB on one local root drive (not mirrored)
Secondary Swap (lvswapB) - 8 GB on other local root drive (not mirrored)
We are considering mirroring all swapspace across both drives.
The reason we are thinking about doing this is that in the past there have been a couple instances where we have lost one of the root drives. Our understanding is that the system was using the swapspace area that was suddenly unavailable, causing it to hang. We would then have to go and reboot it with the good drive. This seems to defeat the purpose of having mirrored root drives for redundancy.
Also, if we mirror swap across both root disks, does it really do any good to divide it up into smaller lvols? Should we just have a primary swap and one huge secondary swap?
- Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 06:07 AM
07-03-2003 06:07 AM
Re: Swapspace configuration
If you're only going to be placing swap on the two root drives, then it doesn't make any difference whether you split it up or not. Any gain would come from distributing it amongst other spindles, or better yet, not using swap at all!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 06:13 AM
07-03-2003 06:13 AM
Re: Swapspace configuration
Mirror you swap.
There is no 'swapoff' command in HP-UX. And if you lose a disk where unmirrored swap resides then the server will panic.
Put your secondary swap on disks other then boot disks. This will minimize I/O.
More physical memory is better then swap and inexpensive so check into upgrades. Upgrades aren't that complicated you just needed the purchase order.
Keep your swap priorities the same, all '1'. This will allow for interleaving between primary and secondary.
Many small lvols on one disk would map out all over the place and be less efficient then two large lvols on two different disks.
Remember to use contiguous.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 06:17 AM
07-03-2003 06:17 AM
Re: Swapspace configuration
Bet it woudn't run real well on a system with 2 GB of memory then, because your swap ratio will be all messed up.
There is a lot of debate on the issue of swap. I've seen A. Clay post that you should have a small primary swap and a larger secondary. This will get good performance especially when system load is low.
The general rule I've learned is swap should be between 1.5 and 2.0 times physical memory. I've tried running Oracle with a 1 to 1 ratio and paid the performance price.
I generally have one swap area, though I'm setting up a "new" D320 on Mondahy and I'm going to try A. Clay's idea. It has 1 GB of ram, so there will be a 500 MB primary and a 1.5 GB secondary swap.
I'm intimately familiar with this system, so we'll see how things work.
I do mirror my swap on production systems. If a disk goes, the system won't run right without swap.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 06:18 AM
07-03-2003 06:18 AM
Re: Swapspace configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 06:26 AM
07-03-2003 06:26 AM
Re: Swapspace configuration
Yes idea is good. If you mirror root disk keep all in mirror. HPUX can not swap off space and if you have problem with one disk you will have troble with swap manager.
Problem is that using mirror for swap in not good for two reason.
1. Using swap in your vg00 will slow down your work
2. Mirroring swap is pointless becouse of MONEY.
For me is good to keep primary swap = RAM
and to have additional disk only for swap.
if you can, choice fastes disk.
Remember that you need mirror as well because of swap nature
Are you real use this big amount of swap ?
Use swapinfo to catch your real needs ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 06:40 AM
07-03-2003 06:40 AM
Re: Swapspace configuration
One way to "outbushwhack" this without having to set aside huge amounts of disk that will never be used (and 2X when mirrored) is to configure the awful, terrible, filesystem swap at very low priority. If you have enough memory, you aren't using it anyway.
The optimal method is to configure with a small amount of primary swap, set swapmem_on=1, and then monitor swap usage. It's so easy to add after the fact that worrying about swapspace layout on the front-end is a waste of time.