<?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: Syslog Performance under hpvm guest in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734392#M524082</link>
    <description>Adding CPUs (and vCPUs) does increase chance of the 2 processes running in parallel. The more cpus the better. Note that it's not 100% predicable as there could be other processes willing to run. There is no obvious calculation behind the 3.4 seconds, most likely you've hit the .1 sec wait a few times because of some other processes fighting&lt;BR /&gt;syslog for CPU.&lt;BR /&gt;</description>
    <pubDate>Mon, 10 Jan 2011 08:21:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-10T08:21:56Z</dc:date>
    <item>
      <title>Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734384#M524074</link>
      <description>Hi all,&lt;BR /&gt;  We have a strange question regarding the syslog() call.&lt;BR /&gt;  I am testing the performance of hpvm 4.2 running in HP BL860C box&lt;BR /&gt;  Host is running HPUX 11.31 vse and guest is running HPUX 11.31&lt;BR /&gt;  I have the following code to test the performance:&lt;BR /&gt;&lt;BR /&gt;#include &lt;IOSTREAM.H&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;SYSLOG.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main (void)&lt;BR /&gt;{&lt;BR /&gt;  int iteration =0;&lt;BR /&gt;  time_T startTime=0;&lt;BR /&gt;  openlog("ptest",LOG_PID,LOG_USER);&lt;BR /&gt;  cout&amp;lt;&amp;lt;"\nNumber of Iteration: ";&lt;BR /&gt;  cin &amp;gt;&amp;gt; iteration;&lt;BR /&gt;&lt;BR /&gt;  startTime = time(0);&lt;BR /&gt;  for(int i=0; i&lt;ITERATION&gt;&lt;/ITERATION&gt;  {&lt;BR /&gt;    syslog(LOG_DEGUG,"Test Message");&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;  cout &amp;lt;&amp;lt; "\nIteration Count="&amp;lt;&lt;ITERATION&gt;&lt;/ITERATION&gt;  cout &amp;lt;&amp;lt; ",Time Elapsed ="&amp;lt;&lt;TIME&gt;&lt;/TIME&gt;}&lt;BR /&gt;&lt;BR /&gt;complied it under the guest and ran it.&lt;BR /&gt;The result was very different between the HPVM guest and host and standalone(without hpvm).&lt;BR /&gt;&lt;BR /&gt;For instance, if I take the Iterations as 1000 times.&lt;BR /&gt;&lt;BR /&gt;HPVM guest was 27.2 seconds compared with 3.4 seconds in HPVM host.&lt;BR /&gt;&lt;BR /&gt;Does anyone experience this?&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;&lt;/SYSLOG.H&gt;&lt;/TIME.H&gt;&lt;/IOSTREAM.H&gt;</description>
      <pubDate>Wed, 05 Jan 2011 21:48:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734384#M524074</guid>
      <dc:creator>sumdomo</dc:creator>
      <dc:date>2011-01-05T21:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734385#M524075</link>
      <description>Interesting.&lt;BR /&gt;&lt;BR /&gt;This is not really HPVM performance problem. It's more related to whether syslogd which drains /dev/log pipe manages to run in parallel with your logging code or if they share the same cpu. If they share the same cpu, the pipe consumes only 8k and since syslog(3c) writes in 2k chunks, for 1000 iterations you get 250 times EAGAIN from the write() call. Since we go to sleep for .1 sec to let the pipe drain after EAGAIN, that becomes some 25 seconds of additional sleep time.&lt;BR /&gt;&lt;BR /&gt;Make sure you are comparing apples and apples. HPVM guest has typically less cpus than the host and thus on host the chance of syslogd getting scheduler right after it's woken up after the first write to pipe is higher. &lt;BR /&gt;&lt;BR /&gt;Also any throttling in HPVM CPU entitlements (maximum entitlement set to &amp;lt;100%) or some other load running on the guest could lead to the same.</description>
      <pubDate>Thu, 06 Jan 2011 12:03:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734385#M524075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-06T12:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734386#M524076</link>
      <description>Bonjour,&lt;BR /&gt;&lt;BR /&gt;I wonder: instead of reporting elapsed time, that depends on many factors, may be you could try to report CPU time used [ man 3c clock ]. Not sure, but I think it could be a more accurate value to analyse.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Thu, 06 Jan 2011 15:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734386#M524076</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2011-01-06T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734387#M524077</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   Thanks for your reply. &lt;BR /&gt;I would consider more like it is HPVM performance problem cause the same code running under Host is fast or reasonable time.&lt;BR /&gt;&lt;BR /&gt;thanks.</description>
      <pubDate>Thu, 06 Jan 2011 20:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734387#M524077</guid>
      <dc:creator>sumdomo</dc:creator>
      <dc:date>2011-01-06T20:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734388#M524078</link>
      <description>I've tried to explain the reasons why it's not. So how many cpus host and guest have?</description>
      <pubDate>Thu, 06 Jan 2011 20:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734388#M524078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-06T20:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734389#M524079</link>
      <description>Oh, sorry&lt;BR /&gt;&lt;BR /&gt;It has 1 cpu on host and only one guest with 1vcpu</description>
      <pubDate>Thu, 06 Jan 2011 21:19:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734389#M524079</guid>
      <dc:creator>sumdomo</dc:creator>
      <dc:date>2011-01-06T21:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734390#M524080</link>
      <description>I believe bl860c uses dual core processors, so you have 2 cores (which is what I meant by using word cpu), right? See for example top(1m) output and count the CPU lines.&lt;BR /&gt;On guest with single vcpu your code which writes to /dev/log and syslogd which drains it have to serialize and the delays I've mentioned are inevitable. The same would happen on standalone (non virtual) system with single CPU core.&lt;BR /&gt;The runtime in seconds you'll see will always be &amp;gt; (number_of_iterations/40).</description>
      <pubDate>Thu, 06 Jan 2011 21:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734390#M524080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-06T21:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734391#M524081</link>
      <description>Stan,&lt;BR /&gt;&lt;BR /&gt;What if I assign 2 vcpus on the guest?&lt;BR /&gt;What if I add one more physical CPU to the blade to make it 4 cores and assigned 4 vcpus to the guest?&lt;BR /&gt;Can you guide me how the host calculation is 3.4 secs?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your time</description>
      <pubDate>Sat, 08 Jan 2011 06:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734391#M524081</guid>
      <dc:creator>sumdomo</dc:creator>
      <dc:date>2011-01-08T06:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Performance under hpvm guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734392#M524082</link>
      <description>Adding CPUs (and vCPUs) does increase chance of the 2 processes running in parallel. The more cpus the better. Note that it's not 100% predicable as there could be other processes willing to run. There is no obvious calculation behind the 3.4 seconds, most likely you've hit the .1 sec wait a few times because of some other processes fighting&lt;BR /&gt;syslog for CPU.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2011 08:21:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-performance-under-hpvm-guest/m-p/4734392#M524082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-10T08:21:56Z</dc:date>
    </item>
  </channel>
</rss>

