1837835 Members
2445 Online
110121 Solutions
New Discussion

kmtune

 
Fab_1
Occasional Advisor

kmtune

Hello admins,
is possible to put in a script all parameters of kernel and lunch it as script? (For fast change). Example:

kmtune NSTRBLKSC 2
kmtune NSTREVENT 50
kmtune NSTRPUSH 16
kmtune NSTRSCHED 0
kmtune STRCTLSZ 1024
kmtune STRMSGSZ 0
kmtune acctresume 4


Is it works?

Thanks
6 REPLIES 6
Jeff Machols
Esteemed Contributor

Re: kmtune

Anything you can do on the command line can be done in a script
Sanjay_6
Honored Contributor

Re: kmtune

Hi,

I think it should work. You may have to rebuild the kernal to make the new changes effective.

Regds
Sridhar Bhaskarla
Honored Contributor

Re: kmtune

Hi,

Yes. You can. Make sure you have -s following kmtune to set the values.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: kmtune

Hi,

It should be possible..
Here is the sample kernel configuration commands.

/usr/lbin/sysadm/system_prep -v -s system

kmtune -S /stand/build/system -s parm_name=value
or
kmtune -S /stand/build/system -s parm_name+value

kmsystem -S system -c y driver_name # these utilities modify the system
file at 11.0

/usr/sbin/mk_kernel -s ./system

mv /stand/system /stand/system.prev #new for dynamically
linked modules at 11.0

mv /stand/build/system /stand/system
kmupdate # kmupdate automates moving
the kernel files into the
proper directory

Reboot the box.
Good Luck..
Marcin Wicinski
Trusted Contributor

Re: kmtune

Hi, it will work.
Marcin Wicinski
Fab_1
Occasional Advisor

Re: kmtune

Hi
if i understand the right and fast way is: (correct me if i wrong)

/usr/lbin/sysadm/system_prep -v -s system

lunch the script where into there are:
...
kmtune -s scsi_maxphys=1048576
kmtune -s sema=1
kmtune -s semaem=16384
kmtune -s semmap=5112
kmtune -s semmni=5120
kmtune -s semmns=(SEMMNI*2)
kmtune -s semmnu=(NPROC-4)
kmtune -s semume=10
kmtune -s semvmx=32768
kmtune -s sendfile_max=0
kmtune -s shmem=1
...

/usr/sbin/mk_kernel -s ./system
mv /stand/system /stand/system.prev
mv /stand/build/system /stand/system
kmupdate

Thanks