- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SWAP : try this one...
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
01-29-2003 07:18 PM
01-29-2003 07:18 PM
SWAP : try this one...
Most said we should have atleast 1x physical as device swap or may be 2x. That means we need 60G to 120G of device swap.
We have psuedo-swap on.
I understand in old days when systems came with 128M and 512M memory range the above assumption made sense but with such large phy mem ( 64G) where we plan to run most processes in memory, what should be swap space ?
Gettiing another set of 36G disks for this is not a problem/solution. Just wish to know what is the correct approach for large memory systems ?
TIA
-Q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 07:31 PM
01-29-2003 07:31 PM
Re: SWAP : try this one...
When you do psuedo swap on then the kernel calculates the available swap as actual swap space + 75 % of RAM.
This is just a calculation - i.e it inflates the available swap space value-for kernel.
Depending upon what you are running on server, your memory-RAM will be used. If you are applications/programs are memory hungry even 64 Gb will not suffice.
(Like you give more and more to oracle and it takes it and performs even better)
But with moderate memory requirements 64 GB of swap space is more than enough.
psuedo_swap is just for that-to take the advantage of large memory systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 10:23 PM
01-29-2003 10:23 PM
Re: SWAP : try this one...
I would have prefer to keep swap same as physical memory size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 12:47 AM
01-30-2003 12:47 AM
Re: SWAP : try this one...
Anil is right..
It is true, that with pseudo_swap=on, you shouldn't have any problems with forks.
In this case you must have appoximately
110 GB reserved area. So your unlockable_mem
parameter in Kernel must be enough small.
In this case you souldn't have any paging
on your system.
That means your 60 GB real swap is enough.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 01:02 AM
01-30-2003 01:02 AM
Re: SWAP : try this one...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 06:58 AM
01-31-2003 06:58 AM
Re: SWAP : try this one...
The vhand process is what frees up memory when the amount of available memeory drops below a certain amount. Long ago, this is when swapping would start. But not anymore, in large memory systems the memory is marked as deactivated but it is not swapped. If the application tries to access the deactivated memory and the information contained in it is still in tact, then it is marked as active and processing continues.
If your system comes under pressure, the deactivated memory can be overwritten. If things continue downhill from there, then the system will try to use the "virtual" swap. It will start to lock pages in memory. If you reach this level, you're in trouble.
With the swapmem_on set to "on," the system does not use that memory as swap, it is not reserved, contrary to what HP's help desk will tell you.
Each process that starts needs a certain amount of swap space available. The pseudo-swap allows processes to start when you exceed the amount of physical swap available. There is a small amount of overhead involved in this. But your memory remains available for use.
With that said, there may be times when more physical swap is needed. In these cases, you should spread swap out across multiple devices and set them up with the exact same geometry. They should reside on different devices. Primary swap should be small. Primary swap can be set with a priority of "1" and the seconday swap with a priority of "0". By spreading the swap areas across multiple devices, the system will round robin the use of the devices which allows for better performance.
So what do you do? Swampmem_on is recommnded for situations where you cannot configure the amount of physical swap that is needed. As in a system with more memory than disk space or one that just cannot spare any disk space for swap. If you do have enough physical swap space available, then you need to turn swapmem_on to off.
Which way you go is up to you and should depend on what resources are available to you and how the applications behave. It doesn't need to be a religion.
ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 07:28 AM
01-31-2003 07:28 AM
Re: SWAP : try this one...
I think I am late in the debate. Point to note is "swapmem_on" participates only in the number game.
2x is an old m(y)ath and is valid for systems that have less physical memory (< 4GB) and that bottleneck on memory. In these cases, you won't get good numbers from memory for reservations purposes.
For systems with huge physical memory (like yours), you will still be going with ~2x swap space except that .75x is from the swapmem_on parameter.
So, for these systems I would configure 1x Device swap and turn swapmem_on parameter.
Ryan -
With the swapmem_on set to "on," the system does not use that memory as swap, it is not reserved, contrary to what HP's help desk will tell you
I am surprized HP helpdesk told you that.
-Sri
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:53 PM
02-04-2003 08:53 PM
Re: SWAP : try this one...
This is what is decided ->
1. Swap space same/more as physical memory
2. psuedo-swap on
3. seconday swap of 16G x 4 created on 4 x 36G drives.
4. swap mirrored on alternate 36G disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 09:06 PM
02-04-2003 09:06 PM
Re: SWAP : try this one...
Thanks for promptly assigning the points.
However, the purpose of this point system is to validate the answer so that in future a user can quickly identify the solution. In this particular post, Stephan gave you correct solution. But he is given only 3 points and this means "your answer did not help me but thanks for you time".
You do not need to give points to all. A 0 will do with correct post carrying around 7 points. This will help the future referrers a lot.
Just wanted to brief if you are not aware of the protocol.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 09:20 PM
02-04-2003 09:20 PM
Re: SWAP : try this one...
I am just too spendthrift on points (just another techie guy who expects more for less) I will do better next time :0
Stephen, I will compensate you for your points soon !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 05:53 AM
02-05-2003 05:53 AM
Re: SWAP : try this one...
Once physical memory exceeds that, it doesn't make sense to follow that rule, because the swap won't get used anyway.
Where did I hear this? At last years HP-World from a number of HP engineers who spoke publicly. I also did some follow up discussions on the issue one on one and after by email.
It would appear based on real world performance testing that setting up too much swap space slows sytem performance at worst, and best case is simply a waste of disk space that can be allocated for other purposes.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com