kernel param listings


 
Thread Tools Search this Thread
Operating Systems HP-UX kernel param listings
# 1  
Old 01-29-2008
kernel param listings

Which shows the current kernel settings accurately? kmtune or sysdef. I ask because although some params show the same setting with both, some do not.
Example

>kmtune | grep nfile
nfile 75008 - (15*NPROC+2048)
>sysdef | grep nfile
nfile 75018 - 14- -

which is the real number and why the differences?

Thanks
# 2  
Old 01-29-2008
What OS are you running?

As for hpux 11.11 nfile kernel parameter is static and should show same value using kmtune or sysdef, look in /stand if system and vmunix have same timestamp.
This may not be true with release of OS where nfile can be set dynamicaly
# 3  
Old 01-29-2008
hpux 11.11, I checked on 4 different boxes and vmunix and system do not have the same timestamp on any of them. nfile is differentt on all of them also.
So sysdef and kmtune "should" return the same values correct?

what about why sysdef does not return values for some params whil kmtune does?

>kmtune | grep shmmax
shmmax 0x200000000
sysdef | grep shmmax
returns nothing
# 4  
Old 01-30-2008
>So sysdef and kmtune "should" return the same values correct?
No because the timestamps ARE different:
kmtune requires /stand/system to be present so it uses it, if the timestamp is different with /stand/vmunix you could have a missmatch : someone updated the kernel but hasnt updated the system file, or someone has edited and updated /stand/system and hasnt rebuilt the kernel...

sysdef reads the values from the current kernel.

>what about why sysdef does not return values for some params whil kmtune does? sysdef | grep shmmax returns nothing
Ah well thats one of many params sysdef will not show...

Now 'sysdef' is deprecated, and kmtune is the correct tool to use with 11.11
and post 11.23 you should be using kcweb as in future sysdef should be removed...
# 5  
Old 01-30-2008
You cannot create a kernel and a system file simultaneously so the timestamps are destined to be different. But which is newer? That is the question. The tools to create kernels vary fast with HP-UX, but with 11.11, here are some comments...

A copy of the system file used to create the kernel has been stored inside the kernel itself. To build a new kernel via the command line, HP suggests as a first step...
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
This will suck the system file out of the kernel and deposit it /stand/build. The next step is to fiddle with some parameters with kmtune with -S /stand/build/system to use this particular system file. As you do, the system file changes and kmtune reports the changed value as "planned". It will become the real value if you proceed.

Unfortunately, HP then suggests you build the kernel via some steps that do not update /stand/system. Not a super big deal, since a new system file will be obtained to rebuild a kernel, but it leaves kmtune without a -S parameter a little bit in the dark. This is why I copy or move /stand/build/system to /stand/system as my last step in a kernel rebuild from the command line on 11.11. On the other hand, building a kernel via sam does update /stand/system correctly.

So this is why the confusion exists. Is your system file old and obsolete, or does it reflect your intentions for a change? Only you can say...
# 6  
Old 01-30-2008
Thanks for correcting me!
I realise that things can be so obvious for us (like same timestamps was to be understood within a reasonable time shift due to the edition, the build of new kernel and reboot...) that when it comes to explain, we generate even more confusion... it is true that when I look these files I have only the date displaying since we do not reboot often...

All the best
# 7  
Old 01-30-2008
Thanks for the inffo fellas, good stuff.

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sqlplus script out param

For starters, I have read the forums from top to bottom and cannot find a solution to this particular scenario. Just finished up two hours or scouring the archives. Here is my question which has been asked numerous times before but never fully explained for this particular solution: How do I pass a... (2 Replies)
Discussion started by: jwil0m0
2 Replies

2. Shell Programming and Scripting

param with awk

Hi All, I have this script: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}' I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3. Please help! ... (3 Replies)
Discussion started by: itik
3 Replies

3. UNIX for Advanced & Expert Users

param with awk

Hi All, I have this script: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}' I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3. Please help! ... (1 Reply)
Discussion started by: itik
1 Replies

4. Shell Programming and Scripting

displaying 3 directory listings in 3 separate columns.

i having problems figuring out how to 'read' in 3 different directory listings and then display them on the screen into 3 separate columns. i thought i could use a 'for' loop to grab each directory and then assign a unique variable to each line 'read' in. of course, as you experts all know,... (16 Replies)
Discussion started by: mjays
16 Replies

5. Programming

Fingerlines in GCC Listings

I recently moved from an AIX to a Linux environment, currently using GCC. I've searched the manpages, to no avail on this one. Q: Does gcc have an option to include finger lines in the listing? In other words, the equivalent compile option for AIX's -qsource and -qsrcmsg? If you don't know... (1 Reply)
Discussion started by: marcus121
1 Replies

6. Solaris

listings file of a package

Hi, Is there a command to list all files within an installed package ? A command to print out a file's package owner ? I have trouble to install a temporary license for FTAM and OSI 9.0 on my sunfire280r and i suspect the licensing software is the reason... Any SUN guru out there ? Thanks (4 Replies)
Discussion started by: andryk
4 Replies

7. Shell Programming and Scripting

file listings by date

Hi all, First post, be gentle ;) OK I'm trying to list all files in a directory that are between x days and y days old, where I need to treat days as being from 00:00 to 23:59. i.e. a list of all files between 1 day and 8 days old would include all files between 00:00 8 days ago and 23:59 1... (1 Reply)
Discussion started by: Boothy
1 Replies

8. Programming

Listings of the games for Linux

Hello! I need tne listings of the very simple games(like mad builders or snake) in text mode, when is running only bash. If you got one, please send me on e-mail or post it just in this thread. I also need the following programms, if you have one of them or can quickly write it, please help me: 1)... (4 Replies)
Discussion started by: Studenttt
4 Replies

9. Programming

sites with the listings

Is anybody know sites with the listings of simple programs for Linux (in text mode) (0 Replies)
Discussion started by: Studenttt
0 Replies
Login or Register to Ask a Question