1835114 Members
2434 Online
110076 Solutions
New Discussion

kernel values

 
Dario_4
Frequent Advisor

kernel values

Hello admins,
i wuold like to know if there is a way (more quickly than sam) to modify the values of some parameters in the kernel.

I have see the file /stand/system but i don't know if is possibile modify it with vi or something

Thanks in advance
9 REPLIES 9
Bill McNAMARA_1
Honored Contributor

Re: kernel values

kmtune

man and look at examples.

sysdef to see settings and limits.

Later,
Bill
It works for me (tm)
James R. Ferguson
Acclaimed Contributor

Re: kernel values

Hi:

Starting with 11.0 you can use 'kmsystem' and 'kmtune' to tune kernel parameters. See the man pages (1m) for more details. Other than using SAM the other method is to edit /stand/system directly. In a future release this this methodology will disappear.

Regards!

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: kernel values

correct me if I'm wrong JRF, but kmsystem only reports whether a kernel module is dynamic, static and registered.. kmadmin allows you to load it or unload it.

All parameters, at least supported ones, are modifable from kmtune.

It works for me (tm)
Wim Rombauts
Honored Contributor

Re: kernel values

The full procedure for a manual kernel reconfiguration is :

Edit /stand/system and set the correct value for the parameter you want to change in there.

Then, execute the following commands :
/usr/sbin/mk_kernel # This creates a new /stand/build/vmunix_test.
/usr/sbin/kmupdate # This will move the above vmunix_test to /stand/vmunix at the next restart of the system.

Now restart your system, preferably with sutdown, not with reboot. The new kernel will be moved into place during the restart procedure.
James R. Ferguson
Acclaimed Contributor

Re: kernel values

Hi Bill:

Yes, I meant to say "kmupdate", not "kmsystem".

...JRF...
Santosh Nair_1
Honored Contributor

Re: kernel values

Quick note, before doing the kmtune, I make it a habit to copy off /stand/system to /stand/system.prev so that I have a reference for the previous kernel settings. If I recall, kmupdate just moves the kernel into place but doesn't touch the system file.

-Santosh
Life is what's happening while you're busy making other plans
fg_1
Trusted Contributor

Re: kernel values

Fabrizio:

1) Save a copy of the following files: /stand/system to /stand/system.prev
/stand/vmunix to /stand/vmunix.prev
2) Perform a vi of /stand/system and enter in your parameter changes.
3) Then execute /usr/sbin/mk_kernel: this will create a new /stand/build/vmunix_test file.
4) Now perform the following:
/usr/sbin/kmupdate: This will move the above vmunix_test to /stand/vmunix at the next restart of the system.
5) Shutdown and reboot. The new kernel will be generated and the old one saved.
Roger Baptiste
Honored Contributor

Re: kernel values

<< (more quickly than sam) to modify the >>

I don't think, SAM is slow. Infact, it does everything for you and you are assured of not missing any step. A few seconds wait for the
SAM screen to pop up is worth it. You can use the SAM text menu to beat that wait time too.

If you are doing manually, do not forget the
kmupdate step!!

HTH
raj
Take it easy.