- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Server Performance
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
Discussions
Discussions
Forums
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
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-18-2008 06:46 AM
тАО06-18-2008 06:46 AM
Re: Server Performance
Disk swap is used *before* pseudo-swap in the default reservation algorithm. The only time that changes is when you're using the mlock interfaces, and for kernel dynamic allocations [which are implicitly mlock'd since HP-UX doesn't swap out kernel pages].
Now if you're running Oracle, it wouldn't surprise me if you don't realize this -- since Oracle usually mlock's the SGA if it can. So you can get a big memory swap reservation that matches physical consumption of the SGA. But that doesn't mean everything _else_ on the system will skip the device swap for reservation.
Not to mention, pseudo-swap doesn't "consume free memory" in any way shape or form. Pseudo-swap resources are independent of free RAM. You can completely exhaust one without touching the other.
If you completely run out of kernel memory (which would likely exhaust memory swap due to the stealing... unless you've got a bunch of Ejectable memory on v3, granted) then yes -- you can start to get hangs. Kernel memory exhaustion will do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 01:33 AM
тАО06-19-2008 01:33 AM
Re: Server Performance
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8388608 364 8386836 0% 0 - 1 /dev/vg00/lvol2
reserve - 1558364 -1558364
memory 4163584 1775200 2388384 43%
The memory is pseudoswap-area and it used first. There is now way to change priority of swap-areas, because pseudoswap-area is not in /etc/fstab like others!
If you disable pseudoswap then there is only dev-types in the swapinfo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 02:45 AM
тАО06-19-2008 02:45 AM
Re: Server Performance
Swap is first reserved to back virtual objects on HP-UX (and most Unix OSs) by default. This keeps the kernel from having to do random process killing if there isn't enough swap when actual paging occurs. If an object has disk swap reservations and is chosen for paging, *then* swap will be allocated at the time of paging and in the amount actually paged. This is the "Used" part of swap.
In the swapinfo you showed, a little is Used -- a bunch more is Reserved from disk swap (as it should be). Yes, pseudo-swap also shows use -- from kernel/memory locked objects. All normal. It doesn't mean that disk swap won't be preferred on new non-mlock reservations...
You can't change the priority of pseudo-swap because there's no selection to it. Priority isn't used at reservation time, only at allocation time. Pseudo-swap isn't allocated because there's no point in "paging" a RAM page from itself... to itself.
Seriously -- please read the Memory Management white paper if you haven't before at:
http://docs.hp.com/en/1218/mem_mgt.html
It is a bit out of date being aimed at 11.11 original release (so most of the locks and lists it refers to directly don't exist as such), but the concepts are solid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 03:40 AM
тАО06-19-2008 03:40 AM
Re: Server Performance
But I find that there is something under, when pseudoswap is enabled and applications stop respond and maybe some time continue "without" problems.
Then one way to find what is wrong is disable pseudoswap. What I see is after this change real messages arriving like "not enough semaphores", "out of memory" and so on.
The answer is change parameters, increase swapspace or really by more memory.
It's not easy calculate some kernel parameter or how must memory needed if pseudoswap is enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2008 01:00 PM
тАО06-19-2008 01:00 PM
Re: Server Performance
You'd get the same effect with adding disk swap identical to the pseudoswap you removed -- it has nothing to do with pseudoswap itself. What _will_ be different in that case is that the thrashing (may, depends a bit on workload) may be gentler since vhand will find many objects backed by device swap and hence can page them out. Target rich environment and all.
So yes -- reducing the application load or increasing physical memory if you're thrashing the box is the right answer.
Not sure what you're referring to with the kernel parameter thing, sorry.
- « Previous
- Next »