HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question on Semaphore/Socket waits
Operating System - HP-UX
1825775
Members
1908
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
11-01-2004 01:29 AM
11-01-2004 01:29 AM
I have an N Class system running SAS and Oracle that I have been working on trying to resolve performance issues.
In Perfview, when I look at the statistics, I see a lot of SOCKT and SEM waits.
I have searched documentation and the forums, and can't seem to find the answer to the following question:
What is the meaning of a socket wait:
A) Process is waiting for a socket (the system does not have any sockets to assign, so one has to be "freed" from another process.
B) Process is waiting on a socket (the process has connected to another process/system via socket and now is waiting for a request sent over that socket to complete or be responded to before the waiting process can continues)
C) Either a or b with no way to tell the difference
I also see large numbers of SEM waits on Oracle processes. I have the same question:
is it
A) Waiting for a semaphore to be available to it can use it to lock something
B) Waiting on something that is semaphore locked to become available
C) either a or b, with no way to tell the difference
I have always noticed large numbers of sem waits on Oracle systems, but have never been able to find out what is "typical" sem wait percents, and what is "abnormal" indicating a problem.
Your responses appreciated. Points will be assigned.
Thanks.
Tony
In Perfview, when I look at the statistics, I see a lot of SOCKT and SEM waits.
I have searched documentation and the forums, and can't seem to find the answer to the following question:
What is the meaning of a socket wait:
A) Process is waiting for a socket (the system does not have any sockets to assign, so one has to be "freed" from another process.
B) Process is waiting on a socket (the process has connected to another process/system via socket and now is waiting for a request sent over that socket to complete or be responded to before the waiting process can continues)
C) Either a or b with no way to tell the difference
I also see large numbers of SEM waits on Oracle processes. I have the same question:
is it
A) Waiting for a semaphore to be available to it can use it to lock something
B) Waiting on something that is semaphore locked to become available
C) either a or b, with no way to tell the difference
I have always noticed large numbers of sem waits on Oracle systems, but have never been able to find out what is "typical" sem wait percents, and what is "abnormal" indicating a problem.
Your responses appreciated. Points will be assigned.
Thanks.
Tony
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:18 AM
11-01-2004 02:18 AM
Re: Question on Semaphore/Socket waits
About sockets.
System running out of sockets. Application should take care of it. If a socket does not get a response on a socket for a particular time, it should close the socket. There is also a ndd option as tcp_fin_wait_2_timeout.
which would close a tcp connection in fin_wait_2 after a certain period.
Look at the following thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=701847
About Semaphores.
there are certain kernel parameters that you can set to keep tak on max limit on sems. Also does'n oracle process make it free once it is done. Set the semaphores setting reasonably and check. If it still waits on semaphores, you can bump up the value.
Check following link to tune semaphore related kernel settings.
Anil
System running out of sockets. Application should take care of it. If a socket does not get a response on a socket for a particular time, it should close the socket. There is also a ndd option as tcp_fin_wait_2_timeout.
which would close a tcp connection in fin_wait_2 after a certain period.
Look at the following thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=701847
About Semaphores.
there are certain kernel parameters that you can set to keep tak on max limit on sems. Also does'n oracle process make it free once it is done. Set the semaphores setting reasonably and check. If it still waits on semaphores, you can bump up the value.
Check following link to tune semaphore related kernel settings.
Anil
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 03:45 AM
11-01-2004 03:45 AM
Solution
Hi Tony,
You got answers for yourself.
1. Modify B slightly. The process is waiting to get a response from the other end of the connection. To understand it better, run 'tusc' on the process and you will see the process waiting to get a response from the file descriptor corresponding to the socket.
2. B again.
There is no hard and thumb rule on typical wait percentages. It depends on how your application works. Remember that these are percentages. 9 of 10 is 90% and 9000 of 10000 is also 90%. Both are mostly dependent on your application behaviour.
Typically sockets are deemed file descriptors and are reflected in the 'number of open files'. So if you are running out of them, then you should be seeing 'filetable overflow' messages. Similarly you should see 'semaphore table full' in your perfview stats.
-Sri
You got answers for yourself.
1. Modify B slightly. The process is waiting to get a response from the other end of the connection. To understand it better, run 'tusc' on the process and you will see the process waiting to get a response from the file descriptor corresponding to the socket.
2. B again.
There is no hard and thumb rule on typical wait percentages. It depends on how your application works. Remember that these are percentages. 9 of 10 is 90% and 9000 of 10000 is also 90%. Both are mostly dependent on your application behaviour.
Typically sockets are deemed file descriptors and are reflected in the 'number of open files'. So if you are running out of them, then you should be seeing 'filetable overflow' messages. Similarly you should see 'semaphore table full' in your perfview stats.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP