1825813 Members
2552 Online
109688 Solutions
New Discussion

computing kernel values

 
Jdamian
Respected Contributor

computing kernel values

I use kmtune to get the kernel parameters values from command line. But it reports the formulae instead of current numerical values for those parameters that are computed using a formulae.

Is there any other way to obtain those values.

P.D: I tried to use a single AWK program but it is more difficult than it seems because kmtune reports kernel parameters sorted by its name.
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: computing kernel values

You can get those by going into SAM, and then going to "Kernel Configuration" and then "Configurable Parameters". A list of all parameters and their current values will come up. You can also modify from here if need be.

I've always found it a bit easier to let sam modify the kernel and rebuild it for me.
Sridhar Bhaskarla
Honored Contributor

Re: computing kernel values

I hate to say this but "SAM" gives you the values. Sysdef may also help.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Paula J Frazer-Campbell
Honored Contributor

Re: computing kernel values

Hi

Cat /stand/system will show the kernel value that are changed from default.


Paula
If you can spell SysAdmin then you is one - anon
harry d brown jr
Honored Contributor

Re: computing kernel values

You could also do it via perl, and if you are interested, I'll give you an example.

live free or die
harry
Live Free or Die
T. M. Louah
Esteemed Contributor

Re: computing kernel values

o add to above, use tune.h to take looat how those kernel parms being used. For example, to know what other kernel parms use the MAXUSERS do:
root:> grep MAXUSER /stand/build/tune.h

#define MAXUSERS 32
#define NCLIST (100+16*MAXUSERS)
#define NFILE (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
#define NINODE ((NPROC+16+MAXUSERS)+32+(2*NPTY))
#define NPROC (20+8*MAXUSERS)

g'd luck
t++
Little learning is dangerous!
Jdamian
Respected Contributor

Re: computing kernel values

I noticed that I didn't explain my scenario: I must run a script in order to get system info.

I know SAM reports numerical values but I didn't mention because SAM cannot be used in a script excepting the right lbin program is executed.

Thanks to Sridhar Bhaskarla who gave me the right clue: the sysdef command
Magdi KAMAL
Respected Contributor

Re: computing kernel values

Hi Damien,

Try :

# sysdef

It will reports only values.

Magdi
Paula J Frazer-Campbell
Honored Contributor

Re: computing kernel values

Hi
Small script to interogate output from sysdef.
------------cut here-----------
#!/bin/sh
###########################
# Extract from sysdef output
/etc/sysdef >>/tmp/sysdef.out
cat /tmp/sysdef.out | awk '{print $1,$2}'
------------cut here-----------------
If you can spell SysAdmin then you is one - anon