<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting current utilization value of tunable kernel parameters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708222#M250697</link>
    <description>Don,&lt;BR /&gt;GREAT! It works (needed to tweek code since we must have a gnu C compiler rather than an ANSI compiler).&lt;BR /&gt;&lt;BR /&gt;Our Progress DBA wanted to know high water usage values for the following kernel parameters in addition to those reported in glance/MW:&lt;BR /&gt;shmseg, shmmax, semmsl, semmns, semmnu, msgmap, msgmax, msgmnb, msgmni, msgseg, msgssz, msgtql.&lt;BR /&gt;&lt;BR /&gt;Thanks - Tom</description>
    <pubDate>Fri, 13 Jan 2006 11:46:26 GMT</pubDate>
    <dc:creator>Tom Krocak_1</dc:creator>
    <dc:date>2006-01-13T11:46:26Z</dc:date>
    <item>
      <title>Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708211#M250686</link>
      <description>I would like to be able to find out high water values for a number of kernel parameters NOT included in glance/gpm.  There must be a counter that is kept in HPUX for parameters that have max values and that is the counter that I need to query to monitor how close to the maximum the current usage is.  Does anyone know how to do this, hopefully usable in a script or other programmatic way?</description>
      <pubDate>Thu, 12 Jan 2006 14:56:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708211#M250686</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-01-12T14:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708212#M250687</link>
      <description>Is it kmtune -l what you are looking for?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tunable             vxfs_bc_bufhwm&lt;BR /&gt;Description         VxFS metadata buffer cache high water mark&lt;BR /&gt;Module              vxfs&lt;BR /&gt;Current Value       0 [Default]&lt;BR /&gt;Value at Next Boot  0 [Default]&lt;BR /&gt;Value at Last Boot  0&lt;BR /&gt;Default Value       0&lt;BR /&gt;Constraints         vxfs_bc_bufhwm == 0 or vxfs_bc_bufhwm &amp;gt;= 6144&lt;BR /&gt;Can Change          At Next Boot Only&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2006 15:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708212#M250687</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-01-12T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708213#M250688</link>
      <description>Which version of hpux?&lt;BR /&gt;&lt;BR /&gt;11.23 you can use kcusage to see the current values and probably could parse out the information you want.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2006 15:24:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708213#M250688</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2006-01-12T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708214#M250689</link>
      <description>No, kmtune only returns the current value of the parameter (i.e. max value) not the current utilization of the parameter.  For example, for "nfile", we have a parameter value of 70732.  Glance and MeasureWare report the current utilization towards this max value.  For the nfile, we see utilization of 51682 (for example), well below the max kernel parameter, so we know we are OK for now.  We have also looked at "sysdef" and "tuneinfo", but these provide similar information as kmtune and not the utilization values at the time of measurement.</description>
      <pubDate>Thu, 12 Jan 2006 15:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708214#M250689</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-01-12T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708215#M250690</link>
      <description>We are on version HPUX 11.11.  I couldn't find a "kcusage" on our system.</description>
      <pubDate>Thu, 12 Jan 2006 15:28:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708215#M250690</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-01-12T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708216#M250691</link>
      <description>sar -v will report the number of files in use but to do this on a tunable by tunable basis is a far from trivial exercise --- and is not even meaningful of possible with a number of tunables. Probably your least evil approach is running Glance in -advisor_only mode looking for a number of parameters.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2006 15:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708216#M250691</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-12T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708217#M250692</link>
      <description>Tom,&lt;BR /&gt;&lt;BR /&gt;  you can use adb to get some of this information&lt;BR /&gt;&lt;BR /&gt;  # adb64 -k /stand/vmunix /dev/kmem&lt;BR /&gt;  $&amp;gt; /tmp/something&lt;BR /&gt;  $e&lt;BR /&gt;  $q&lt;BR /&gt;  #&lt;BR /&gt;  &lt;BR /&gt;  # grep nfile /tmp/something&lt;BR /&gt;&lt;BR /&gt;- Sundar</description>
      <pubDate>Thu, 12 Jan 2006 15:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708217#M250692</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2006-01-12T15:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708218#M250693</link>
      <description>Sundar,&lt;BR /&gt;I tried the "adb64" command as you gave it and searched the output file. For nfile and nflocks, the values given were the same as the max parameter (in hex), not the current usage value.  This file doesn't appear to have actual usage towards the max values.&lt;BR /&gt;------------&lt;BR /&gt;Clay,&lt;BR /&gt;I would need a quick primer on how to use glance in "advisor_only" mode, but doesn't this just report on actual metrics recorded by measureware?  The only related metrics in MW are those beginning with "TBL_" and there are only 8 of these for HPUX, the same ones reported by "glance -t".</description>
      <pubDate>Thu, 12 Jan 2006 16:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708218#M250693</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-01-12T16:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708219#M250694</link>
      <description>It's going to vary widely by what tunable you're talking about and unless you use supported APIs [not adb to guess kernel variables] it can change with patches.&lt;BR /&gt;&lt;BR /&gt;For nfile, you want pstat_getdynamic(). psd_activefiles is the field within there which is the current number of active file table entries (which is what nfile bounds). Similarly, nproc's usage is reflected in psd_activeprocs, etc.</description>
      <pubDate>Thu, 12 Jan 2006 17:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708219#M250694</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2006-01-12T17:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708220#M250695</link>
      <description>Don, &lt;BR /&gt;I checked the adb log file and there were no such variables (xxx.psd_activefiles, etc) in there.  We don't have any of the special API's installed, so perhaps we are barking up the wrong tree using this approach.</description>
      <pubDate>Thu, 12 Jan 2006 17:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708220#M250695</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-01-12T17:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708221#M250696</link>
      <description>Those aren't global kernel variables, they are fields in the structure passed to/from the user space pstat_getdynamic() system call. &lt;BR /&gt;&lt;BR /&gt;Trust me, you have pstat(). Read pstat(2) for more details.&lt;BR /&gt;&lt;BR /&gt;Here's an example (ignore the horrid formatting -- I'm not going to figure out how to get this web interface to tab nicely... :) ):&lt;BR /&gt;# cat nfile_usage.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;int&lt;BR /&gt;main(int argc, char **argv)&lt;BR /&gt;{&lt;BR /&gt;        struct pst_dynamic psd;&lt;BR /&gt;        int rv;&lt;BR /&gt;&lt;BR /&gt;        rv = pstat_getdynamic(&amp;amp;psd, sizeof(struct pst_dynamic), 1, 0);&lt;BR /&gt;&lt;BR /&gt;        if ( rv &amp;gt; 0 ) {&lt;BR /&gt;                printf("Number of files in use: %ld.\n",&lt;BR /&gt;                        psd.psd_activefiles);&lt;BR /&gt;        } else {&lt;BR /&gt;                printf("pstat_getdynamic failure: %d.\n", rv);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compiled with:&lt;BR /&gt;# cc +DD64 -D_PSTAT64 -o nfile_usage nfile_usage.c&lt;BR /&gt;# ./nfile_usage&lt;BR /&gt;Number of files in use: 307.&lt;BR /&gt;&lt;BR /&gt;Not every kernel tunable usage can be easily determined -- a list of the ones you want would be helpful.&lt;/SYS&gt;&lt;/SYS&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 12 Jan 2006 18:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708221#M250696</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2006-01-12T18:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708222#M250697</link>
      <description>Don,&lt;BR /&gt;GREAT! It works (needed to tweek code since we must have a gnu C compiler rather than an ANSI compiler).&lt;BR /&gt;&lt;BR /&gt;Our Progress DBA wanted to know high water usage values for the following kernel parameters in addition to those reported in glance/MW:&lt;BR /&gt;shmseg, shmmax, semmsl, semmns, semmnu, msgmap, msgmax, msgmnb, msgmni, msgseg, msgssz, msgtql.&lt;BR /&gt;&lt;BR /&gt;Thanks - Tom</description>
      <pubDate>Fri, 13 Jan 2006 11:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708222#M250697</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-01-13T11:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708223#M250698</link>
      <description>Hey Tom,&lt;BR /&gt;&lt;BR /&gt;That was a pretty elegant solution.&lt;BR /&gt;Throw the guy bone - assign points.&lt;BR /&gt;It's the right thing to do.&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 13 Jan 2006 11:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708223#M250698</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-01-13T11:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708224#M250699</link>
      <description>Don,&lt;BR /&gt;&lt;BR /&gt;This looks like a very useful script, unfortunately, I am not able to compile it.&lt;BR /&gt;Apparantly, my compile does not like the following line:&lt;BR /&gt;main(int argc, char **argv)&lt;BR /&gt;&lt;BR /&gt;Is there no other way to get this info?&lt;BR /&gt;&lt;BR /&gt;I am not sure which compiler we are using (I'm pretty new to this).&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Raymond</description>
      <pubDate>Tue, 27 Jun 2006 13:40:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708224#M250699</guid>
      <dc:creator>Raymond Kelly</dc:creator>
      <dc:date>2006-06-27T13:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708225#M250700</link>
      <description>As I noted, I also had to make a few changes in the "c" code to make it work - in the same area you had problem.  The changes I made are below and them I was able to compile and run the program:&lt;BR /&gt;&lt;BR /&gt;int&lt;BR /&gt;main ( argc, argv )&lt;BR /&gt;int argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;&lt;BR /&gt;(The code before and after are the same)&lt;BR /&gt;&lt;BR /&gt;Unfortunately, most of the kernel highwater values are not available under HPUX 11.11.  I found this out when I called HP.  They said that more of these are available under 11.23</description>
      <pubDate>Thu, 06 Jul 2006 10:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708225#M250700</guid>
      <dc:creator>Tom Krocak_1</dc:creator>
      <dc:date>2006-07-06T10:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current utilization value of tunable kernel parameters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708226#M250701</link>
      <description>&amp;gt; Our Progress DBA wanted to know high water usage values for the following kernel parameters in addition to those reported in glance/MW:&lt;BR /&gt;shmseg, shmmax, semmsl, semmns, semmnu, msgmap, msgmax, msgmnb, msgmni, msgseg, msgssz, msgtql&lt;BR /&gt; &lt;BR /&gt;Many of these parameters are limits or fences so they are not 'consumed' like nfile or nproc. Therefore, there is no concept of a highwater mark. If a program asks for a shared memory segment that is less than shmmax, then the program works. If it asks for more than the limit, the call fails. The best solution is to use ipcs (with lots of options) to monitor IPC metrics.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jul 2006 11:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-current-utilization-value-of-tunable-kernel-parameters/m-p/3708226#M250701</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-07-06T11:52:40Z</dc:date>
    </item>
  </channel>
</rss>

