<?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 Performance problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023916#M609495</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am validating our software products for HP-UX on a rx2620 system with built-in SCSI hard drives. Oracle (used by some of our products) appears unusually slow on the default VxFS (compared to what I would expect based on my experience with other platforms).&lt;BR /&gt;&lt;BR /&gt;I am currently focusing on a single item in our test suite which is an insert-intensive test (almost only inserts). After each insert there is a commit (this may not be optimal, but this part of the test case) which induces a fairly large amount redo-log-writer (LGWR) activity. Still, on previously tested platforms, the ratio of log writer time to statement execution time has been about 1/4. On our HP-UX test installation, this ratio is more than 5/4. (While the LGWR may do some asynchronous background writing between commits, on a commit request it is always writing synchronously causing the application to wait a lot for the commit to return.&lt;BR /&gt;&lt;BR /&gt;I started to research the cause of the slowness and I found one possible cause:&lt;BR /&gt;VxFS buffering causes an usually high overhead.&lt;BR /&gt;&lt;BR /&gt;It appears that there some options to VxFS for turning off buffering/caching on the OS level. However, these options appear to be available only with OnLineJFS, which is not installed on our test machine. Before rushing to obtain a copy of OnLineJFS and take my chances with the directio mount options, I would like to find out whether this is really the right move or I should look for other causes.&lt;BR /&gt;&lt;BR /&gt;I am not sure if they are relevant, but here are some sar outputs:&lt;BR /&gt;&lt;BR /&gt;-bash-3.00$ sar -b 1 10000&lt;BR /&gt;&lt;BR /&gt;HP-UX apollo B.11.23 U ia64    01/22/07&lt;BR /&gt;&lt;BR /&gt;00:35:04 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s&lt;BR /&gt;00:29:05       0     307     100     277     258       0       0       0&lt;BR /&gt;00:29:06       0     259     100     255     264       3       0       0&lt;BR /&gt;00:29:07       0     264     100     279     264       0       0       0&lt;BR /&gt;00:29:08       0     282     100     275     283       3       0       0&lt;BR /&gt;00:29:09       0     282     100     279     275       0       0       0&lt;BR /&gt;00:29:10       0     283     100     282     285       1       0       0&lt;BR /&gt;00:29:11       0     273     100     275     274       0       0       0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-bash-3.00$ sar -u 1 1000&lt;BR /&gt;&lt;BR /&gt;HP-UX apollo B.11.23 U ia64    01/22/07&lt;BR /&gt;&lt;BR /&gt;00:35:19    %usr    %sys    %wio   %idle&lt;BR /&gt;00:35:20      18       2      39      42&lt;BR /&gt;00:35:21      17       1      43      38&lt;BR /&gt;00:35:22      17       1      41      41&lt;BR /&gt;00:35:23      19       4      35      43&lt;BR /&gt;00:35:24      13       3      38      45&lt;BR /&gt;00:35:25      18       4      37      42&lt;BR /&gt;&lt;BR /&gt;Based on this information, does it look like using the directio options of OnLineJFS will result in a 400% (!) increase in write performance?&lt;BR /&gt;&lt;BR /&gt;Is there any other diagnostic data which could help me narrow down the possible causes of this problem.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Sun, 21 Jan 2007 18:57:51 GMT</pubDate>
    <dc:creator>Peter Kovacs 1.0rc</dc:creator>
    <dc:date>2007-01-21T18:57:51Z</dc:date>
    <item>
      <title>Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023916#M609495</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am validating our software products for HP-UX on a rx2620 system with built-in SCSI hard drives. Oracle (used by some of our products) appears unusually slow on the default VxFS (compared to what I would expect based on my experience with other platforms).&lt;BR /&gt;&lt;BR /&gt;I am currently focusing on a single item in our test suite which is an insert-intensive test (almost only inserts). After each insert there is a commit (this may not be optimal, but this part of the test case) which induces a fairly large amount redo-log-writer (LGWR) activity. Still, on previously tested platforms, the ratio of log writer time to statement execution time has been about 1/4. On our HP-UX test installation, this ratio is more than 5/4. (While the LGWR may do some asynchronous background writing between commits, on a commit request it is always writing synchronously causing the application to wait a lot for the commit to return.&lt;BR /&gt;&lt;BR /&gt;I started to research the cause of the slowness and I found one possible cause:&lt;BR /&gt;VxFS buffering causes an usually high overhead.&lt;BR /&gt;&lt;BR /&gt;It appears that there some options to VxFS for turning off buffering/caching on the OS level. However, these options appear to be available only with OnLineJFS, which is not installed on our test machine. Before rushing to obtain a copy of OnLineJFS and take my chances with the directio mount options, I would like to find out whether this is really the right move or I should look for other causes.&lt;BR /&gt;&lt;BR /&gt;I am not sure if they are relevant, but here are some sar outputs:&lt;BR /&gt;&lt;BR /&gt;-bash-3.00$ sar -b 1 10000&lt;BR /&gt;&lt;BR /&gt;HP-UX apollo B.11.23 U ia64    01/22/07&lt;BR /&gt;&lt;BR /&gt;00:35:04 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s&lt;BR /&gt;00:29:05       0     307     100     277     258       0       0       0&lt;BR /&gt;00:29:06       0     259     100     255     264       3       0       0&lt;BR /&gt;00:29:07       0     264     100     279     264       0       0       0&lt;BR /&gt;00:29:08       0     282     100     275     283       3       0       0&lt;BR /&gt;00:29:09       0     282     100     279     275       0       0       0&lt;BR /&gt;00:29:10       0     283     100     282     285       1       0       0&lt;BR /&gt;00:29:11       0     273     100     275     274       0       0       0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-bash-3.00$ sar -u 1 1000&lt;BR /&gt;&lt;BR /&gt;HP-UX apollo B.11.23 U ia64    01/22/07&lt;BR /&gt;&lt;BR /&gt;00:35:19    %usr    %sys    %wio   %idle&lt;BR /&gt;00:35:20      18       2      39      42&lt;BR /&gt;00:35:21      17       1      43      38&lt;BR /&gt;00:35:22      17       1      41      41&lt;BR /&gt;00:35:23      19       4      35      43&lt;BR /&gt;00:35:24      13       3      38      45&lt;BR /&gt;00:35:25      18       4      37      42&lt;BR /&gt;&lt;BR /&gt;Based on this information, does it look like using the directio options of OnLineJFS will result in a 400% (!) increase in write performance?&lt;BR /&gt;&lt;BR /&gt;Is there any other diagnostic data which could help me narrow down the possible causes of this problem.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Sun, 21 Jan 2007 18:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023916#M609495</guid>
      <dc:creator>Peter Kovacs 1.0rc</dc:creator>
      <dc:date>2007-01-21T18:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023917#M609496</link>
      <description>What was the write back cache setting for the low writer disks on the other platform?&lt;BR /&gt;&lt;BR /&gt;A simple test for this is to use 'dd if=/dev/zero of=$rawdisk bs=512 count=1000'&lt;BR /&gt;&lt;BR /&gt;If this takes less than 2 second, then write-back caching was enabled, and the disk/controller returned succed before the data made it actually to the disk. Unless there is serious cache protection this is not appropriate for transactional systems.&lt;BR /&gt;&lt;BR /&gt;As you indicate, the logwriter has to go to the disk for each commit, and in this artifical case will only do the one instet.&lt;BR /&gt;&lt;BR /&gt;Batch jobs typically commit several inserts at a time, such that the overhead of the logwriter is less significant.&lt;BR /&gt;Typical multy user usage also allows the logwriter to effectivly commit multiple writes per IO, making it more efficient.&lt;BR /&gt;&lt;BR /&gt;Single insert commit log write IOs are small. Less than the 8KB file system buffer. Some suggest that for each first time a buffer is touched this may cause system to read a buffer worth, merge in the change, write the changed buffer.&lt;BR /&gt;&lt;BR /&gt;Why not take the file system out of the equation by (temporarely) going to a raw device for the redo log? You can do this just for the redo, on the fly. Just add two  groups on raw devices, switch logs twice, drop the original groups, try again.&lt;BR /&gt;&lt;BR /&gt;You may also be able to switch on write back cache for you local disk by jiggling the 'mode pages' for the disk. I believe that this setting is default for Sun systems. Sorry, no detail info handy just now.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Jan 2007 19:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023917#M609496</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-01-21T19:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023918#M609497</link>
      <description>Actually, I think I found info on the write-behind vs write-back cache setting.&lt;BR /&gt;&lt;BR /&gt;Check out the man page (1m) for scsictl&lt;BR /&gt;Option: -m immediate_report&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Jan 2007 19:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023918#M609497</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-01-21T19:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023919#M609498</link>
      <description>I on the HP-UX system I get this:&lt;BR /&gt;&lt;BR /&gt;-bash-3.00$ time dd if=/dev/zero of=/opt/oracle/test_raw bs=512 count=1000&lt;BR /&gt;1000+0 records in&lt;BR /&gt;1000+0 records out&lt;BR /&gt;&lt;BR /&gt;real    0m0.060s&lt;BR /&gt;user    0m0.000s&lt;BR /&gt;sys     0m0.010s&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/opt/oracle is a directory on the file system where the Oracle data + control files are also located.&lt;BR /&gt;&lt;BR /&gt;Did I something wrong? Shouldn't be "count" much greater be?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Peter</description>
      <pubDate>Sun, 21 Jan 2007 20:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023919#M609498</guid>
      <dc:creator>Peter Kovacs 1.0rc</dc:creator>
      <dc:date>2007-01-21T20:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023920#M609499</link>
      <description>&lt;BR /&gt;Wrong test. That was using a file system.&lt;BR /&gt;doublecheck with IO stat, you will not see many actuall disk IO for that test.&lt;BR /&gt;&lt;BR /&gt;You would have to step back from the mountpoint (/opt ?) to the lvol to the vg.&lt;BR /&gt;Is there any space (just a few PE's will do!) left in the volume group that you can create a fresh LV on and then use the Rvol for the test?&lt;BR /&gt;&lt;BR /&gt;[btw... I think I had my terms mixed up. Write-back = write through to disk, reponmd when actually on disk.&lt;BR /&gt;Write-behind = Give immediate response when data is in the cache, without waiting for it to hit the disk.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 21 Jan 2007 20:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023920#M609499</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-01-21T20:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023921#M609500</link>
      <description>Thank you, Hein!&lt;BR /&gt;&lt;BR /&gt;You guessed right: we only tested on sata/ata disks so far which have write-caching turned on by default (and we never touched them). After disabling write-caching the test executes much slower on those machines as well.&lt;BR /&gt;&lt;BR /&gt;I checked the disk on the HP-UX system with scsictl and it shows that immediate_report is off.&lt;BR /&gt;&lt;BR /&gt;Thank you, again!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Sun, 21 Jan 2007 20:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023921#M609500</guid>
      <dc:creator>Peter Kovacs 1.0rc</dc:creator>
      <dc:date>2007-01-21T20:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023922#M609501</link>
      <description>Writes were cached by the hard disks in our previous tests. This explains the performance difference.</description>
      <pubDate>Sun, 21 Jan 2007 20:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/performance-problem/m-p/5023922#M609501</guid>
      <dc:creator>Peter Kovacs 1.0rc</dc:creator>
      <dc:date>2007-01-21T20:59:41Z</dc:date>
    </item>
  </channel>
</rss>

