Operating System - HP-UX
1832973 Members
2426 Online
110048 Solutions
New Discussion

Steps for building kernel after modifying them in hp-ux 11.23i64

 
SOLVED
Go to solution
Srikanth Arunachalam
Trusted Contributor

Steps for building kernel after modifying them in hp-ux 11.23i64

Hi,

I need to modify the kernel parameter. I do the following in PA-RISC syste of hp-ux.
step1: cd /stand/build
step2: /usr/lbin/sysadm/system_prep -s system
step3:kmtune -S /stand/build/system -s maxusers=30

step4:mk_kernel -s ./system

step5:cp /stand/system /stand/system.old

step6:cp /stand/vmunix /stand/vmunix.old

step7:cd /stand/build

step8:kmupdate

step9:cp /stand/build/system /stand/system
step10:cp /stand/build/v /stand/v

Unfortunately, the kmtune -S /stand/build/system -s maxusers=30 doesnt work in itanium box.

At this step, what should be the equivalent in itanium.

Please help me on this.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

Hi:

The 'maxusers' tunable is obsolete in 11.23 and should (can) not be used:

http://docs.hp.com/en/B2355-60105/maxusers.5.html

Regards!

...JRF...
Srikanth Arunachalam
Trusted Contributor

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

Hi James,

Actually i want to change some other parameter..like vps_ceiling. I want the equivalent of kmtune -S /stand/build/system -s vps_ceiling=64 in itanium.

As, -S is obsolate in itanium, what should be equivalent step for step3 in itanium.

Thanks,
Srikanth
James R. Ferguson
Acclaimed Contributor

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

Hi (again):

Have a look at chapter-3 of "Managing Systems and Workgroups":

http://docs.hp.com/en/B2355-90950/ch03s11.html

Regards!

...JRF...
Srikanth Arunachalam
Trusted Contributor

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

Hi,

I am not sure about the required changes as specified in the hp documentation. It gives me a error if i perform kctune -s vps_ceiling=64 -c /stand/build/system.

Is it sufficient that I perform the following alone to change the kernel parameters in itanium hp-ux boxes.

cd /stand
cp system system_smprev
cp vmunix vmunix_smprev

kctune -s vps_ceiling=64
kctune -s shmmni=512
kctune -s semmnu=4092
kctune -s semmns=8192
kctune -s semmni=4096
kctune -u -s semmap=4098
kctune -s ninode=34816
kctune -s ncsize=34816
kctune -s msgtql=4096
kctune -s msgseg=32767
kctune -s msgmni=4096
kctune -s msgmap=4098
kctune -s max_thread_proc=1024
kctune -s maxuprc=3687
kctune -s ncsize=35840
kctune -s maxssiz=134217728
kctune -s maxssiz_64bit=1073741824
kctune -s -u maxswapchunks=16384

shutdown -ry now
Don Morris_1
Honored Contributor
Solution

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

No, do *not* just copy the vmunix and system file by hand, use kconfig to back up your current configuration (though it will do this when you reboot anyway to "backup", it is always nice to have a manual "GOOD" or somesuch backup).

So: kconfig -s GOOD
kctune as appropriate...
shutdown -ry now
Don Morris_1
Honored Contributor

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

Oh... and on the subject of your tunables, maxswapchunks is obsolete.

I think maxssiz_64bit is rather over generous (unless you're running Fortran or Java, few programs should need or use a 1Gb stack!), but that's your business.
Srikanth Arunachalam
Trusted Contributor

Re: Steps for building kernel after modifying them in hp-ux 11.23i64

Hi,

Thanks a lot everybody. I will do as specified.

Thanks,
Srikanth