<?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: How to create dummy 1 GB file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051287#M604346</link>
    <description>&lt;P&gt;Thanks Dennis. It is indeed count=200 and count=1000&lt;/P&gt;</description>
    <pubDate>Sat, 04 May 2013 01:46:55 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2013-05-04T01:46:55Z</dc:date>
    <item>
      <title>How to create dummy IGB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6048015#M604340</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are sitting on HPUX Itanium and we are facing some disk performance issue and exploring a way to create 1G dummy file on different disks and compare the timings. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alok&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 12:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6048015#M604340</guid>
      <dc:creator>Alokbehria</dc:creator>
      <dc:date>2013-05-01T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy IGB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6048075#M604341</link>
      <description>&lt;P&gt;The command you want is 'prealloc'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# prealloc /some/dir/afile 1000000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will create a 1 billion byte file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 13:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6048075#M604341</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2013-05-01T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy IGB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6049205#M604342</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Patric for the help. Will this command create 1G dummy file along with the timings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 11:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6049205#M604342</guid>
      <dc:creator>Alokbehria</dc:creator>
      <dc:date>2013-05-02T11:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy IGB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6049367#M604343</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;Will this command create 1G dummy file along with the timings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand your question. &amp;nbsp;What do you mean "...along with the timings."?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create a file with prealloc it will look something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# prealloc afile 100000000&lt;BR /&gt;# ll afile&lt;BR /&gt;-rw-r--r-- 1 root sys 100000000 May 2 09:23 afile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to know how long it took to create the file you can do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# timex prealloc afile 100000000&lt;/P&gt;&lt;P&gt;real 3.25&lt;BR /&gt;user 0.01&lt;BR /&gt;sys 0.69&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ll afile&lt;BR /&gt;-rw-r--r-- 1 root sys 100000000 May 2 09:25 afile&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 13:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6049367#M604343</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2013-05-02T13:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy IGB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051039#M604344</link>
      <description>&lt;P&gt;prealloc has nothing to do with performance measurements. It simply creates a file with all zeros of the size you requested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to measure simple disk read performance, use dd and specify the raw device file.&lt;/P&gt;&lt;P&gt;Here's an example to read a raw disk for 500MBytes and record the length of time that t took:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MYDISK=/dev/rdsk/c1t0d0
timex dd if=$MYDISK of=/dev/null bs=1024k count=200&lt;BR /&gt;200+0 records in&lt;BR /&gt;200+0 records out&lt;BR /&gt;&lt;BR /&gt;real&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.46&lt;BR /&gt;user&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00&lt;BR /&gt;sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then take the record count (count=200) and divide by the "real" seconds (wall clock time) to arrive at the MB per second:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;200/5.46=37.03 MBytes/sec&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now for all the caveats...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a serial read, no seeking except track to track. If this is a disk array, then it is more of a measure of the RAID method, read-ahead settings and cache size, rather than sustainable read performance. And unless the disk is quiet (no other I/O from other processes or hosts), then it is a shared performance value and would have to be repeated under different disk loads. Note that count=200 is a low number (200 MBytes)...use it to get started. Then increase it to count=1000 (1 GByte) to get a more average value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a diskperf script that simplifies this task immensely.&lt;/P&gt;&lt;P&gt;Usage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; diskperf.sh &amp;nbsp; &amp;lt;MB&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;disk&amp;gt;&amp;nbsp;&amp;nbsp; [ &amp;lt;disk&amp;gt; ... ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# diskperf.sh 200 c1t0d0&lt;BR /&gt;20130503.133202 /dev/rdsk/c1t0d0 (vg00): 200 MB in 5.4 secs (200 recs @ 1024 KB) = 37.0MB/sec&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or test several disks with one command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# diskperf.sh 200 c1t0d0 c8t0d0 c17t0d0&lt;BR /&gt;20130503.134307 /dev/rdsk/c1t0d0 (vg00): 200 MB in 5.4 secs (200 recs @ 1024 KB) = 37.0MB/sec&lt;BR /&gt;20130503.134311 /dev/rdsk/c8t0d0 (vgbig): 200 MB in 3.8 secs (200 recs @ 1024 KB) = 52.6MB/sec&lt;BR /&gt;20130503.134313 /dev/rdsk/c17t0d0 (vgstore): 200 MB in 2.3 secs (200 recs @ 1024 KB) = 86.9MB/sec&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2013 01:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051039#M604344</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2013-05-04T01:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy 1 GB file?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051117#M604345</link>
      <description>&lt;P&gt;&amp;gt;bs=200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you meant count=200.&amp;nbsp; You can correct them by using Post Options &amp;gt; Edit Reply.&lt;/P&gt;&lt;P&gt;(And also fix the subject. :-)&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2013 02:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051117#M604345</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-05-04T02:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy 1 GB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051287#M604346</link>
      <description>&lt;P&gt;Thanks Dennis. It is indeed count=200 and count=1000&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2013 01:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-dummy-igb-file/m-p/6051287#M604346</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2013-05-04T01:46:55Z</dc:date>
    </item>
  </channel>
</rss>

