1829904 Members
2087 Online
109993 Solutions
New Discussion

nproc

 
jamshed
Frequent Advisor

nproc

How can i see my nproc value ?
#kmtune -q nproc (it is not working)
kmtune: Cannot identify parameter name nproc
7 REPLIES 7
Joseph Loo
Honored Contributor

Re: nproc

hi,

try:

# sysdef|grep -i nproc
or
at SAM->Kernel Configuration->Configurable Parameters.

what does it say?

regards.
what you do not see does not mean you should not believe
jamshed
Frequent Advisor

Re: nproc

Thanks Joseph
# sysdef | grep -i nproc
nproc 4116 - 10- -
Why this parameter is not on my
SAM->Kernel Configuration->Configurable Parameters?
and if i want to set another value, how can i do that?
G. Vrijhoeven
Honored Contributor

Re: nproc

Hi,

What OS level are you using?
kmtune is 11.00 and up.
To alter a kernel parameter, i always use SAM. nproc must be out there...
If you can not find it nproc defaults to:
20+(8 * maxusers)
So if you increase maxusers nproc will go up.

for 10.20 you can use this link:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&con=/hpux/onlinedocs/B2355-90672/00/00/11-con.html&toc=/hpux/onlinedocs/B2355-90672/00/00/11-toc.html&searchterms=kernel&queryid=20040117-044601

Gideon

jamshed
Frequent Advisor

Re: nproc

Thanks Gedeon!
My OS level is 11.00
as you see (nproc, maxusers, semaphores) is not between other parameters that why i can't change my kernel parameters especially
tunable parameters.
What i have to do?
#kmtune
Parameter Value
=================================
NSTRBLKSCHED 2
NSTREVENT 50
NSTRPUSH 16
NSTRSCHED 0
STRCTLSZ 1024
STRMSGSZ 65535
disksort_seconds 0
dnlc_hash_locks 512
fcp_large_config 0
hdlpreg_hash_locks 128
hfs_max_ra_blocks 8
hfs_ra_per_disk 64
initmodmax 50
km_disable 0
max_fcp_reqs 512
max_mem_window 0
modstrmax 500
nni 2
num_tachyon_adapters 5
scsi_max_qdepth 8
scsi_maxphys 1048576
semmsl_override 2048
st_ats_enabled 1
st_fail_overruns 0
st_large_recs 0
vx_maxlink 32767
vx_ncsize 1024
vx_ninode 0
vx_noifree 0
vxfs_max_ra_kbytes 1024
vxfs_ra_per_disk 1024
G. Vrijhoeven
Honored Contributor

Re: nproc

Hi again,

Stange:

so
# kmtune -l -q nproc
does not return a thing?

And if you:

#echo nproc/D | adb /stand/vmunix /dev/kmem

Do you have a /stand/system?

Gideon

T. M. Louah
Esteemed Contributor

Re: nproc

simply run :
# sar -v 5 5
it will report "current_value/kernel_parm_value" under each column:
proc-sz indo-sz file-sz
nproc ninod nfile

for example maxusers kern parm. is used in the formulae of each of the above values :

# grep -i maxuser /stand/build/tune.h
doubling maxusers value will have an impact on allof them.

cheers
Little learning is dangerous!
Bill Hassell
Honored Contributor

Re: nproc

This sounds like a more serious problem, namely /stand has some problems. vmunix is the 'normal' kernel file and programs like kmtune and ipcs use this file to match kernel values into RAM. If /stand is not mounted, kmtune will fail. There may be some basic kernel problems so I would start by making a new kernel (man mk_kernel) to see if there are errors. Correct the errors and then see if kmtune runs correctly. Missing kernel tuning parameters is not normal and indicates a serious problem.


Bill Hassell, sysadmin