<?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 Kernel tune - max_async_ports in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648591#M879820</link>
    <description>I wonder if anyone knows a way to determine where to set this value.  There has been a lot of good information about how to determine a good starting value, but I would like to know how many are actually in use at any one time so that I can decide whether to increase or decrease this value.  Our current value was increased dramatically from the default of 50 to 2000 in an attempt to solve a resource crisis ( cpu usage staying close to 100% ).  We fixed our problem by re-writing some querys, and want to reduce the value of max_async_ports.  The increase in this parameter increased the size of the kernel by several megabytes.  But, I am not sure that the default value of 50 is high enough.  I need some way to measure this usage.</description>
    <pubDate>Fri, 18 Jan 2002 19:08:23 GMT</pubDate>
    <dc:creator>Martha Mueller</dc:creator>
    <dc:date>2002-01-18T19:08:23Z</dc:date>
    <item>
      <title>Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648591#M879820</link>
      <description>I wonder if anyone knows a way to determine where to set this value.  There has been a lot of good information about how to determine a good starting value, but I would like to know how many are actually in use at any one time so that I can decide whether to increase or decrease this value.  Our current value was increased dramatically from the default of 50 to 2000 in an attempt to solve a resource crisis ( cpu usage staying close to 100% ).  We fixed our problem by re-writing some querys, and want to reduce the value of max_async_ports.  The increase in this parameter increased the size of the kernel by several megabytes.  But, I am not sure that the default value of 50 is high enough.  I need some way to measure this usage.</description>
      <pubDate>Fri, 18 Jan 2002 19:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648591#M879820</guid>
      <dc:creator>Martha Mueller</dc:creator>
      <dc:date>2002-01-18T19:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648592#M879821</link>
      <description>Hi Martha,&lt;BR /&gt;&lt;BR /&gt;max_async_ports is a kernel parameter. Here is the detail on the same,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com//hpux/onlinedocs/os/KCparam.MaxAsyncPorts.html" target="_blank"&gt;http://docs.hp.com//hpux/onlinedocs/os/KCparam.MaxAsyncPorts.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the detail on all the kernel parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html" target="_blank"&gt;http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2002 19:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648592#M879821</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-18T19:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648593#M879822</link>
      <description>Well, max_async_ports number represent the maximum number of processes that can open /dev/async concurrently. The default value, from what I see is 50. Some people increase this value when "nproc" got bumped up but I think it is not necessary because it would not affect the performance of the server. You can make the change using SAM-&amp;gt;Kernel Config-&amp;gt;Configurable Parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2002 19:27:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648593#M879822</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-01-18T19:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648594#M879823</link>
      <description>Thanks, but I am really looking for a way to measure what we are currently using, not the abstract paper on how to plan for the expected need.</description>
      <pubDate>Fri, 18 Jan 2002 19:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648594#M879823</guid>
      <dc:creator>Martha Mueller</dc:creator>
      <dc:date>2002-01-18T19:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648595#M879824</link>
      <description>HI Martha&lt;BR /&gt;&lt;BR /&gt;The max_async_ports parameter limits the number of&lt;BR /&gt;processes that can open /dev/async concurrently.&lt;BR /&gt;As a result, the maximum is nproc, which is the&lt;BR /&gt;limit on the number of processes that can run on&lt;BR /&gt;your system at any given time.&lt;BR /&gt;&lt;BR /&gt;There is no performance issue associated with&lt;BR /&gt;increasing this parameter.&lt;BR /&gt;&lt;BR /&gt;The default is as you know 50 which on all my servers is fine _(universe) I an not sure about other databases&lt;BR /&gt;&lt;BR /&gt;I would change it back to its default value - 50. Unless your database requires something different.&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2002 19:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648595#M879824</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-18T19:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648596#M879825</link>
      <description>Thanks, Paula.  That's what I am trying to determine - whether the default of 50 would be fine for my database or whether it needs to be higher.  I feel certain that 2000 is too high, but I would like to be able to determine through some measurement rather than just try a value.  But, that might be all that I can do, there may not be any method to measure.</description>
      <pubDate>Fri, 18 Jan 2002 19:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648596#M879825</guid>
      <dc:creator>Martha Mueller</dc:creator>
      <dc:date>2002-01-18T19:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648597#M879826</link>
      <description>Martha&lt;BR /&gt;&lt;BR /&gt;If you are running Oracale have a look at this.&lt;BR /&gt;&lt;BR /&gt;If not what are you running on your server.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Sat, 19 Jan 2002 17:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648597#M879826</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-19T17:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648598#M879827</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;This might also help:-&lt;BR /&gt;&lt;BR /&gt;2.0 Configuring asynchronous i/o &lt;BR /&gt;================================ &lt;BR /&gt;aio requires configuration of both Oracle and HP-UX &lt;BR /&gt;&lt;BR /&gt;2.1 HP-UX Configuration &lt;BR /&gt;----------------------- &lt;BR /&gt;a. create the /dev/async character device &lt;BR /&gt;% /sbin/mknod /dev/async c 101 0x0 &lt;BR /&gt;% chown oracle:dba /dev/async &lt;BR /&gt;% chmod 660 /dev/async &lt;BR /&gt;&lt;BR /&gt;b. configure the async driver in the kernel &lt;BR /&gt;Using SAM &lt;BR /&gt;-&amp;gt; Kernel Configuration &lt;BR /&gt;-&amp;gt; Drivers &lt;BR /&gt;-&amp;gt; the driver is called 'asyncdsk' &lt;BR /&gt;Generate new kernel &lt;BR /&gt;Reboot &lt;BR /&gt;&lt;BR /&gt;c. set max_async_ports &lt;BR /&gt;Using SAM &lt;BR /&gt;-&amp;gt; Kernel Configuration &lt;BR /&gt;-&amp;gt; Configurable Parameters &lt;BR /&gt;-&amp;gt; max_async_ports &lt;BR /&gt;&lt;BR /&gt;max_async_ports limits the maximum number of processes that can concurrently &lt;BR /&gt;use /dev/async. Set this parameter to the sum of &lt;BR /&gt;'processes' from init.ora + number of background processes &lt;BR /&gt;&lt;BR /&gt;The background processes started at instance startup will open /dev/async &lt;BR /&gt;twice. &lt;BR /&gt;&lt;BR /&gt;If max_async_ports is reached, subsequent processes will use synchronous i/o. &lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Sat, 19 Jan 2002 17:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648598#M879827</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-19T17:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648599#M879828</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;According to the Oracle 8.0.4 release notes (&lt;A href="http://otn.oracle.co.kr/docs/oracle78/hp/server.804/A59370_01/relnote.htm)," target="_blank"&gt;http://otn.oracle.co.kr/docs/oracle78/hp/server.804/A59370_01/relnote.htm),&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;================================================&lt;BR /&gt;max_async_ports parameter&lt;BR /&gt;max_async_ports is a configurable HP-UX kernel parameter that controls the maximum number of processes that can open /dev/async simultaneously. &lt;BR /&gt;&lt;BR /&gt;During a benchmark, some shadow processes failed to open the async driver with error EBUSY. This error is caused when the async driver has already opened the number of processes specified by this parameter. &lt;BR /&gt;&lt;BR /&gt;An error in opening the async driver can have performance implications on a machine with a large number of shadow processes or many parallel query slaves doing async I/O. &lt;BR /&gt;&lt;BR /&gt;To avoid this error, customers should estimate the highest likely number of processes that /dev/async may run and set max_async_ports to this value. &lt;BR /&gt;&lt;BR /&gt;Note that Oracle does not flag this error in the alert.log file or the trace files. &lt;BR /&gt;================================================&lt;BR /&gt;&lt;BR /&gt;You can use Glance to identify the processes performing async I/O on your system. From there, you can perhaps give a more reliable estimate of the value you need to set max_async_ports to.&lt;BR /&gt;&lt;BR /&gt;If you don't have Glance, you can use lsof to perform a check on the processes using /dev/async. &lt;BR /&gt;&lt;BR /&gt;You can download lsof from one of the HP Porting and Archive Centre:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.asknet.de/hppd/hpux/Sysadmin/lsof-4.55/" target="_blank"&gt;http://hpux.asknet.de/hppd/hpux/Sysadmin/lsof-4.55/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So, first try assign a huge number (eg. 2000), then perform an lsof to identify the number of processes using /dev/async (eg. lsof |grep /dev/async).&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Sun, 20 Jan 2002 00:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648599#M879828</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-20T00:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648600#M879829</link>
      <description>Paula, I am running sybase.  I wanted to assign 10 points to both Paula and Steven because both answers are helpful in my quest.  I think I have a good plan.  I wasn't sure that lsof would give me accurate information...I was just mentioning it as an example of a tool.  But the rest of the information about startup and shadowing processes will keep me from setting this value too low.&lt;BR /&gt;&lt;BR /&gt;Thanks for your insight.</description>
      <pubDate>Mon, 21 Jan 2002 15:03:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648600#M879829</guid>
      <dc:creator>Martha Mueller</dc:creator>
      <dc:date>2002-01-21T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel tune - max_async_ports</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648601#M879830</link>
      <description>max_async_ports as everyone says is the maximum amount of processes which may have /dev/async open at any given time.&lt;BR /&gt;&lt;BR /&gt;This parameter should be at most the number of "processes" in all the Oracle instances which use async I/O on your server.&lt;BR /&gt;&lt;BR /&gt;If you do not have enough max_async_ports you will have performance issues as the shadow processes will not be able to open the async driver.</description>
      <pubDate>Mon, 21 Jan 2002 20:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-tune-max-async-ports/m-p/2648601#M879830</guid>
      <dc:creator>Dennis J Robinson</dc:creator>
      <dc:date>2002-01-21T20:44:25Z</dc:date>
    </item>
  </channel>
</rss>

