- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System hanging
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
тАО12-13-2001 11:24 AM
тАО12-13-2001 11:24 AM
Running HP-UX 11.0 on an N-class server. We've been experiencing system hanging problems recently, where the system seems to hang up for several seconds, then is ok. GPM shows Memory Wait Queue spiking during these periods, jumping from 0 processes waiting to up to 32 processes waiting on mem resources. It remains like that for a number of seconds -- enough to cause user complaints.
Swapinfo shows:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 512000 0 512000 0% 0 - 1 /dev/vgroot/swap
dev 3072000 212884 2859116 7% 0 - 0 /dev/vg01/swap
dev 3072000 215900 2856100 7% 0 - 0 /dev/vg02/swap
dev 3072000 215884 2856116 7% 0 - 0 /dev/vg03/swap
dev 3072000 217864 2854136 7% 0 - 0 /dev/vg05/swap
reserve - 3163608 -3163608
memory 2786380 1437704 1348676 52%
I dont think we have a shortage of memory; almost no paging out at all, and almost no VM writing to disk in gpm. I've used the "UNIX95= ps -e -o "user,vsz,pid,ppid,args" | sort -rnk2" command, and output to files during "normal" periods, and during "wait" periods. Looking at the top mem users, it appears that when a wait period begins, a new process appears in the high-mem-usage end of the listing, but when the wait period ends, thoses processes still remain. This doesnt seems like unusual behavior that should suddenly cause obvious performance issues. How can I identify what the exact cause is of mem que waits? Then, how do I go about correcting it?
Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 11:36 AM
тАО12-13-2001 11:36 AM
Re: System hanging
Looking at your swapinfo, your system is running low on memory. This is because the reserve is around 3GB which gives a good idea of the processes occupying around it. And you can see almost 1 GB of pages sitting on the swap. When a new process is forked, obviously some processes have to be paged out to accommodate it's private area. What does your vmstat -s 's cumulative page out value?.
If you are using the default buffer cache of 50%, you may want to get it lower by altering
dbc_max_pct. Or get the system some more memory like 2GB extra.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 11:55 AM
тАО12-13-2001 11:55 AM
Re: System hanging
You might find this doc is useful..
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=f704aad410450a6e52/screen=ckiDisplayDocument?docId=200000056493259
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 11:55 AM
тАО12-13-2001 11:55 AM
Re: System hanging
438883 pages swapped out
16647831 page outs
39011422 pages paged out
472405557 pages scanned for page out
But, are these values cumulative since the last reboot? The system has been up for 248 days. Would a reboot free up some mem? Also, the dbc_max_pct is at 50%. Would a reduction to 30% be reasonable? Thanks again for your help -- sys tuning is not my specialty!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 12:04 PM
тАО12-13-2001 12:04 PM
Re: System hanging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 12:35 PM
тАО12-13-2001 12:35 PM
Re: System hanging
Check out this thread. James attached several good documents, including the one stated above.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 12:36 PM
тАО12-13-2001 12:36 PM
Re: System hanging
You certainly need to consider decreasing dbc_max_pct value. You can make it around 15% and watch for %wio in sar -u and %rcache and %wcache in sar -b.
dbc_mac_pct has to be adjusted according to the pattern you see. Typically %rcache > 90 and %wcache > 80. If you have %wio > 20, then your system is bottlenecking on IO.
You can start with 15% of dbc_max_pct and observe the above.
This needs reboot. So, this will also fix if you have any memory leaks on the box.
Take a make_recovery tape of the system before rebooting. I have seen systems with this much uptime not come up properly. Also run /sbin/init.d/clean_ex start before rebooting the box as it will take a long time here during the bootup.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 01:11 PM
тАО12-13-2001 01:11 PM
Re: System hanging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 02:56 PM
тАО12-13-2001 02:56 PM
Re: System hanging
Regarding tracking current pageouts, run vmstat -n and it will list it out under po column .
for eg:
#vmstat -n 5 5
VM
memory page faults
avm free re at pi po fr de sr in sy cs
96439 1426934 140 31 1 0 46 0 0 5642 12263 3923
***
Also see the usage of vhand and swapper:
ps -ef |grep vhand
IF they are accumulating CPU time rapidly , then it is doing too much of memory swapping, which is not a good thing.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2001 12:30 PM
тАО12-17-2001 12:30 PM
Re: System hanging
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 512000 0 512000 0% 0 - 1 /dev/vgroot/swap
dev 3072000 58212 3013788 2% 0 - 0 /dev/vg01/swap
dev 3072000 57816 3014184 2% 0 - 0 /dev/vg02/swap
dev 3072000 58444 3013556 2% 0 - 0 /dev/vg03/swap
dev 3072000 58424 3013576 2% 0 - 0 /dev/vg05/swap
reserve - 3729136 -3729136
memory 2786348 655384 2130964 24%
Now I remember why I havent been using sar...
Since upgrading to newer system, and to HPUX 11.0, sar is broken. It wants /var/adm/sa/sa17 which does not exist on the system. Even the dir /var/adm/sa does not exist. Do I need to reinstall something??