- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Lots of semaphore activity on a SAP app server
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
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
тАО08-10-2005 03:22 AM
тАО08-10-2005 03:22 AM
The Basis are complaining that some of their SAP transactions are slow on an app server. I checked and there they have configured a lot of "worker" dw.sapSID processes, I'd say a ratio of 7-8 for each CPU.
OVPM and glance reports that most processes are stopped because they are blocked on a semaphore.
I *think* that there might be too much work processes trying to access the same resources, thus the high semaphore usage, and overall this wastes CPU time.
Am I on the right track with this assumption? Could having less workers be more efficient?
Thanks for your input. I'll come back and give points. :)
Olivier
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:31 AM
тАО08-10-2005 03:31 AM
Re: Lots of semaphore activity on a SAP app server
Again as I said, I am not a basis admin and take my words with a grain of salt.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:34 AM
тАО08-10-2005 03:34 AM
Re: Lots of semaphore activity on a SAP app server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:42 AM
тАО08-10-2005 03:42 AM
Re: Lots of semaphore activity on a SAP app server
Also, have an SAP consultant take a look at the activity and this transaction slowing you down. They may have a solution to this symptom and your organization may not be only one suffering from it.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:44 AM
тАО08-10-2005 03:44 AM
Re: Lots of semaphore activity on a SAP app server
The only thing that goes in my mind is the hight number of processes but this might be far from the bull's eye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:49 AM
тАО08-10-2005 03:49 AM
Re: Lots of semaphore activity on a SAP app server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:57 AM
тАО08-10-2005 03:57 AM
Re: Lots of semaphore activity on a SAP app server
As you know, every process launched/forked, grabs a chunk of resources when starting. Semaphores are one of these resources. And their global availability is capped by kernerl parameters starting with "sem" letters. I am no system programer and I do not exactly know what each of these parameters do exactly, but if you can run this command and let us know the output along with your system model, physical memory, swap and OS version, maybe people can compare it to their instances and have some suggestions.
kmtune | grem -i ^sem
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 03:59 AM
тАО08-10-2005 03:59 AM
Re: Lots of semaphore activity on a SAP app server
command should have read grep NOT "grem"... sorry...
sleep deprivation is not good for me :) must cut down coffee consumption...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 04:41 AM
тАО08-10-2005 04:41 AM
Re: Lots of semaphore activity on a SAP app server
Alan: I don't think the buffer cache is a bottleneck, as glance shows that the most of the CPU is used by user processes and not the system. We also have minimal buffer cache on our app servers, around 1%, as they have lots of RAM and don't do much disk access and we wasted too much using the default values.
Mel: These values are those suggested by SAP. The system tables are not filled with this configuration.
# kmtune | grep -i sem
sema 1 - 1
semaem 16384 - 16384
semmap 4098 - 4098
semmni 4096 - 4096
semmns 4096 - 4096
semmnu 8208 - 8208
semmsl 2048 Y 2048
semume 100 - 100
semvmx 32767 - 32767
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 04:48 AM
тАО08-10-2005 04:48 AM
Re: Lots of semaphore activity on a SAP app server
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 05:52 AM
тАО08-10-2005 05:52 AM
SolutionI run SAP benchmarks for a living, so I admittedly have a distored view of the world.
In benchmarks we get the best results to close we can get to 1 worker/cpu. Of course that is not realistic in real life, but a low number of workers should be the goal.
SAP has a nice queuing and dispatch mechanism built in. Use it! Let SAP only schedule a new worker of there is a chance for progress for the task. Otherwise you are just creating more clutter, more contention notably on semaphores.
Also, each active task within an instance will require semaphores (message, paging, presentation buffer, extended memory) and if you have too many (10+? 20+? 30+?) they will get in each others way. If you can manage that, you could/shoudl consider multiple instances. If you were to check out details for recently published SAP benchmark then you will see some vendors going extreme using an instance per cpu core!.
For further investigation / understanding it is of course critical to monitor the SAP semafor usage for example through SAP tools:
ST02 (tune summary)
--> Detail analysis
[additional functions]
--> Semaphores
If this is the first time going there, then be sure to read the legend carefully:
first line = "Wait time entering the critical path"
second = "Residence period in the critical path"
Let us know if you find something interesting.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 07:55 AM
тАО08-10-2005 07:55 AM