Operating System - HP-UX
1834711 Members
2564 Online
110069 Solutions
New Discussion

which kernel parameter should be modified?

 
leyearn
Regular Advisor

which kernel parameter should be modified?

max number process exceed 500!
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: which kernel parameter should be modified?

Hi:

The 'maxuproc' parameter controls the maxiumum number of processes per user.

On a system-wide basis, 'nproc' sets the upper ceiling for the number of processes on a system.

You can learn more here:

http://www.docs.hp.com/en/TKP-90202/index.html

Regards!

...JRF...
Raj D.
Honored Contributor

Re: which kernel parameter should be modified?

Hi Leyearn,

Its maxuprc , that controls Maximum process per user. Also check for nproc parameter. It depends on maxuprc. Hope above posting of JRF is a typo.


To see current value of maxuprc :
# kmtune -q maxuprc

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: which kernel parameter should be modified?

Hi Leyearn ,

Check this two parameters :

maxuprc and nproc , and increase them accordingly :

----------
maxuprc : maximum number of process that any single user can have running at the same time.

nproc: Defines the maximum number of process that can be running simultaneously on the entire system.
---------------

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
RAC_1
Honored Contributor

Re: which kernel parameter should be modified?

It could be maxuprc (max no. of user processes) OR nproc (system wide max. no. of processes)

Real time data can be gathered as follows.
For user - ps -u "user_name" | wc -l
Do that for every user and check maxuprc setting.

For nproc, real time data can be gathered as follows.

glance -t
sar -v 1 6
There is no substitute to HARDWORK
Yogeeraj_1
Honored Contributor

Re: which kernel parameter should be modified?

hi,

before you make your change, note that you can also dynamically monitor your kernel parameter values for:
Proc Table (nproc)
File Table (nfile)
Shared Mem Table (shmmn
Message Table (msgmni)
Semaphore Table (semmni
File Locks (nflocks)
Pseudo Terminals (npty)
Buffer Headers (nbuf)

using glance in SYSTEM TABLES REPORT

Note that this parameter change will also affect other parameters which are dependent on it. Please check in SAM.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Muthukumar_5
Honored Contributor

Re: which kernel parameter should be modified?

Tune nproc and maxuprc parameters.

# kmtune -q nproc -l
# kmtune -q maxuprc -l

will give details. Tune then kmtune or sam.

--
Muthu
Easy to suggest when don't know about the problem!
Sivakumar TS
Honored Contributor

Re: which kernel parameter should be modified?



Hi,

once you decide the required value,

run

#kmtune -s =

and reboot the server to apply the changes.

Regards,

Siva.
Nothing is Impossible !
Patrice Le Guyader
Respected Contributor

Re: which kernel parameter should be modified?

Hello,

For updating maxuprc you don't have to reboot it's dynamic if you're in 11i, you just have to do this :

kmtune -s maxuprc=
kmtune -u (To update kernel)
kmtune -q maxuprc (To control)

If you don't do kmtune -u it stays at planned state.
What I use to do is to have the parameter nproc 2 or 3 times maxuprc, because if you have an application which lost head the others are still happy. I hope it's a good practice. :-)

Regards
Pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.