1832934 Members
2761 Online
110048 Solutions
New Discussion

is this an HP parameter?

 
Rusty Sapper
Frequent Advisor

is this an HP parameter?

We are having a problem with a third party app and they wanted to know what this parameter was set at for our system.

PTHREAD_THREADS_MAX

I know it isn't a kernel parameter and they have already inquired about nkthreads and max_thread_proc.

thanks,

Rusty
10 REPLIES 10
Jeff Schussele
Honored Contributor

Re: is this an HP parameter?

Rusty,

This earlier thread might help:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf05b0b0717d1d5118ff40090279cd0f9,00.html

This is basically a thread limit variable.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: is this an HP parameter?

The max_thread_proc parameter is related to PTHREAD_THREADS_MAX. Whatever value you got assigned to max_thread_proc becomes the limit value assigned to the limit variables PHTREAD_THREADS_MAX. Check /usr/include/limits.h. This is where PHTREAD_THREADS_MAX is defined.
Helen French
Honored Contributor

Re: is this an HP parameter?

Hi Rusty,

Check this out and see the description about the parameter:

http://us-support.external.hp.com/cki/bin/doc.pl/sid=94bc17db0158731a44/screen=ckiDisplayDocument?docId=200000059774355

HTH,
Shiju

Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: is this an HP parameter?

Hi Rusty,

The defenition:

PTHREAD_THREADS_MAX - Maximum number of pthreads that can be created per process.

Check this document for related information, about all type of system configurable parameters:


http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90682/B2355-90682_top.html&con=/hpux/onlinedocs/B2355-90682/00/02/212-con.html&toc=/hpux/onlinedocs/B2355-90682/00/02/212-toc.html&searchterms=PTHREAD_THREADS_MAX&queryid=20020408-081439

HTH,
Shiju

Life is a promise, fulfill it!
Rusty Sapper
Frequent Advisor

Re: is this an HP parameter?

I looked in limits.h but did not find PTHREAD_THREADS_MAX
the only thing close was _POSIX_THREAD_KEYS_MAX

are they related? or the same?

also I rean getconf THREAD_THREAD_MAX which came back as 64. what is THREAD_THREAD_MAX ?

thanks,

Rusty
Jeff Schussele
Honored Contributor

Re: is this an HP parameter?

Same a max_thread_proc.

The minimum & DEFAULT is 64 - so you need to ask them what value (up to 3000) do they think they'll need & set that (maybe plus 5-10% for wiggle room) & see if that solves the problem.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: is this an HP parameter?

Hi Rusty,

Do a 'man sysconf' and it will give you the defenitions. THREAD_THREADS_MAX and PTHREAD_THREADS_MAX are the same. The other parameter might be related to POSIX shell and the defenition says - The number of pthread data keys per process.

HTH,
Shiju
Life is a promise, fulfill it!
Rusty Sapper
Frequent Advisor

Re: is this an HP parameter?

They already know that max_thread_proc is set to 1024. I have written a script that keeps track of threads and the most threads any one process is using is around 124. I they know what max_thread_proc is set at, why would they want to know about PTHREAD_THREADS_MAX?


TIA

Rusty
MANOJ SRIVASTAVA
Honored Contributor

Re: is this an HP parameter?

Hi Rusty

Yes this is a HP kernel Parameter the value of PTHREAD_THREADS_MAX in limits.h defines the
maximum number of threads per process and must have
as a minimum value _POSIX_THREAD_THREADS_MAX. The definition
of PTHREAD_THREADS_MAX may be omitted from limits.h
on implementations where the corresponding value is
equal to or greater than the stated minimum, but is
indeterminate.


Manoj Srivastava
Jeff Schussele
Honored Contributor

Re: is this an HP parameter?

Not sure because PTHREAD_THREADS_MAX gets set to whatever the value of max_thread_proc is.....unless they think their app can redefine it......OR.......if another process has runaway essentially eating all system resources. Also note that a DOS (or DDOS) attack can make use of a high max_thread_proc & really hammer you.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!