- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swap requirements
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
04-18-2006 07:11 AM
04-18-2006 07:11 AM
We are increasing memory to 16GB and 20GB with 4cpus on each server. Any suggestions as what will be a good swap space.
- Same as physical memory
- double the size of physical memory
Can you explain why?
Thank you all for your input.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 07:21 AM
04-18-2006 07:21 AM
Re: swap requirements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 07:24 AM
04-18-2006 07:24 AM
Re: swap requirements
Given that you already have some amount of primary device swap, I'd simply add enough secondary device swap to yield device swap at equal to your physical memory, *but* make sure that you have pseudoswap enabled in the kernel --- 'swapmem_on=1'. Enabling pseudoswap means that 75% of your memory can be counted for process swap reservation during process initiation. This is a kernel "accounting" trick and does not mean that any swap space is actually used.
Monitor your swap utilization with 'swapinfo'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 07:26 AM
04-18-2006 07:26 AM
SolutionThe real answer to your question is as much as you need and no more. You should configure at least 0.25X memeory as swap space and enable pseudoswap (swapmem_on=1). This will allow 0.75X of your memory to be treated as swap space for purposes for reservation calculations. You then monitor swap usage. It's so easy to add additional swap space as long as you have unused disk space that it is hardly worth worrying about. You should also increase maxswapchunks so that a reboot will not be needed in case additional swap space is actually needed. You goal should be to actually never swap so that none of the swap space is actually used.
Every dab of your swap space should be mirrored. If you add more swap than memory then disable pseudoswap as it then serves no purpose.
You should also decouple the dynamic buffer cache from the amount of memory so that memory adds do not grow buffer cache beyond reasonable, optimal sizes. You do that by setting bufpages to a nonzero value equal to the number of 4K pages. A value some where between 800-1600MB (bufpages=204800-409600) should be about right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 04:49 PM
04-18-2006 04:49 PM
Re: swap requirements
I suggest you to have at least double of memory for swap.
I have running 4 SAP instance on my machine, it have 9GB Physical Memory. The swap util is about 9GB to0, but the load of machine (cpu) is very low because its use for development.
In another machine, I'm running 1 instance of SAP (production), it have 8GB Physical Memory and swap util is about 7GB.
Now what happen how if I configure the swap same size with memory ?
I have another example, while running Datawarehouse application/database on my Superdome with 44GB physical memory. There was 2 time when the system runs out of memory and swap utilization is 100%.. the system hang/crash. Then I configure another swap device so total swap is 90GB, its better now :)
Thx,
EKO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2006 03:40 PM
04-22-2006 03:40 PM