02-03-2008 09:50 PM
I would like to tune these km values for nflocks, msgmnb, msgmax,shmmax,shmmni in HP-UX 11.23i itanium 64bits.
do i need to reboot the server after change it? which is the safest way to change kernel values? hope to hear from you. many thanks in advance
Solved! Go to Solution.
02-03-2008 10:31 PM
It all depends on whether the tunable
parameter is dynamic or not. In other words,
you need to check if a change can happen without a reboot.
Let's pick up one of your tunables:
# kctune -v shmmax
The system shows:
Description Maximum size of a shared memory segment (bytes)
Current Value 1073741824 [Default]
Value at Next Boot 1073741824 [Default]
Value at Last Boot 1073741824
Default Value 1073741824
Constraints shmmax >=3D 2048
shmmax <=3D 4398046511104
Can Change Immediately or at Next Boot
Look for "Can Change" row. Therefore,
shmmax can be changed without the reboot.
To change, you can use SAM or SMH interface,
or command-line (I prefer it):
# kctune shmmax=...
As an exercise, it is left for you
to chech the other tunables.
02-03-2008 10:38 PM
how about this? Automatic Tuning Enabled, does it require reboot?
lily:/>kctune -v nflocks
Description Maximum number of file locks
Current Value 4096 [Default]
Value at Next Boot Default (automatic)
Value at Last Boot 4096
Default Value 4096 (automatic)
Constraints nflocks >= 50
nflocks <= 16777216
Can Change Automatic Tuning Enabled
02-03-2008 11:19 PM
# kctune -v nflocks
Just look at the man page:
This tunable is dynamic
02-03-2008 11:31 PM
nflocks tunable is dynamic (tuning will take
effect immediately on the running system).
When the value of nflocks is dynamically tuned
it cannot be set to a value lower than the
current number of file locks in the running