- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sizing 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
03-30-2004 05:30 AM
03-30-2004 05:30 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 05:36 AM
03-30-2004 05:36 AM
Re: Sizing swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 05:36 AM
03-30-2004 05:36 AM
Re: Sizing swap
If you want to be able to dump - then Primary swap should be 1 x memory.
Application - SAP - requires 24GB of swap...
Another thing I like to do is set /var/adm/crash - 1 x memory + 512MB
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 05:56 AM
03-30-2004 05:56 AM
SolutionThe idea is to never have to swap at all. If you enable pseudoswap then you can fully utilize your system with 25% of RAM as swap.
My typical setup on boxes with large amounts of RAM is to configure 1GB or so or primary swap and then monitor swap usage. It's so easy to add additional swap that it is really not worth worrying about. All swap should be mirrored so this means that whatever disk space you thought you were wasting just got doubled. For applications like SAP that require 3X memory for swap during installation, my answer to that is too configure filesystem swap at low priority. After the SAP install is done, you can then reduce swap to tiny values and SAP is still happy.
I am also a firm believer that swap and dump have nothing to do with one another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 06:55 AM
03-30-2004 06:55 AM
Re: Sizing swap
I am a member(without invitation)in the A. Clay Stephenson school of swap.
Set a primary swap area to half of ram. Then set a lower priority one to make up the difference between that and 1.5 times RAM. The 1.5 is up to you.
This scheme provides excellent performance when system loads are light with the scalability of being able to handle higher loads.
Just setting swap to 2x RAM can impede performance when compared to other scenarios. To cover the swap area there are more and longer head movements on the disks. Whether that makes a huge impace with todays 10K and 15K disks is open to debate.
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
03-30-2004 07:19 AM
03-30-2004 07:19 AM
Re: Sizing swap
Otherwise, if its using 8GB of swap along with 8GB of RAM, the system is SERIOUSLY hurting. In fact, if this system is using even half a gigabyte of swap on a routine basis, your computer is hopelessly overworked. So the real answer to your question, like for most good questions, is "It all depends.....". In this case, it all depends on the use of the system and tolerance of error. The less error you can tolerate, the more swap the system will need.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:05 AM
03-31-2004 03:05 AM
Re: Sizing swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:15 AM
03-31-2004 03:15 AM
Re: Sizing swap
I think you may be confusing swap and dump. Dump space does not need to be mirrored as it is just used for crash dumps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:21 AM
03-31-2004 03:21 AM
Re: Sizing swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:22 AM
03-31-2004 03:22 AM
Re: Sizing swap
If swap is not mirrored. you may have problems when your boot disk fails and you have NO swap available for root...when you fail over to your alt boot path.
that is why you should have at least SOME of your total swap located in VG00 on the root bootable disk both PRI and ALT... so that it will be mirrored at least for the OS to have swap.
In some cases it will prevent you from being able to boot with out swap being mirrored.
---------------------------------------------------
All my swap areas are mirrored whether on vg00 or vg01. And my swap is typically half of Memory unless the box has large amount of Memory...In one case 72GB memory with 26GB Swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:26 AM
03-31-2004 03:26 AM
Re: Sizing swap
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 03:37 AM
03-31-2004 03:37 AM
Re: Sizing swap
It is also recommended that you have a separate DUMP area from SWAP so that if you need to reboot or your box reboots on a panic, you dont lose the dump...
If your dump is the same as swap you can risk losing a dump that could be crucial to a solution.