Operating System - HP-UX
1833679 Members
4180 Online
110062 Solutions
New Discussion

Re: How can I change kernel parameters without sam?

 
SOLVED
Go to solution
cbozlagan
Regular Advisor

How can I change kernel parameters without sam?

How can I change kernel parameters without sam?
thanks
11 REPLIES 11
BrianDoyle
Trusted Contributor

Re: How can I change kernel parameters without sam?

You want to modify kernel parameters by CL ?

Do man on kmtune
Oviwan
Honored Contributor

Re: How can I change kernel parameters without sam?

Hey

check manpage of kctune

e.g.
/usr/sbin/kctune -h -B maxuprc=3780


Regards
Ivan Krastev
Honored Contributor

Re: How can I change kernel parameters without sam?

Can you specify OS version and platform.

Here is doc about that - http://techsolutions.hp.com/en/5991-6480/ch10.html

regards,
ivan
cbozlagan
Regular Advisor

Re: How can I change kernel parameters without sam?

HP-UX 11.11
cbozlagan
Regular Advisor

Re: How can I change kernel parameters without sam?

HP-UX 11.11 PARISC
Steven E. Protter
Exalted Contributor

Re: How can I change kernel parameters without sam?

Shalom,

kmtune will let you do this from the command line.

Read this on putting changes requiring a compile into production.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105739

The man page for kmtune explains pretty nicely how to make command line changes.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: How can I change kernel parameters without sam?

With 11.11 - use kmtune - for 11.23 and 11.31 - kctune.

Eaxample:

kctune vps_ceiling=64

that will set vps_ceiling to 64.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
cbozlagan
Regular Advisor

Re: How can I change kernel parameters without sam?

I used commands below for HPUX 11.11, but I got errors.

kmtune -s maxswapchunks=16384
kmtune -s msgseg=32767
kmtune -s msgsz=32
kmtune -s msgmnb=65535
kmtune -s msgmni=4096
kmtune -s msgtql=4096
kmtune -s msgmap=4098
kmtune -s msgmax=65535
kmtune -s semaem=16384
kmtune -s semmnu=4092
kmtune -s semmns=8192
kmtune -s semmni=4096
kmtune -s semume=100
kmtune -s semvmx=32767
kmtune -s shmmax=17179869184
kmtune -s shmmni=512
kmtune -s shmseg=200
kmtune -s maxfiles=1024
kmtune -s maxfiles_lim=2048
kmtune -s nflocks=8192
kmtune -s nfile=63488
kmtune -s ninode=34816
kmtune -s maxdsiz=1073741824
kmtune -s maxdsiz_64bit=17179869184
kmtune -s maxssiz_64bit=1073741824
kmtune -s maxuprc=3687
kmtune -s max_thread_proc=250
kmtune -s nkthread=7200
kmtune -s nproc=4096
kmtune -s maxusers=128
kmtune -s dbc_min_pct=5
kmtune -s dbc_max_pct=8
kmtune -u

Error Messages
==============
kmtune: Cannot identify parameter name msgsz
WARNING: max_thread_proc cannot be set dynamically.
WARNING: maxdsiz cannot be set dynamically.
WARNING: maxdsiz_64bit cannot be set dynamically.
WARNING: maxfiles cannot be set dynamically.
WARNING: maxssiz_64bit cannot be set dynamically.
WARNING: maxswapchunks cannot be set dynamically.
WARNING: maxusers cannot be set dynamically.
WARNING: msgmap cannot be set dynamically.
WARNING: msgmni cannot be set dynamically.
WARNING: msgseg cannot be set dynamically.
WARNING: msgtql cannot be set dynamically.
WARNING: nfile cannot be set dynamically.
WARNING: nflocks cannot be set dynamically.
WARNING: ninode cannot be set dynamically.
WARNING: nkthread cannot be set dynamically.
WARNING: nproc cannot be set dynamically.
WARNING: semmni cannot be set dynamically.
WARNING: semmns cannot be set dynamically.
WARNING: semmnu cannot be set dynamically.
WARNING: semume cannot be set dynamically.
WARNING: semvmx cannot be set dynamically.
WARNING: shmmni cannot be set dynamically.
kmtune: Unable to change maxuprc. Out of range.
James R. Ferguson
Acclaimed Contributor

Re: How can I change kernel parameters without sam?

Hi:

You got errors and WARNINGS.

You misspelled 'msgssz' and you violated a 'maxuprc' range limit. The remainder of your problems are warnings that you are trying to change static kernel parameters. Specifying '-u' means to alter the running kernel without rebuilding it and rebooting.

Regards!

...JRF...
Geoff Wild
Honored Contributor
Solution

Re: How can I change kernel parameters without sam?

cd /stand/build
/usr/lbin/sysadm/system_prep -s system
vi system (make your changes and save the file)
mk_kernel -s system
kmupdate
cd /
reboot your system


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Marcel Burggraeve
Trusted Contributor

Re: How can I change kernel parameters without sam?

If you do it like Geoff explained, make sure you don't use the reboot command but do a shutdown -r.
If you don't, the newly created kernel won't be put in place for the next boot.