Operating System - HP-UX
1845842 Members
3765 Online
110250 Solutions
New Discussion

Re: kernel configuration in command line

 
SOLVED
Go to solution
Hasell Blad
Advisor

kernel configuration in command line

Hello.

I am working on HP-UX 11.23 O/S Installed on
rx5670 Server.

I want to chane follows kernel parameters.

msgseg 8192 -> 16384
msgtql 1024 -> 2048
msgmap 1026 -> 2050

Please let me know command level.
Thanks in advance.
Hudson
11 REPLIES 11
Robert-Jan Goossens
Honored Contributor

Re: kernel configuration in command line

Hi,

You can use sam or take a look at this doc,

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072193594

Document description: Manual relink the kernel on 11.20 / 11.22.
Document id: KBRC00014038

Regards,
Robert-Jan
Michael Tully
Honored Contributor

Re: kernel configuration in command line

I don't have 11.23 but I am sure the procedures are the same. (If not I'll see red ...)

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

Then you can reboot your system
# shutdown -r -y 0
Anyone for a Mutiny ?
MarkSyder
Honored Contributor

Re: kernel configuration in command line

Have you tried sam? I always find that more user-friendly for something this critical.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Naveej.K.A
Honored Contributor

Re: kernel configuration in command line

# cd /stand/build

Create the kernel parameter system file from the running system.
# /usr/lbin/sysadm/system_prep -s system

Edit the configuration file to make necessary changes i.e. vi system and make changes

Build the New kernel
#/usr/sbin/mk_kernel -s system

Backup the old kernel
# cp /stand/system /stand/system.old
# cp /stand/vmunix /stand/vmunix.old

Install the new kernel
# cp /stand/build/system /stand
# cp /stand/build/vmunix_test /stand/vmunix

Shutdown the system
# shutdown -r 0

Best Wishes
Naveej
practice makes a man perfect!!!
Hasell Blad
Advisor

Re: kernel configuration in command line

In HP-UX 11.23,

there are two way(I know) kernel configuration,
web interface or command line using kctune command.

Hudson
Sanjay Kumar Suri
Honored Contributor

Re: kernel configuration in command line

Cookbook using SAM.

SAM --> Kernel Configuration --> Configurable Parameters
1. Each line in the "Configurable Parameters" object list has several fields: Name, Current Value, Pending Value, Type = Dynamic / Static (requires a kernel recompile and reboot), Associated Module (DKLM) and Description.
2. Actions --> Modify Configurable Parameters. Most parameters are defined as explicit values but some as refined by formulas based on other kernel parameters values.
3. If the parameter is dynamically tunable, the "Current State" value should change immediately. Other changes will take effect after the next kernel recompile and reboot.
4. SAM help menus include a tutorial that explains the purpose of many of the configurable kernel parameters.
5. Tuned Parameters Sets: Actions --> Apply Tuned Parameter Set.
6. Compiling the New Kernel: Action --> Process New Kernel.
7. SAM will make a backup of copy of your existing kernel and immediately move your new kernel into place for you by choosing "Move Kernel into Place and Shutdown/Reboot System Now" option.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Hasell Blad
Advisor

Re: kernel configuration in command line



It doesn't work in SAM.
Hudson
Hemanth Gurunath Basrur
Honored Contributor

Re: kernel configuration in command line

Hello,

You are right. You will have to use the kctune command to modify the kernel parameters. Refer to kctune manpage for more information.

You can also do the same using the kcweb tool. As the tunables you have mentioned are static tunables, you may have to reboot the system for applying your new changes to the kernel.

Hope this helps. Let me know if you need more information.

Regards,
Hemanth
Hasell Blad
Advisor

Re: kernel configuration in command line

Hello.

# kctune -h msgseg=16384
# kctune -h msgtql=2048
# kctune -h msgmap=2050
# shutdown -r -y 0

Is it right ?
Hudson
Hemanth Gurunath Basrur
Honored Contributor

Re: kernel configuration in command line

Hello Hassel,

# kctune -h msgseg=16384
# kctune -h msgtql=2048
# kctune -h msgmap=2050
# shutdown -r -y 0

Is it right?

Yes Sir, you are absolutely right.

If you want to inform other users that you are going to reboot the machine, use the wall command before the shutdown command. Refer wall manpage for more information.

You may also want to consider increasing the grace time from 0 to 10 if you want to notify users.

Regards,
Hemanth