Operating System - HP-UX
1836772 Members
2495 Online
110109 Solutions
New Discussion

Re: maxuprc comes back to default state after reboot

 
totoperdu
Frequent Advisor

maxuprc comes back to default state after reboot

Hello,

on an hpux 11.00 maxuprc have a default value of 75, if i set
# kmtune -s maxuprc=800

all seems fine:
# kmtune -q maxuprc -l
Parameter: maxuprc
Value: 800
Default: 75
Minimum: -
Module: -

but when i reboot the system, maxuprc comes back to the defautl value: 75.
what can i do ?

for information i am under the nproc value:
nproc: (20+8*MAXUSERS) = 1052

thanks for your help.
8 REPLIES 8
erics_1
Honored Contributor

Re: maxuprc comes back to default state after reboot

Patch PHCO_27672 addresses this issue. This is the Software Distributor (SD) Cumulative Patch. Check and see that you have at least that revision of the patch or higher...

swlist -l product|grep Software

Regards,
Eric
James R. Ferguson
Acclaimed Contributor

Re: maxuprc comes back to default state after reboot

Hi:

At 11.0, 'kmtune' only modifies the files used to build a kernel. You need to perform the actual build yourself afterwards and reboot.

I would suggest that it is simplier to make your changes with SAM and reboot then.

Regards!

...JRF...
Darrel Louis
Honored Contributor

Re: maxuprc comes back to default state after reboot

Hi,

When performing kmtune -s maxuprc=800, does it modify your system file?

kmtune -q maxuprc -l
Parameter: maxuprc
Current: 4090
Planned: 4090
Default: 75
Minimum: -
Module: -
Version: -
Dynamic: Yes
[root]# ll /stand/system
-r--r--r-- 1 root sys 1648 May 3 15:26 /stand/system
[root]# kmtune -s maxuprc=4096
[root]# ll /stand/system
-rw-r--r-- 1 root sys 1653 Jun 20 17:18 /stand/system
[root]# grep maxuprc /stand/system
maxuprc 4096

James can you explain the following below:
A dynamic tunable is one whose value can be changed without a reboot.

With the DLKM feature, it will no longer be necessary to relink the entire kernel and reboot the system in order to include a loadable module. The kernel configuration extension will allow loadable modules to be built individually and dynamically as required. This will reduce the number of kernel rebuilds and system downtime, thereby enhancing the overall performance of kernel configuration.

Darrel
totoperdu
Frequent Advisor

Re: maxuprc comes back to default state after reboot

thanks for these informations but i am in doubt.
on an other hpux 11.00 server PHCO_27672 is not installed nor supersedes of this patch.
and yes, /stand/system is well updated when i use kmtune.

i have seached through docs.hp.com for kernel configuration and tunable parameters but found nothing.

is someone have a documentation of it ?

thanks.

--
Cedrick Gaillard
totoperdu
Frequent Advisor

Re: maxuprc comes back to default state after reboot

i've more information:
when i reboot the system, the maxuprc value is still good in /stand/system.
it appears than this file is not parsed at boot unlike my other hpux server.

i have not found any script at startup for parsing this configuration file.

any ideas?
Darrel Louis
Honored Contributor

Re: maxuprc comes back to default state after reboot

Hi,

If that's the case then you should rebuild the kernel as James mentioned.
So the parameter is only valid until next reboot.

Darrel
totoperdu
Frequent Advisor

Re: maxuprc comes back to default state after reboot

your heal is greatly appreciated but could you explain me why on one server this parameter is dynamic and no on another ?

i know than if i rebuild the kernel all will be fine (i've already tested it) but i don't want to rebuild the kernel each time i want to modify this setting.

i am going to continue my investigations.

--
Best regards,
Cedrick Gaillard
totoperdu
Frequent Advisor

Re: maxuprc comes back to default state after reboot

sorry for my last message, it's not "your heal is greatly appreciated" but "your help is greatly appreciated".

;-)