Operating System - HP-UX
1834133 Members
2280 Online
110064 Solutions
New Discussion

sam limits on kernel parameters

 
SOLVED
Go to solution
Lai Nee Shyang_1
Frequent Advisor

sam limits on kernel parameters

Hi There,

Anyone knows where does SAM keeps its config file for kernel compliation. My Sam keeps telling me that I've exceeded the maxfile and maxfile_lim for my systems' kernel. I remember there is a file somewhere that defines all the tunable kernel parameters.

Thanks


Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.
9 REPLIES 9
Steven Sim Kok Leong
Honored Contributor

Re: sam limits on kernel parameters

Hi,

Mind showing us your kmtune command output ie.

# kmtune

This would show us the value you set for the kernel parameter in your currently running kernel.

What value are you trying to change it to?

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Frederic Sevestre
Honored Contributor

Re: sam limits on kernel parameters

Hi,
If you want to generate a text file based on the current kernel :
# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
The generated file "system" contains all informations about kernel.
Take careful of the extistant "system" file which may not refect the current kernel.
Fr??d??ric

Crime doesn't pay...does that mean that my job is a crime ?
Marcin Wicinski
Trusted Contributor
Solution

Re: sam limits on kernel parameters

Hi,
As far as I know maxfile_lim is dynamic tunable and SAM insist on using kmtune -s -u command. You can use command:
# kmtune -s maxfiles_lim=2048
and then kompile a new kernel.
Marcin Wicinski
Lai Nee Shyang_1
Frequent Advisor

Re: sam limits on kernel parameters

Hi .

I was changing the value for nfile. But strange thing is that, when I triggered SAM-> kernel config, it tells me that the maxfile and maxfile_lim has exceeded the limit, and it automatically changes it from 3000 to 2048 and 5000 to 2048 for maxfile and maxfile_lim respectively.
The nfile limit was ok.

I'm aware that I can do this via changing the systems file in /stand, but just to be in sync with the rest of the adminitrator (I'm not the only administrator), we have choose to use sam to do this instead.

Thanks.

Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.
Bill McNAMARA_1
Honored Contributor

Re: sam limits on kernel parameters

# sysdef

should tell you what you need.

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

Re: sam limits on kernel parameters

Hi Lai:

Have a look in '/usr/conf/master.d/core-hpux'. This is one of the master files used by 'config' to build a kernel.

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: sam limits on kernel parameters

Hi Lai,

Use "kmtune -l" to get the kernel parameter list and also the max and min value for all parameters. Redirect the output to a file to get a text output.

kmtune -l > /tmp/ker_para_list

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: sam limits on kernel parameters

Hi Lai,

Here is a procedure for the way on how you can increase the kernel parameter values for maxfile and maxfile_lim beyond the suggested value using sam,

http://us-support.external.hp.com/cki/bin/doc.pl/sid=bbfb456e0453b9553b/screen=ckiDisplayDocument?docId=200000055459688

Hope this helps.

Regds
Lai Nee Shyang_1
Frequent Advisor

Re: sam limits on kernel parameters

Hi there

Thanks to all , u guys are great!


Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.