- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pthread stack size
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
тАО05-18-2011 06:35 AM
тАО05-18-2011 06:35 AM
We have a server running informatica. It was working correctly until the latest pthread patch PHCO_41407. After that patch we now find it necessary to set PTHREAD_DEFAULT_STACK_SIZE to a larger value. I have other machine that is not patched yet. I was wondering how to display the default stack size.
Solved! Go to Solution.
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 07:22 AM - last edited on тАО08-02-2011 07:44 AM by Kevin_Paul
тАО05-18-2011 07:22 AM - last edited on тАО08-02-2011 07:44 AM by Kevin_Paul
Re: pthread stack size
Hi Court:
See if this helps:
http://h30499.www3.hp.com/t5/System-Administration/Pid-lt-nnn-gt-killed-due-to-trashed-stack/m-p/5106420#M445205
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 07:42 AM
тАО05-18-2011 07:42 AM
Re: pthread stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 07:54 AM
тАО05-18-2011 07:54 AM
Re: pthread stack size
If you had already seen the thread reference I cited, then I assume that you have googled for other threads in the ITRC on this topic. There seem to be a fair number.
Perhaps you should open a call to the Response Center.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 11:42 PM
тАО05-18-2011 11:42 PM
Solution(I'm on an internal patch after PHCO_41407.)
>I was wondering how to display the default stack size.
You can use tusc to find the size of the mmap(2): 266240 == 128 Kb * 2 + 4 kb guard
>because the pthread calls from informatica should presumably be the same before and after the patch.
Yes but the functions in libc or libpthread may use slight more stack space and that may be just enough to get an overflow.
>JRF: See if this helps:
threadId=1227330 is about PA. Integrity is slightly different, due to RSE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2011 07:08 AM
тАО05-24-2011 07:08 AM
Re: pthread stack size
> Yes but the functions in libc or libpthread may use slight more stack space and that may be just enough to get an overflow.
This is the part that bothers me. If the functions use more stack space, why not also increase the default stack size to accommodate the function changes?
P.S. thanks for the info. I was actually waiting for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2011 07:06 PM
тАО05-24-2011 07:06 PM
Re: pthread stack size
Because "slightly more" isn't enough to worry about? ;-)
And increasing it may break other applications that may run out of swap.
And most important of all, this isn't a 16 bit machine where every byte on the stack needs to be accounted.
Do you have a corefile of your thread stack overflow? How much was your "larger" value?
I have seen a problem with mallocNG and thread stacks where the recursion was over 5K frames.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2011 08:08 AM
тАО05-26-2011 08:08 AM
Re: pthread stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2011 05:27 PM
тАО05-26-2011 05:27 PM
Re: pthread stack size
Ok. We can't get the exact stack trace to figure out the calls and stack usage.
>where setting PTHREAD_DEFAULT_STACK_SIZE to a higher value resolved the issue. We now have it set to 524288.
Well that doubles it but doesn't tell you exactly how much bigger it needed. If you have time to experiment you could use: 331776