- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swap Space Calculation
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
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
10-09-2003 02:33 AM
10-09-2003 02:33 AM
I am always in a confusion with swap settings with my HP-UX Servers. I have a N class server N5000-55 with 4 processors. This machine has 8 GB of memory. I found the system was configured with 6 GB ( 3GB primary and 3 GB secondary) of swap space (looks weird). I know it is not good.
I need a clear picture to set up Swap Space calculation on HP-UX Servers with large memory( >8 GB) and large applications like oracle, ERP etc.
Thanks in Advance
Vijay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 02:37 AM
10-09-2003 02:37 AM
Re: Swap Space Calculation
If your system takes heavy swapping/paging then you can think about increasing the swap space.
Else if your memory usage is minimal then you can think about enabling Pseudo swap.
How is the usage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 02:44 AM
10-09-2003 02:44 AM
Re: Swap Space Calculation
In almost every case, I configure only a small amount of primary swap (512MB-1GB -- you must have some primary swap), enable pseudoswap, and then monitor the system. In many cases no additional swapspace is needed. It's so easy to add swapspace that there is really no need to worry about it on the front-end. The reason you bought all that memory is so that you won't have to swap.
Finally, I have to tell you that 8GB's is not considered a large amount of RAM for Oracle and ERP. It's very common to see boxes with 32GB's of memory for these applications --- and yes they run just fine with very small amounts of swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 02:55 AM
10-09-2003 02:55 AM
Re: Swap Space Calculation
That brings up a question. With so small of a swap space (which I think is a good thing), then what do you do for dump space? Create an 8GB dump volume on vg00? Worry about it later?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 02:58 AM
10-09-2003 02:58 AM
Re: Swap Space Calculation
My memory usage are around 65 to 80% rightnow. I am worrying if i run out of memory in future?
Clay:
Thanks for your help. As you said i know the rule of thumb to have 2 to 3 times swap. I am not sure abt swapmem_on (set to on in my case).
Thanks
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 03:11 AM
10-09-2003 03:11 AM
Re: Swap Space Calculation
Beyond that your ideas concerning not needing a ton of swap space are correct. The old rule of swap 2.0 times RAM don't apply unless the machien is really overloaded.
The A. Clay Stephenson school of swap says set up a small primary swap area and then a larger secondary one. This sets gets you excellent performance, particularly at low load factors.
The maximum amount of swap is 16 GB, based on a hard kernel limit in HP-UX 11.11 anyway.
Once you are running, you need to check actual swap utilization. I went through an elaborate process of calculating swap on a trio of rp5450 L class servers and every time I check its not using any.
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
10-09-2003 04:03 AM
10-09-2003 04:03 AM
SolutionI also take the view that dumpspace and swapspace have nothing to do with each other and there is certainly no need to mirror dump space but a great need to mirror swap space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 04:16 AM
10-09-2003 04:16 AM
Re: Swap Space Calculation
Swapsize = RAM size.
pseudo_sap = 1 (always on as its a good safety net should you run out of swap)
forget dumpspace, should a crash happen you can savecore it away on reboot to anywhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2003 05:44 AM
10-09-2003 05:44 AM
Re: Swap Space Calculation
One artifact seen with Oracle and also with SAP. Once installed and running, they will not need multi-Gb of RAM, but during installation, you may need 5-10Gb of swap space because the installer requires massive amounts of RAM. This is simple to accomodate: just use swapon to add either raw of filesystem sawp space to reach the 5-10Gb level, install and reboot. The swap space is temporary using swapon.
Bill Hassell, sysadmin