Unix Technical Forum

max threads blown?

This is a discussion on max threads blown? within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi, A process has thrown sig 11 on a pthread_create but I don't belive at the moment that the ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:05 PM
Adam Skeggs
 
Posts: n/a
Default max threads blown?

Hi,

A process has thrown sig 11 on a pthread_create but I don't belive at
the moment that the process itself blew it's thread limit (256).

I am guessing there may be an issue with max threads at the kernel
level. I need to find out how many threads are active on the system in
total. Is there a utility to do this (easily)?


Kernel values are:
nkthread 2048 2048
max_thread_proc 256 256


Adam.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:05 PM
Adam Skeggs
 
Posts: n/a
Default Re: max threads blown?

Adam Skeggs wrote:

> Hi,
>
> A process has thrown sig 11 on a pthread_create but I don't belive at
> the moment that the process itself blew it's thread limit (256).
>
> I am guessing there may be an issue with max threads at the kernel
> level. I need to find out how many threads are active on the system in
> total. Is there a utility to do this (easily)?
>
>
> Kernel values are:
> nkthread 2048 2048
> max_thread_proc 256 256
>
>
> Adam.


Glance plus seems promising but only lists a few theads by default.
Where is decent doco? Man page is incomplete so is online help.

Adam.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:05 PM
Paul Pluzhnikov
 
Posts: n/a
Default Re: max threads blown?

Adam Skeggs <fun@optusnet.com.au> writes:

> A process has thrown sig 11 on a pthread_create but I don't belive at
> the moment that the process itself blew it's thread limit (256).


Even if it did run out of some resource, you'd get an error from
pthread_create() -- ENOMEM or some such. Unix does not usually
signal resource exhaustion via "trowing SIGSEGV".

You should look for a bug in your program instead.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:05 PM
Carl Burch
 
Posts: n/a
Default Re: max threads blown?


You might also be overflowing the thread-specific stack, which
defaults on some older versions of HP-UX to something small like 64K
bytes. That causes a SIGSEGV, usually pretty early in running the user
code of the new thread. There's a pthreads API call to set it to
something bigger, though its name escapes me at the moment.

- Carl Burch
HP WDB Debugger Team

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com