- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pseudo swap, again
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
06-19-2003 07:48 AM
06-19-2003 07:48 AM
1. On systems with device swap < physical memory, pseudo swap should be enabled always, or the physical memory can't be fully used.
2.On systems that have device swap = 1 * physical memory, should pseudo swap be disabled, because of the (small) overhead? Or should it be left enabled, to cater for the possibility that the system runs low on memory and will need to use the device swap space for 'real' paging?
2. What about when device swap > 2*physical memory? It's my understanding that pseudo swap in this case would not be of any use, because there is enough swap space to 'reserve' and to pageout in case the system runs low on memory.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 07:56 AM
06-19-2003 07:56 AM
Re: pseudo swap, again
I believe that we are encouraged to leave pseudo swap on (by default). The order of swap usage is pseudo swap then device swap and then (last) filesystem swap. Needless to say, swapping things from pseudo swap is faster than the other two since data is on the RAM, not on a harddisk.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 08:05 AM
06-19-2003 08:05 AM
Re: pseudo swap, again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 08:14 AM
06-19-2003 08:14 AM
Re: pseudo swap, again
In practice, the real swap needs to be at least the size of the RAM in order for the OS to be able to reserve swap space for every process spawn. This practical rule can be ignored if you have lots of RAM and a handful of little processes (not requiring much RAM).
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 08:36 AM
06-19-2003 08:36 AM
Solution2. & 3. Yes, pseudo swap should always be on - its a safety net. Just in case you use all your device swap then it will use RAM as swap which may save you from your application crashing. eg. you lose an unmirrored disk with device swap on - pseudo swap will save you!
We always have pesudo swap on all our servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 08:50 AM
06-19-2003 08:50 AM
Re: pseudo swap, again
But I'm not sure I understand how is RAM wasted when pseudo swap is used, if it's only added to a counter of remaining swap space... nothing is actually paged-out to pseudo swap, is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 08:59 AM
06-19-2003 08:59 AM
Re: pseudo swap, again
Pseudoswap is for reservation only. A good discussion can be found in the Technical Knowledge Base document #KBRC00010136
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2003 12:32 AM
06-20-2003 12:32 AM
Re: pseudo swap, again
Lets imagine you have 1GB of RAM and 1GB of device swap. You load 1GB of programs into memory (just for this exercise lets presume theyre all unlocked so eligble for paging/swapping). To load 1GB of programs into memory 1GB of device swap must be reserved - which means all 1GB of device swap is now allocated. None free.
Now, you load another program of 100MB. There is no RAM left, so 100MB of programs are paged out to device swap, freeing up our 100MB of RAM to load our new program. However, this new program must also reserve 100MB of device swap - and there is none left! (if you didnt have pseudo swap on your program load would fail at this point) so with pseudo swap it will now reserve 100MB of memory - meaning another 100MB must be paged out to device swap. This means loading this 100MB of program has caused 200MB of programs to be paged to device swap (double the size of our 100MB program).
If you had 2GB of device swap then loading this 100MB program would still swap/page 100MB of programs to device swap to free up RAM to load it, but it would reserve 100MB of swap on disk (instead of RAM via pseudo swap), which is much more efficient.
So can you now see how pseudo swap would save you ? but its no substitue for having more device swap. Thats why HP recommend having device swap > RAM.
But remember, for performance reasons you never want RAM to get to 0! You always want to keep some RAM free. This is what we do, so we only set device swap = ram, because we never intend to let our servers run out of ram or else their performance will become crap. But we leave pseudo swap, just in case!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2003 04:41 AM
06-20-2003 04:41 AM