Operating System - HP-UX
1752530 Members
4708 Online
108788 Solutions
New Discussion юеВ

Re: Does a Thread count as a proc for nproc/maxuprc

 
SOLVED
Go to solution
likid0
Honored Contributor

Does a Thread count as a proc for nproc/maxuprc

Hi,

Just a silly question, I was wondering if process threads count as a process to the maxuprc limit?, I understand it desn't but just to confirm that's the case.

so let's say we have user peter, in a server with maxuprc=50 , he has 2 process runing with 30 thread each process, will he reach the limit?

Thnx
Windows?, no thanks
4 REPLIES 4
Deepankar Panda
Advisor

Re: Does a Thread count as a proc for nproc/maxuprc

I think.. no.. you can check with max_thread_proc for max no of threads per process which was already set. you can chose a value between 64 and nk thread.. default and recomended value is 256. so maxuprc is the no of concurrent processes that a user can run...
in your scenario peter wont reach the limit coz he has 48 processes still there to run.

thanks
Dennis Handly
Acclaimed Contributor
Solution

Re: Does a Thread count as a proc for nproc/maxuprc

As Deepankar said, these are separate tunables.
Though a kernel thread can use as much CPU or I/O resources as a process. Each thread has a separate stack but otherwise the memory resources are changed to the process.
Dennis Handly
Acclaimed Contributor

Re: Does a Thread count as a proc for nproc/maxuprc

Oops, typo:
... otherwise the memory resources are charged to the process.
likid0
Honored Contributor

Re: Does a Thread count as a proc for nproc/maxuprc

thnx, for the info
Windows?, no thanks