showing kernel parameters on running sys?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > showing kernel parameters on running sys?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    showing kernel parameters on running sys?  
Dave Hinz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-08-06 12:23 AM

I've got a Solaris 9 system, with a very messy /etc/system file.
Several lines of entries for the same variable, with different numbers,
that sort of thing.

I want to clean it up, but I don't know which of the values it's using.
How do I ask the system what it is using at this time?  Example

set msgsys:msginfo_msgmnb=2097152
set msgsys:msginfo_msgmnb=65535

Will it take the first one?  The last one?  The bigger one?  I dunno, I
just want to ask the running sysstem what the value is for
msgsys:msginfo_msgmnb - been googling and reading one of Cockroft's
books for about a half hour now and I'm just seeing things like
"see the /etc/system files for your settings", which doesn't help in
this case.

What am I overlooking please?

Thanks,
Dave Hinz






[ Post a follow-up to this message ]



    Re: showing kernel parameters on running sys?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-08-06 12:23 AM

Dave Hinz <DaveHinz@spamcop.net> wrote:
> I've got a Solaris 9 system, with a very messy /etc/system file.
> Several lines of entries for the same variable, with different numbers,
> that sort of thing.

> I want to clean it up, but I don't know which of the values it's using.
> How do I ask the system what it is using at this time?  Example

> set msgsys:msginfo_msgmnb=2097152
> set msgsys:msginfo_msgmnb=65535

> Will it take the first one?  The last one?  The bigger one?  I dunno, I
> just want to ask the running sysstem what the value is for
> msgsys:msginfo_msgmnb - been googling and reading one of Cockroft's
> books for about a half hour now and I'm just seeing things like
> "see the /etc/system files for your settings", which doesn't help in
> this case.

> What am I overlooking please?

> Thanks,
> Dave Hinz

Found this more complete info online:

Solaris Kernel Tuning
sysdef -i reports on several system resource limits.
Other parameters can be checked on a running system using adb -k :
adb -k /dev/ksyms /dev/mem
parameter-name/D
^D (to exit)


T.K





[ Post a follow-up to this message ]



    Re: showing kernel parameters on running sys?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-08-06 12:23 AM

Dave Hinz <DaveHinz@spamcop.net> wrote:
> I've got a Solaris 9 system, with a very messy /etc/system file.
> Several lines of entries for the same variable, with different numbers,
> that sort of thing.

> I want to clean it up, but I don't know which of the values it's using.
> How do I ask the system what it is using at this time?  Example

> set msgsys:msginfo_msgmnb=2097152
> set msgsys:msginfo_msgmnb=65535

> Will it take the first one?  The last one?  The bigger one?  I dunno, I
> just want to ask the running sysstem what the value is for
> msgsys:msginfo_msgmnb - been googling and reading one of Cockroft's
> books for about a half hour now and I'm just seeing things like
> "see the /etc/system files for your settings", which doesn't help in
> this case.

> What am I overlooking please?

> Thanks,
> Dave Hinz


What do sysdef show ?






[ Post a follow-up to this message ]



    Re: showing kernel parameters on running sys?  
Dave Hinz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-08-06 12:23 AM

On Wed, 07 Jun 2006 21:13:44 GMT, <unknown@display.homeunix.org> <unknown@display.homeunix.o
rg> wrote:
> Dave Hinz <DaveHinz@spamcop.net> wrote:
> 
[vbcol=seagreen]
> What do sysdef show ?

Just figured it out with your help and a bit more googling.  Here's the
deal - sysdef does output those parameters, but in UPPER CASE.  So grep
-i is your friend here.  Found one instance where a parameter had 3
entries in the file, with the last one being different.  That last value
is what sysdef shows the system is using.  Checked again found another
parameter with two different numbers, that one also used the later
value.  So I think I'm comfortable with how that file gets parsed.
Cleaned up the rest of the duplicates using a sorted list to find them,
and as soon as I reboot I'll know where I screwed up ;)

Thanks for the help.  I try to followup with answers because there's
nothing more annoying than a null response, or a "nevermind, I figured
it out" without any kind of a hint as to what it was.

Dave "OK, well, there are things more annoying, but you know what I
mean" Hinz







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:58 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register