- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Thread creation rates...
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-19-2003 03:09 AM - last edited on тАО01-31-2012 01:59 AM by Ajay-Kumar
тАО12-19-2003 03:09 AM - last edited on тАО01-31-2012 01:59 AM by Ajay-Kumar
Thread creation rates...
My understanding is that when a thread is created or destroyed, a thread in the system will have to lock some sort of kernel data-structure (since each thread has a unique incremented ID in the system).
So if I have a system running on a multi-cpu server, there is a risk of lock contention if there is a high thread creation rate.
So my question is:
What constitutes a 'high' thread creation rate? At what point do I need to worry about this?
(Operating system version: 11i (11.11) and 11.0.)
Hardware: primarily rp5470 with 1,2 or 4 CPUs.
The reason I'm interested in understanding this is that we have a 3rd party application forming part of our system which generates up to several hundred transient threads per connected process every 2 minutes (these threads are created and exit within a couple of seconds) So thread creation on my server is very bursty, and I'm concerned that this is causing significant performance problems during these bursts.
Thanks!
Dav
-------------------------------
P.S. This Thread has been moved from HP-UX --> Workload/Resource Management to HP-UX --> Languages & Scripting - Forum Moderator
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 07:18 PM
тАО12-22-2003 07:18 PM
Re: Thread creation rates...
There will be some serialisation for sure, and the more there is CPU, the more you will pass time on spinlock while doing it.
But I have no data on what will be the influence of those partials serialisations.
If you want to see better, just use glance, and look at the time spend in pthread_create().
This with one cpu, 2 cpu and 4 cpu.
If you see the rate of the pthread creation decrease/cpu, or the time spend in pthread_create() increase, it means we have such serialisation. ( - on 11.11 the structure of the thread table should bring some improvment there)
But in any case the best way to do such a server is to have a pool of static threads, waiting for virtual threads to be executed ( on a queue of actions to do)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 12:28 AM
тАО01-05-2004 12:28 AM
Re: Thread creation rates...
Question for the supplier of the software then... (especially since their code is supposed to implement thread pools...)