- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- High swap usage
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
10-29-2008 04:31 AM
10-29-2008 04:31 AM
High swap usage
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 16384 0 16384 0% 0 - 1 /dev/vg00/lvol2
reserve - 16085 -16085
memory 26327 10830 15497 41%
total 42711 26915 15796 63% - 0 -
Total swap can reach 99% at which time we'll recycle one application that uses a lot of virtual memory. This brings total swap under 40% but it just starts climbing again. It seems a waste to add more disk swap space, adding memory will have little effect, and the 3rd party mapping application is not going to change.
Are there any other memory management techniques to keep from running out of swap space?
Thanks,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 04:51 AM
10-29-2008 04:51 AM
Re: High swap usage
Do you know that this application justifiably uses all that memory? It looks like it may have a really bad memory leak. Nothing much you can do about memory management. This app will use all the memory resources.
> we'll recycle one application
How often do you have to do this? If you can not change the app you should look into cron scheduling a restart of this app during off hours before it uses up all the memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 05:47 AM
10-29-2008 05:47 AM
Re: High swap usage
your swap device is still not used (0%).
pseudo_swap is raising.
Have you checked 'vmstat -n' for po (paging out swap)?
Also check patches for memory leaks - they are too much patches if you don't know what kind of program (java, drivers) is causing this leak.
Are you up-to-date with patching?
Also you should have as much device swap as ram.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 06:17 AM
10-29-2008 06:17 AM
Re: High swap usage
ftp://eh:spear9@hprc.external.hp.com/memory.htm
It sounds crazy, but another way to check is by incrementing the device swap, and then seeing if by any chance the application will reserve that space too up to reaching 99%.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 06:26 AM
10-29-2008 06:26 AM
Re: High swap usage
vmstat 1 shows po = 0.
I realize that swap is not used but all of it is "reserved". This is jsut the way HP-UX manages memory. I do not agree that we should have as much swap as RAM. That was HP's reason for implenting speudo_swap.
From DocId KBAN00000895
Pseudo swap is HP's solution for large memory customers who do not wish to purchase large amounts of swap space. The justification for purchasing large memory systems is to prevent paging and swapping, therefore; the argument becomes "Why purchase a lot of swap space if the system is not expected to page or swap?"
I think it is unreasonable to add device swap when it is not even being used.
Thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 06:38 AM
10-29-2008 06:38 AM
Re: High swap usage
Your application has a memory leak.
http://www.hpux.ws/?p=8
That tool will identify the process.
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
10-29-2008 06:46 AM
10-29-2008 06:46 AM
Re: High swap usage
you're right, but your 'total' is more used (in %) than your 'memory', and 'dev' is a part of 'total', so increasing 'dev' will increase 'total' and lower the use in %, so you'll meet 99% later.
Check knowledge base for informations about memory leak with oracle.
Are you up-to-date with patches?
Are there recommended settings for kernel parameters and patches for this application?
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 07:13 AM
10-29-2008 07:13 AM
Re: High swap usage
is interesting but results do not agree with gpm. The Oracle connections showing 6.9MB resident and 1.6GB virtual in gpm are only showing 25712KB resident and 102976KB virtusl in the script. Or am I reading this wrong? (The man page seems a little old).
It would be nice to know which is correct before going back to the vendor to fix their leak.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2008 12:37 PM
10-29-2008 12:37 PM
Re: High swap usage
Either you add more device swap, or you have to restart or recode your application.
Unfortunately if it has a leak, it only means you can wait longer before restarting it. :-(
>is interesting but results do not agree with gpm. ... Or am I reading this wrong?
gpm is always correct. :-)
This difference isn't important. Do both show it growing?
>TTr: Nothing much you can do about memory management. This app will use all the memory resources.
You can cheat. You can have that evil process do lazy swap allocation and oversubscribe. And if it actually needs it, it is the only one that dies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2008 05:00 AM
10-30-2008 05:00 AM
Re: High swap usage
Thanks to everyone for their responses.