<?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: very poor performance, prealloc command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428220#M355412</link>
    <description>I ran prealloc and mkfile on local root mirrored disks. HP and Sun both takes between 10-12 seconds.&lt;BR /&gt;&lt;BR /&gt;cp takes about 14 seconds on each system.</description>
    <pubDate>Fri, 29 May 2009 12:23:59 GMT</pubDate>
    <dc:creator>Rajeev jain</dc:creator>
    <dc:date>2009-05-29T12:23:59Z</dc:date>
    <item>
      <title>very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428204#M355396</link>
      <description>I ran the prealloc command "$ time prealloc test $((1000*1024*1024))" to write a 1GB file on RAID-10 internal drives and on SAN drives (8GB cache + RAID5), the response time I received were very unsatisfactory. The local disks writes completed in 10 seconds and SAN disk in 30 seconds. I have a Sun server connected to the same RAID group which writes a 1GB file in 8 seconds. These systems have no aplication OR database running on them.&lt;BR /&gt;&lt;BR /&gt;HP support has pretty much raised their hand as they couldn't find any errors.&lt;BR /&gt;&lt;BR /&gt;I have a rx3600 with Hitachi AMS200 Storage with 2 X 2GB FCs.&lt;BR /&gt;&lt;BR /&gt;I would highly appreciate if someone could post similar results from their environment and post their hardware config to the level of detail I have listed above.&lt;BR /&gt;&lt;BR /&gt;If anyone has experienced a similar issue and know of any suggestion would be appreciated as well but I am really interested in knowing the result of prealloc command.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 00:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428204#M355396</guid>
      <dc:creator>Rajeev jain</dc:creator>
      <dc:date>2009-05-28T00:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428205#M355397</link>
      <description>prealloc is probably the slowest disk writing program I have ever seen. There is nothing to fix -- that's the way it works (or crawls). It proves the concept that asking HP-UX to run faster doesn't solve badly written code. Use dd and /dev/zero like this:&lt;BR /&gt; &lt;BR /&gt;writing:&lt;BR /&gt;timex dd if=/dev/zero of=/var/tmp/test bs=1024k count=1000&lt;BR /&gt; &lt;BR /&gt;reading:&lt;BR /&gt;timex dd if=/dev/rdsk/cZZtYYdXX of=/dev/null bs=1024k count=1000&lt;BR /&gt; &lt;BR /&gt;Note that dd is by far the fastest method to read or write (as long as you override the default 512byte block size) but is a lousy test for performance, especially for smart disks (RAID, arrays, virtualized storage) as dd is single threaded. Only one CPU can run the code and only one channel will get through to the disk. And of course, large cache sizes in arrays will make the measurement unstable, that is, the first run will be much longer than subsequent runs.&lt;BR /&gt; &lt;BR /&gt;A much better test is to run 10 or 20 copies, or run the xdd freeware program to generate multiple tasks.</description>
      <pubDate>Thu, 28 May 2009 01:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428205#M355397</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-05-28T01:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428206#M355398</link>
      <description>prealloc was my first test. I ran $time cp test test1", whereas test=1GB.&lt;BR /&gt;&lt;BR /&gt;On HP it takes little over 2 mins and on sun about 15 seconds.&lt;BR /&gt;&lt;BR /&gt;I ran dd which is shows poor performance compare to prealloc.&lt;BR /&gt;&lt;BR /&gt;It would be very helpful if you could run this in your environment so I have something to compare.&lt;BR /&gt;&lt;BR /&gt;NESTER:root(/vm/guest/kalimdor)# timex dd if=/dev/zero of=/vm/guest/kalimdor/test bs=1024k count=1000&lt;BR /&gt;1000+0 records in&lt;BR /&gt;1000+0 records out&lt;BR /&gt;&lt;BR /&gt;real       45.75&lt;BR /&gt;user        0.00&lt;BR /&gt;sys         0.16&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 02:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428206#M355398</guid>
      <dc:creator>Rajeev jain</dc:creator>
      <dc:date>2009-05-28T02:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428207#M355399</link>
      <description>&lt;BR /&gt;prealloc is a utility command and it may, or might not have been implemented as a high-performance command. It stated goal is NOT to write fast, but to create a file optimized for fast sequential reads and writes. It is probaly using SYNC commands to garantuee the IOs made it out the the storage and the storage actually allocated disk chunks fro 'smart' controllers like and EVA which only promiss space, but postpone allocation.&lt;BR /&gt;&lt;BR /&gt;For prealloc only the end goal counts, not the path!&lt;BR /&gt;&lt;BR /&gt;I suspect you are using prealloc as a method to evaluate the storage / filesystem performance potential. Correct? &lt;BR /&gt;As you may have discovered this is a treacherous method. To only proper way to measure performance it under actual load. Anything else may or might not hit or avoid good or bad attributes. &lt;BR /&gt;&lt;BR /&gt;Surely it does not matter how fast you 'dd' or prealloc or tar or xyz goes.. unless that's all your application is doing. &lt;BR /&gt;&lt;BR /&gt;Now I'll admit that the behavior would concern me also, but I'd be more inclined to look for explanations and alternatives and label it 'poor performance'.&lt;BR /&gt;&lt;BR /&gt;Things I would check &lt;BR /&gt;- comparative DD results with if=/dev/zero for : bs=8k count = 128000 and for: bs=1024k count=1000... but 1GB is not enough!&lt;BR /&gt;- compare with RAW IO&lt;BR /&gt;- scsi queue_depth settings&lt;BR /&gt;- file system fragmentation ( only test on a clean file-system )&lt;BR /&gt;- LVM settings... just a single PV I hope?&lt;BR /&gt;&lt;BR /&gt;On the SUN side... &lt;BR /&gt;&lt;BR /&gt;When the pre-allocate returns, is all the IO actually done? (sync).&lt;BR /&gt;&lt;BR /&gt;For example when i use a simple 'time dd' to write 1GB, that finished in 3 seconds. That is, the comamdn returns. But the actual IO still has to start! Looking with glance, the 'u' page. I can see the Io kick in several seconds later... for a minute long (slow single drive).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; knowing the result of prealloc command.&lt;BR /&gt;&lt;BR /&gt;On a single, clean U160 drive on my RX2600 &lt;BR /&gt;# time prealloc /blah/test.tmp  "$((1000*1024*1024))"&lt;BR /&gt;real     1:04.5&lt;BR /&gt;&lt;BR /&gt;And GLANCE shows the same IO all along while busy, which drops to null when done, Unlike the prior DD experiment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel ( at gmail dot com )&lt;BR /&gt;HvdH Performance Consulting.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 02:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428207#M355399</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-28T02:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428208#M355400</link>
      <description>Did you run dd and prealloc in the same directory?</description>
      <pubDate>Thu, 28 May 2009 02:31:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428208#M355400</guid>
      <dc:creator>Rajeev jain</dc:creator>
      <dc:date>2009-05-28T02:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428209#M355401</link>
      <description>Hmm, I don't understand that question.&lt;BR /&gt;Directory is utterly irrelevant.&lt;BR /&gt;&lt;BR /&gt;But yes i did run them on the same file system, which is what matters.&lt;BR /&gt;&lt;BR /&gt;And I did pre-delete the file before re-running&lt;BR /&gt;&lt;BR /&gt;Also, I ofcourse had 4GB of filesystem cache.&lt;BR /&gt;&lt;BR /&gt;Did you check the Sun cache and HP cache settings?&lt;BR /&gt;&lt;BR /&gt;When I trimmed the filecache down to min=200MB, max=250MB, than the very same dd on the very same directory ( :-) ) took 40 seconds, with almost no IO after the dd command returned.&lt;BR /&gt;&lt;BR /&gt;I'm sure you can figure out your lesson from there.&lt;BR /&gt;&lt;BR /&gt;Hein.&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>Thu, 28 May 2009 02:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428209#M355401</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-28T02:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428210#M355402</link>
      <description>&amp;gt;Hein: prealloc is a utility command and it may, or might not have been implemented as a high-performance command.&lt;BR /&gt;&lt;BR /&gt;It calls prealloc(2) and that writes 8Kb (the filesystem blocksize), chunks, then fsync.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It is probably using SYNC commands&lt;BR /&gt;&lt;BR /&gt;Yes, one fsync(2) at the end.</description>
      <pubDate>Thu, 28 May 2009 05:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428210#M355402</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-28T05:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428211#M355403</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Maybe an OS patch will help with malloc.&lt;BR /&gt;&lt;BR /&gt;Memory leak detector:&lt;BR /&gt;&lt;A href="http://www.hpux.ws/?p=8" target="_blank"&gt;http://www.hpux.ws/?p=8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Performance monitor scripts&lt;BR /&gt;&lt;A href="http://www.hpux.ws/?p=6" target="_blank"&gt;http://www.hpux.ws/?p=6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 28 May 2009 07:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428211#M355403</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-28T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428212#M355404</link>
      <description>prealloc is better than dd on the fact it writes 8kb blocks from kernel, without needing to copy data to user level. It is a syscall.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You probably will need to look at the queues length of your FC, the number of path  to the lun.&lt;BR /&gt;&lt;BR /&gt;But you should pursue with support and ask them to elevate.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 09:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428212#M355404</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-05-28T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428213#M355405</link>
      <description>&amp;gt;&amp;gt; But you should pursue with support and ask them to elevate.&lt;BR /&gt;&lt;BR /&gt;WHY? &lt;BR /&gt;There is nothing broken except the end user expectation. Hire a consultant yes, but support no. &lt;BR /&gt;There is a misguided belief that a simple system tool can provide useful performance information accross vendors without understanding of all the parameters involved. Specifically the size of the file system cache was not mentioned, yet is critical for dd experiments.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;just a thought... how does the filesystem cache gets flushed left on its own, without fsync instructions? Will strictly write out in order of arrival, sweep low to high, or take a random approach. If it is not ordered, then a single fsync at the end is not good enough to guarantee the intended effect of prealloc. Storage subsystem may end up allocating storge segments for the file out of order.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 10:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428213#M355405</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-28T10:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428214#M355406</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Steven: Maybe an OS patch will help with malloc.&lt;BR /&gt;&lt;BR /&gt;This is isn't 'malloc' [which allocates memory] but _prealloc_ which allocates DISK.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 28 May 2009 10:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428214#M355406</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-28T10:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428215#M355407</link>
      <description>Indeed Hein you are right, they ask a perf consultation to HP support or services, but not for support.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 10:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428215#M355407</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-05-28T10:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428216#M355408</link>
      <description>&amp;gt;Laurent: prealloc is better than dd on the fact it writes 8kb blocks from kernel, without needing to copy data to user level. It is a syscall.&lt;BR /&gt;&lt;BR /&gt;Where do you get this strange idea?  prealloc(2) isn't a syscall.  As tusc shows, it calls write(2) and fsync(2).</description>
      <pubDate>Fri, 29 May 2009 09:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428216#M355408</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-29T09:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428217#M355409</link>
      <description>in fact my mistake comes from the fact it is defined as a syscall prealloc(2) --&amp;gt; 2 means syscalls&lt;BR /&gt;and prealloc vnode operation exist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So I may have made a bad asumption that prealloc(1) was using prealloc(2) syscall.&lt;BR /&gt;&lt;BR /&gt;but indeed libc prealloc is using write/fsync/fseek&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 10:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428217#M355409</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-05-29T10:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428218#M355410</link>
      <description>&amp;gt;Laurent: 2 means syscalls&lt;BR /&gt;&lt;BR /&gt;Yes, intro(2) seems to wave its hands.  But prealloc(2) is a libc function.</description>
      <pubDate>Fri, 29 May 2009 10:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428218#M355410</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-29T10:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428219#M355411</link>
      <description>Thank you all for the input. To move away from the difference between the command used between Sun and HP (prealloc and mkfile), I used cp command this time.&lt;BR /&gt;&lt;BR /&gt;What I wanted to see were the results from your environment.&lt;BR /&gt;&lt;BR /&gt;There is a case sitting with Support and Performance Engineering. &lt;BR /&gt;&lt;BR /&gt;After running a simple cp command within the same file system, HP returns in 2min 6 seconds and Sun in 15 seconds.&lt;BR /&gt;&lt;BR /&gt;There is no app OR database on the servers, these are brand new servers connected to a brand new AMS200 for testing. Both Sun and HP servers have 32GB memory and 4 CPUs.&lt;BR /&gt;The disks/disk group/volume and filesystem is configured exactly the same.&lt;BR /&gt;&lt;BR /&gt;The command used is $timex cp test test1&lt;BR /&gt;Where test=1G file.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 12:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428219#M355411</guid>
      <dc:creator>Rajeev jain</dc:creator>
      <dc:date>2009-05-29T12:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428220#M355412</link>
      <description>I ran prealloc and mkfile on local root mirrored disks. HP and Sun both takes between 10-12 seconds.&lt;BR /&gt;&lt;BR /&gt;cp takes about 14 seconds on each system.</description>
      <pubDate>Fri, 29 May 2009 12:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428220#M355412</guid>
      <dc:creator>Rajeev jain</dc:creator>
      <dc:date>2009-05-29T12:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428221#M355413</link>
      <description>Maybe the test on sun had the input still cached, and hp not yet cached? The test file is _likely_ to have been cached as part of its  creation, but you never know...&lt;BR /&gt;&lt;BR /&gt;Anyway, your new test now measures the time it takes to read a file, as well as write (a copy), as well as measuring the ability of the system to cache that input file and retain it. The test has no control over where the cache stops and the IO starts and without any indication how much time is spend in the reading versus the writting.&lt;BR /&gt;&lt;BR /&gt;Seems to me you took a step further away from reality and relevance. Unless of course the purpose of the system is to copy 1 gb files around. In that case you have constructed a perfect test, and would need to move on to the next phase: understanding what is wrong and fix it.&lt;BR /&gt;&lt;BR /&gt;Did you check the file system cache min/max?&lt;BR /&gt;If you re-read my earlier reply it proved to potentially cause a 10x speed difference.&lt;BR /&gt;&lt;BR /&gt;Due to past experiences, which are no longer valid and never were very valid, a good few HP-UX administrator like to severely cripple their systems by setting those too low. They'd pick values in the 2% - 5% of memory range, notably for systems which are expected to run Oracle.&lt;BR /&gt;&lt;BR /&gt;Admittedly, that should still be enough to suck in a 1 GB file when 32 GB memory is present. But NOT when you also have to read in the input file. Check it (kctune)&lt;BR /&gt;&lt;BR /&gt;Suggestions.&lt;BR /&gt;&lt;BR /&gt;* Measure the reading part ... and load in memory.&lt;BR /&gt;&lt;BR /&gt;- umount /test  # flush cache&lt;BR /&gt;- mount /test&lt;BR /&gt;- time cp /test/file /dev/null  # initial read&lt;BR /&gt;- time cp /test/file /dev/null # from cache?!&lt;BR /&gt;&lt;BR /&gt;* Measure the writing part &lt;BR /&gt;&lt;BR /&gt;- prealloc ?&lt;BR /&gt;- from /dev/zero with dd commands outlined earlier.&lt;BR /&gt;- from a MEMORY file system&lt;BR /&gt;&lt;BR /&gt;* Now measure the cp. twice.&lt;BR /&gt;&lt;BR /&gt;( Dennis, did truss show alternating writes and fsyncs, or one fsync at the end? And how large were the IOs? I know... Ishould just try myself. But if you have it handly ( sorry :-), then please share here or in an Email ).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 12:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428221#M355413</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-29T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428222#M355414</link>
      <description>Hein,&lt;BR /&gt;Your point would be valid if I see r/wr time same on local drives and SAN drives. They are 3 times apart. I dont think the file cache within the OS distinguish between local drives and SAN drives, right?&lt;BR /&gt;&lt;BR /&gt;What make me believe here is that either the paths to the disk are saturated which could be a driver issue OR an issue the cards itself.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Fri, 29 May 2009 13:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428222#M355414</guid>
      <dc:creator>Rajeev jain</dc:creator>
      <dc:date>2009-05-29T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: very poor performance, prealloc command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428223#M355415</link>
      <description>Ah! Good work.&lt;BR /&gt;I missed a step in reading your details.&lt;BR /&gt;Thanks for making it explicit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Your point would be valid if I see r/wr time same on local drives and SAN drives. They are 3 times apart. I dont think the file cache within the OS distinguish between local drives and SAN drives, right?&lt;BR /&gt;&lt;BR /&gt;Absolutely Correct. &lt;BR /&gt;The cache does not discriminate &lt;BR /&gt;(except possibly for RAM disks, and explicitly selected mount options: &lt;A href="http://g4u0419c.houston.hp.com/en/B3921-90010/mount_vxfs.1M.html" target="_blank"&gt;http://g4u0419c.houston.hp.com/en/B3921-90010/mount_vxfs.1M.html&lt;/A&gt; )&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; What make me believe here is that either the paths to the disk are saturated which could be a driver issue OR an issue the cards itself.&lt;BR /&gt;&lt;BR /&gt;I would have to agree and would lean back towards something, potentially hardware, being broken or mis configured.&lt;BR /&gt;&lt;BR /&gt;How about the hp-ux scsi queue_depth? &lt;BR /&gt;&lt;BR /&gt;Any counters on a SAN switch that might help you? &lt;BR /&gt;Any counters on the storage controlled that might help you? Notably queue depth?&lt;BR /&gt;&lt;BR /&gt;Any error/retry accumulators growing?&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 14:16:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/very-poor-performance-prealloc-command/m-p/4428223#M355415</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-29T14:16:55Z</dc:date>
    </item>
  </channel>
</rss>

