<?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: Processor affinity in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765764#M792129</link>
    <description>Interestingly, the word "affinity" does not appear in any of the man pages.  However, the on-line manual does have a small section about it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B3782-90716/00/00/34-con.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B3782-90716/00/00/34-con.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
    <pubDate>Wed, 17 Jul 2002 12:51:32 GMT</pubDate>
    <dc:creator>Mark Greene_1</dc:creator>
    <dc:date>2002-07-17T12:51:32Z</dc:date>
    <item>
      <title>Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765763#M792128</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have oracle 8i running on an A500 HP-UX 11i server, we seem to have a CPU bottleneck on the system which is slowing oracle processes.&lt;BR /&gt;&lt;BR /&gt;However, it looks like the Oracle processes will only bind to a single processor, this system has 2 processors, and one of them is almost always at 100% when running queries, the other is barely used at all.&lt;BR /&gt;&lt;BR /&gt;The PSET software is NOT installed on this system, and a mpsched -qp on all of the Oracle server processes shows no binding.&lt;BR /&gt;&lt;BR /&gt;Can anyone help explain why Oracle processes are behaving like this?&lt;BR /&gt;I know that an mpctl call by the Oracle software can do this, but I have no way to tell if this is the case.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2002 08:49:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765763#M792128</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2002-07-17T08:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765764#M792129</link>
      <description>Interestingly, the word "affinity" does not appear in any of the man pages.  However, the on-line manual does have a small section about it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B3782-90716/00/00/34-con.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B3782-90716/00/00/34-con.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Wed, 17 Jul 2002 12:51:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765764#M792129</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-07-17T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765765#M792130</link>
      <description>Hi, we had the same exact problem about 2.5 years ago with a K460 running HP-UX 11, Oracle 8.something and People Soft financials.  Instead of spreading processes on 4 CPUS all non-root processes were running on one CPU.  If my memory serves me correctly, it was fixed by a patch...</description>
      <pubDate>Thu, 18 Jul 2002 06:24:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765765#M792130</guid>
      <dc:creator>George Petrides_1</dc:creator>
      <dc:date>2002-07-18T06:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765766#M792131</link>
      <description>Hi Alan,&lt;BR /&gt;&lt;BR /&gt;I wonder if you find out what happne to your server...???  it seems like I have similar problem running Oracle9i on HPUX 11i on a RP7410server...&lt;BR /&gt;&lt;BR /&gt;Please help...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ed</description>
      <pubDate>Wed, 18 Feb 2004 14:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765766#M792131</guid>
      <dc:creator>Edward Carey</dc:creator>
      <dc:date>2004-02-18T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765767#M792132</link>
      <description>It isn't a problem at all, it's perfectly normal. A single process can never be shared across processors. That's basic computer programming 101. To use the other processor(s), you must:&lt;BR /&gt; &lt;BR /&gt;- run more processes.&lt;BR /&gt; &lt;BR /&gt;- rewrite the application to use threads.&lt;BR /&gt; &lt;BR /&gt;A thread is a mini-process which is created and monitored by the main process. An easy example of a threaded application is your favorite browser. While things are downloading, you can change options, start something printing, even change your mind and go to another URL. The overall browser code is monitoring events (mouse movements, clicks, keystrokes, etc) and starts an internal routine that performs this subtask.&lt;BR /&gt; &lt;BR /&gt;So until Oracle is configured to run threaded (or if it is already, it apparently doesn't have more than one long term task to accomplish), you'll see just one processor being used.</description>
      <pubDate>Wed, 18 Feb 2004 14:35:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765767#M792132</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-02-18T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765768#M792133</link>
      <description>It doesn't have to be Oracle itself that uses mpctl().  You can write a program yourself to move processes around.  It just has to be run as root.  This obviously won't be very simple when processes finish quickly, but some, like the log writer, listener etc can be affinitied to the empty cpu, to free up the other cpu for SQLs.&lt;BR /&gt;&lt;BR /&gt;Use top to work out which processes you want to move, then use the program below to move them.&lt;BR /&gt;&lt;BR /&gt;/* set_cpu.c assigns a process ($1) to cpu($2) */&lt;BR /&gt;/* note that cpus are numbered 0,1,2,3... */&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;int pid, cpu, numcpus;&lt;BR /&gt;&lt;BR /&gt;if (argc&amp;lt;2) return 10;&lt;BR /&gt;if ((pid=atoi(argv[1])) &amp;lt; 0) return 11;&lt;BR /&gt;if ((cpu=atoi(argv[2])) &amp;lt; 0) return 12;&lt;BR /&gt;&lt;BR /&gt;/* find out how many cpus are installed */&lt;BR /&gt;numcpus = mpctl(MPC_GETNUMSPUS,0,0);&lt;BR /&gt;&lt;BR /&gt;/* if numcpus=4, cant request cpu 4, since numbered 0,1,2,3 */&lt;BR /&gt;if (cpu &amp;gt;= numcpus) return 13;&lt;BR /&gt;&lt;BR /&gt;/* now try to assign the pid to the cpu and&lt;BR /&gt;   return its number */&lt;BR /&gt;&lt;BR /&gt;return mpctl(MPC_SETPROCESS,cpu,pid);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SYS&gt;&lt;/STDLIB.H&gt;</description>
      <pubDate>Thu, 19 Feb 2004 04:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765768#M792133</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2004-02-19T04:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Processor affinity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765769#M792134</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;it looks like the Oracle processes &lt;BR /&gt;&lt;BR /&gt;this sounds like plural too me!&lt;BR /&gt;&lt;BR /&gt;However, how many oracle processes and how much do they use the one cpu?&lt;BR /&gt;&lt;BR /&gt;Are the clients local or remote?&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Feb 2004 09:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/processor-affinity/m-p/2765769#M792134</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-02-19T09:30:27Z</dc:date>
    </item>
  </channel>
</rss>

