<?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: Config file syntax. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028511#M516604</link>
    <description>And I have a typo in my suggestion, sorry&lt;BR /&gt;&lt;BR /&gt;_membytes = MEMORY&lt;BR /&gt;&lt;BR /&gt;not &lt;BR /&gt;&lt;BR /&gt;_memytes = MEMORY&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Roland&lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Mon, 21 Jul 2003 11:01:00 GMT</pubDate>
    <dc:creator>RolandH</dc:creator>
    <dc:date>2003-07-21T11:01:00Z</dc:date>
    <item>
      <title>Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028507#M516600</link>
      <description>&lt;BR /&gt;I have a number of machines with ram from 256Meg to around 6 gig.&lt;BR /&gt;&lt;BR /&gt;I want to setup my ignite config such that on machines with memory over 1gig it will set dbc_max_pct to correspond to 300 Meg of RAM.&lt;BR /&gt;&lt;BR /&gt;I want dbc_min_pct set to 5 or dbc_max_pct if that is lower.&lt;BR /&gt;&lt;BR /&gt;I have written a config that I think should do this, instl_adm says the syntax is fine, but it sets max_dbc_pct to very high values. My config is below.&lt;BR /&gt;&lt;BR /&gt;I'm using ignite B.3.6.82 on HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;My config:&lt;BR /&gt;&lt;BR /&gt;( memory &amp;gt; 1000MB )&lt;BR /&gt;{&lt;BR /&gt;_membytes = ${memory+0}&lt;BR /&gt;_dbc_max = ( 100 * ( 300MB / _membytes ))&lt;BR /&gt;mod_kernel += "dbc_max_pct " + ${"%d" _dbc_max}&lt;BR /&gt;  ( _dbc_max &amp;lt; 5 )&lt;BR /&gt;  {&lt;BR /&gt;  mod_kernel += "dbc_min_pct " + ${"%d" _dbc_max}&lt;BR /&gt;  }&lt;BR /&gt;  ( _dbc_max &amp;gt;= 5 )&lt;BR /&gt;  {&lt;BR /&gt;  mod_kernel += "dbc_min_pct 5"&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;( memory &amp;lt;= 1000MB )&lt;BR /&gt;{&lt;BR /&gt;mod_kernel += "dbc_max_pct 30"&lt;BR /&gt;mod_kernel += "dbc_min_pct 5"&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 09:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028507#M516600</guid>
      <dc:creator>Stephen Day</dc:creator>
      <dc:date>2003-07-21T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028508#M516601</link>
      <description>Hi Stephen,&lt;BR /&gt;Please make sure that if you want to make dbc_max_pct or dbc_min_pct available(dynamic buffer cache), you should set bufpages &amp;amp; nbuf to 0.&lt;BR /&gt;My idea, if the physical memory over 1G, you can directly set bufpages to 300M. Else, set bufpages &amp;amp; nbuf to 0 and dbc_max_pct to 30!&lt;BR /&gt;&lt;BR /&gt;Help this can be helpful!&lt;BR /&gt;&lt;BR /&gt;-ux</description>
      <pubDate>Mon, 21 Jul 2003 10:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028508#M516601</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-07-21T10:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028509#M516602</link>
      <description>nbuf and buffpages are set to 0 further up the same config file.&lt;BR /&gt;&lt;BR /&gt;If I check on a newly ignited machine they are indeed both set to 0.&lt;BR /&gt;&lt;BR /&gt;I want a dynamic buffer cache that is no bigger than 300Meg. Some database machines don't use files much so I don't really want a static 300Meg buffer cache.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 10:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028509#M516602</guid>
      <dc:creator>Stephen Day</dc:creator>
      <dc:date>2003-07-21T10:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028510#M516603</link>
      <description>I think you have only some typo errors that will not recognized by the syntax check.&lt;BR /&gt;Try this.&lt;BR /&gt;&lt;BR /&gt;( MEMORY &amp;gt; 1000MB ) &lt;BR /&gt;{ &lt;BR /&gt;   _memytes = MEMORY&lt;BR /&gt;   _dbc_max = ( 100 * ( 300 / _membytes ))&lt;BR /&gt;   mod_kernel += "dbc_max_pct" +  ${"%d" _dbc_max} &lt;BR /&gt;&lt;BR /&gt;  ( _dbc_max &amp;lt; 5 )&lt;BR /&gt;   { &lt;BR /&gt;     mod_kernel += "dbc_min_pct " + ${"%d" _dbc_max} &lt;BR /&gt;   }&lt;BR /&gt;  ( _dbc_max &amp;gt;= 5 ) &lt;BR /&gt;   { &lt;BR /&gt;     mod_kernel += "dbc_min_pct 5" &lt;BR /&gt;   } &lt;BR /&gt;} &lt;BR /&gt;( MEMORY &amp;lt;= 1000MB ) &lt;BR /&gt;{ &lt;BR /&gt;mod_kernel += "dbc_max_pct 30" &lt;BR /&gt;mod_kernel += "dbc_min_pct 5"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think that will work !!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Roland&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 10:56:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028510#M516603</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-07-21T10:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028511#M516604</link>
      <description>And I have a typo in my suggestion, sorry&lt;BR /&gt;&lt;BR /&gt;_membytes = MEMORY&lt;BR /&gt;&lt;BR /&gt;not &lt;BR /&gt;&lt;BR /&gt;_memytes = MEMORY&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Roland&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 11:01:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028511#M516604</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-07-21T11:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028512#M516605</link>
      <description>Thanks Roland, I'll give that a go.&lt;BR /&gt;&lt;BR /&gt;The point of _membytes = ${memory+0} was to make sure ignite treats _membytes as an int containing the number of bytes, not however else it may&lt;BR /&gt;internally store values in megabytes.&lt;BR /&gt;&lt;BR /&gt;Maybe this isn't needed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The following should divide the number of bytes I'm aiming for by the number of bytes of ram.&lt;BR /&gt;Above:&lt;BR /&gt;_dbc_max = ( 100 * ( 300 / _membytes ))&lt;BR /&gt;&lt;BR /&gt;Shouldn't this be:&lt;BR /&gt;_dbc_max = ( 100 * ( (300*1024*1024) / _membytes ))&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 11:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028512#M516605</guid>
      <dc:creator>Stephen Day</dc:creator>
      <dc:date>2003-07-21T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028513#M516606</link>
      <description>I have checked with my ignite MEMORY will be internaly used as kb.&lt;BR /&gt;So we must use this line&lt;BR /&gt;&lt;BR /&gt;_dbc_max = ( 100 * ( (300*1024) / _membytes ))&lt;BR /&gt;&lt;BR /&gt;check it by yourself  &lt;BR /&gt;&lt;BR /&gt;set &lt;BR /&gt;_membytes = MEMORY&lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt; init _membytes = MEMORY&lt;BR /&gt;&lt;BR /&gt;than open a new installation window for a system and open the Additional Button. You will see that _membytes is in kb.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Roland &lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 11:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028513#M516606</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-07-21T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028514#M516607</link>
      <description>Hi Stephen,&lt;BR /&gt;&lt;BR /&gt;I'm not sure that 10 points was to fast.&lt;BR /&gt;I'm using the same ignite version on 11.11 as you . But if I open the additonal window the variable _dbc_max is always the value 0.&lt;BR /&gt;Has you the same effect?&lt;BR /&gt;&lt;BR /&gt;If I use this (Box with 2GB RAM)&lt;BR /&gt;&lt;BR /&gt;_dbc_max = ( 100 * ( 300 * 1024 / _membytes )) &lt;BR /&gt;&lt;BR /&gt;it is 0&lt;BR /&gt;&lt;BR /&gt;and if I use this&lt;BR /&gt;&lt;BR /&gt;_dbc_max = ( 100 * 300 * 1024 / 2097152 )&lt;BR /&gt;&lt;BR /&gt;the correct value of 14 is calculated. &lt;BR /&gt;&lt;BR /&gt;HHMMMMMM ?????&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Roland&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jul 2003 14:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028514#M516607</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-07-21T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028515#M516608</link>
      <description>Cracked it!&lt;BR /&gt;&lt;BR /&gt;The following config works like a charm:&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;( MEMORY &amp;gt; 1000MB )&lt;BR /&gt;{&lt;BR /&gt;init _dbc_max_target = 300MB&lt;BR /&gt;#Add one due to the following being rounded down.&lt;BR /&gt;init _dbc_max = 1+( ( _dbc_max_target ) /  ( MEMORY / 100 ) )&lt;BR /&gt;mod_kernel += "dbc_max_pct" + ${"%d" _dbc_max}&lt;BR /&gt;&lt;BR /&gt;( _dbc_max &amp;lt; 5 )&lt;BR /&gt;{&lt;BR /&gt;mod_kernel += "dbc_min_pct " + ${"%d" _dbc_max}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;( _dbc_max &amp;gt;= 5 )&lt;BR /&gt;{&lt;BR /&gt;mod_kernel += "dbc_min_pct 5"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;( MEMORY &amp;lt;= 1000MB )&lt;BR /&gt;{&lt;BR /&gt;mod_kernel += "dbc_max_pct 30"&lt;BR /&gt;mod_kernel += "dbc_min_pct 5"&lt;BR /&gt;}&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;The problems I'd seen were due to three things:&lt;BR /&gt;Ignite changing varibles from KB to Bytes,&lt;BR /&gt;Interger math losing everything after the decimal point,&lt;BR /&gt;and numbers overflowing a 32 bit integer.&lt;BR /&gt;&lt;BR /&gt;What was causing me the most confusion was the background conversion between KBytes and Bytes on any minus or plus operation.&lt;BR /&gt;&lt;BR /&gt;eg. on a machine with half a gig of RAM:&lt;BR /&gt;MEMORY = 524288&lt;BR /&gt;but&lt;BR /&gt;MEMORY+0 = 536870912&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HP - If you are reading this:&lt;BR /&gt;&lt;BR /&gt;Please use 64 bit integers on a 64 bit machine running a 64 bit OS.&lt;BR /&gt;Please let me set the type of vars. Double and unsigned Long Int would be nice.&lt;BR /&gt;&lt;BR /&gt;Otherwise, thanks for a great product.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jul 2003 13:20:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028515#M516608</guid>
      <dc:creator>Stephen Day</dc:creator>
      <dc:date>2003-07-22T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Config file syntax.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028516#M516609</link>
      <description>&lt;BR /&gt;I have another problem.&lt;BR /&gt;The above works fine, however intsl_adm gives me a divide by zero error in &lt;BR /&gt;the following line:&lt;BR /&gt;&lt;BR /&gt;init _dbc_max = 1+( ( _dbc_max_target ) / ( MEMORY / 100 ) )&lt;BR /&gt;&lt;BR /&gt;MEMORY / 100 clearly isn't zero so anyone know whats going on??&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jul 2003 07:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/config-file-syntax/m-p/3028516#M516609</guid>
      <dc:creator>Stephen Day</dc:creator>
      <dc:date>2003-07-28T07:08:11Z</dc:date>
    </item>
  </channel>
</rss>

