- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX 11.0 primary swap
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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-22-2003 06:11 AM
07-22-2003 06:11 AM
Is there any kind of limitation on the size of primary swap eg: 4G on HP-UX 11.0 running on K570? On second thoughts, I should have allocated a smaller primary swap and added secondary swap of the same prioririty.
Will I run into problems if I leave it as is (I would prefer that :) ) I don't want to re-ignite the box.
Thanks in advance.
Geetha.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:18 AM
07-22-2003 06:18 AM
SolutionThere is nothing wrong with a 4GB primary swap on vg00 with 4GB physical memory. If you need to add additional swap space, add it on a device *other than* vg00 and set the device's swap priority to zero (0). Since primary swap has a priority of one (1) secondary swap would then be preferentially utilized, thereby reducing (if in fact you do swap!) I/O to vg00.
Ideally, you will really never use swap. It must be there in reserve, however, during process birth.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:19 AM
07-22-2003 06:19 AM
Re: HP-UX 11.0 primary swap
2) There are two schools of thought at least on swap allocation.
The first says twice physical memory, end of story. But when you get into the high end on memory that might not be so true.
I'm a A. Clay guy myself now.
I set the primary swap small, priority zero at exactly half physical memory. Thats the minimum you need for a dump.
Then I have, on a second disk, a larger priority one swap area, between 1.0 and 1.5 times physical memory, depending on the applications the box is running, how many database instances and such.
My machines generally during light to medium load only use the small faster swap area, and they run pretty snappy.
The performance degradation is not so bad when the secondary starts to be used, but it doesn't get used much around here.
swapinfo -tam
Mine shows on a 4 G machine
rp5450 L2000
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2048 0 2048 0% 0 - 1 /dev/vg00/lvol2
dev 6144 0 6144 0% 0 - 1 /dev/vg00/lvol3
reserve - 755 -755
memory 3253 355 2898 11%
total 11445 1110 10335 10% - 0 -
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-22-2003 06:20 AM
07-22-2003 06:20 AM
Re: HP-UX 11.0 primary swap
You're right that the preferred method would be to spread out your swap I/O by putting a secondary swap volume of equal priority on another device. In fact you can still do that. You'll end up with 8GB of swap space but that's not a bad thing. With only 4GB of memory, I would imagine you may well use swap with some regularity.
You might want to look into another 4GB (or more) of RAM and if you do increase RAM, you'll want to increase swap to at least 1X RAM, anyway.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:21 AM
07-22-2003 06:21 AM
Re: HP-UX 11.0 primary swap
Having said all this, the better method is to actually configure with only a small amount of primary swap (512MB or so -- mirrored), enable pseudo-swap and then monitor the usage. It's so easy to add swap later that it's wasteful to blow a bunch of disk as primary swap when chances are it will never actually be used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:21 AM
07-22-2003 06:21 AM
Re: HP-UX 11.0 primary swap
Although that's probably more swap than you'll need, I don't see it as a problem.
If you have 18 GB (mirrored) for vg00 then you still have 13GB+ available for all the other LVs - which is more than enough.
I wouldn't re-Ignite unless you have another reason to.
No, there is no limit - only disk space & kernel parms limit ultimate swap size.
And no you won't run into problems - in fact you now have a dump space large enough to get a complete dump if you ever need one.
I wouldn't lose any sleep over this.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:21 AM
07-22-2003 06:21 AM
Re: HP-UX 11.0 primary swap
Having said all this, the better method is to actually configure with only a small amount of primary swap (512MB or so -- mirrored), enable pseudo-swap and then monitor the usage. It's so easy to add swap later that it's wasteful to blow a bunch of disk as primary swap when chances are it will never actually be used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:28 AM
07-22-2003 06:28 AM
Re: HP-UX 11.0 primary swap
your configuration is O.K.
The only limitation in swap comes from kernel parameters,
maxswapchunks
swchunk
nswapdev
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 06:33 AM
07-22-2003 06:33 AM
Re: HP-UX 11.0 primary swap
You guys are the best. These forums have saved my life very often!