<?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 disk wipe performance question. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734158#M608657</link>
    <description>I'm using the method that was posted on another thread to do a disk wipe.&lt;BR /&gt;&lt;BR /&gt;The line that writes the zeros is:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/dev/rdsk/$1 bs=1024k&lt;BR /&gt;&lt;BR /&gt;The line trhat writes ones is:&lt;BR /&gt;tr '\000' '\377' &amp;lt; /dev/zero |dd bs=1024k of=/dev/rdsk/$1&lt;BR /&gt;&lt;BR /&gt;When writing the zeros I'm getting 35MB/s and each disk write is about 256KB.&lt;BR /&gt;&lt;BR /&gt;When writing the ones I'm getting 2MB/s and each disk write is about 8KB.&lt;BR /&gt;&lt;BR /&gt;Can someone suggest a change to the line that writes the ones which could improve its performance?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Jan 2011 14:59:10 GMT</pubDate>
    <dc:creator>Bill Costigan</dc:creator>
    <dc:date>2011-01-05T14:59:10Z</dc:date>
    <item>
      <title>disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734158#M608657</link>
      <description>I'm using the method that was posted on another thread to do a disk wipe.&lt;BR /&gt;&lt;BR /&gt;The line that writes the zeros is:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/dev/rdsk/$1 bs=1024k&lt;BR /&gt;&lt;BR /&gt;The line trhat writes ones is:&lt;BR /&gt;tr '\000' '\377' &amp;lt; /dev/zero |dd bs=1024k of=/dev/rdsk/$1&lt;BR /&gt;&lt;BR /&gt;When writing the zeros I'm getting 35MB/s and each disk write is about 256KB.&lt;BR /&gt;&lt;BR /&gt;When writing the ones I'm getting 2MB/s and each disk write is about 8KB.&lt;BR /&gt;&lt;BR /&gt;Can someone suggest a change to the line that writes the ones which could improve its performance?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2011 14:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734158#M608657</guid>
      <dc:creator>Bill Costigan</dc:creator>
      <dc:date>2011-01-05T14:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734159#M608658</link>
      <description>&lt;!--!*#--&gt;Looks like the second line is slow because all the ones need to be dynamically generated. I'd try to write them into a file of limited length first, then copy that to the target disk as many times as needed, i. e., something like this:&lt;BR /&gt;&lt;BR /&gt;tr '\000' '\377' &amp;lt; /dev/zero | dd bs=10240k of=/tmp/onesfile count=1&lt;BR /&gt;&lt;BR /&gt;i=0&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;    dd if=/tmp/onesfile of=/dev/rdsk/$1 bs=10240k count=1 seek=$i&lt;BR /&gt;    if [[ $? != 0 ]]&lt;BR /&gt;    then&lt;BR /&gt;        break&lt;BR /&gt;    fi&lt;BR /&gt;    i=`expr $i + 1`&lt;BR /&gt;done</description>
      <pubDate>Wed, 05 Jan 2011 15:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734159#M608658</guid>
      <dc:creator>Joachim Noffke</dc:creator>
      <dc:date>2011-01-05T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734160#M608659</link>
      <description>&amp;gt;Can someone suggest a change to the line that writes the ones which could improve its performance?&lt;BR /&gt;&lt;BR /&gt;What happens to the timing if you use:&lt;BR /&gt;tr '\000' '\000' &amp;lt; /dev/zero | dd bs=1024k of=/dev/rdsk/$1&lt;BR /&gt;&lt;BR /&gt;Note the use of a pipe will be slow.  Why not write a program to do the writes with writev(2).&lt;BR /&gt;&lt;BR /&gt;Or better yet use /dev/random.</description>
      <pubDate>Wed, 05 Jan 2011 15:39:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734160#M608659</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-05T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734161#M608660</link>
      <description>That is a good suggestion.  However, I also use this method to wipe the last disk on the server (e.g. vg00)  &lt;BR /&gt;&lt;BR /&gt;In that case I will not have a file to read from.  Perhaps a memory based file could work.  &lt;BR /&gt;&lt;BR /&gt;I think the issue might be the small write sizes instead of the tr command.  Running Glance shows the CPU utilization low but the disk at 100% with 240 IO/sec.</description>
      <pubDate>Wed, 05 Jan 2011 15:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734161#M608660</guid>
      <dc:creator>Bill Costigan</dc:creator>
      <dc:date>2011-01-05T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734162#M608661</link>
      <description>&amp;gt;In that case I will not have a file to read from. &lt;BR /&gt;&lt;BR /&gt;Where do you think the shell and dd come from?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I think the issue might be the small write sizes instead of the tr command.&lt;BR /&gt;&lt;BR /&gt;That's why changing the tr(1) parms would indicate that.&lt;BR /&gt;Also tusc would show you the sizes of the writes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Running Glance shows the CPU utilization low but the disk at 100% with 240 IO/sec.&lt;BR /&gt;&lt;BR /&gt;This seems strange.  I would think dd(1) would still do those 1 Mb writes.&lt;BR /&gt;&lt;BR /&gt;But perhaps you need to do reblocking:&lt;BR /&gt;tr ... | dd ibs=8k obs=1024k of=/dev/rdsk/$1</description>
      <pubDate>Wed, 05 Jan 2011 15:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734162#M608661</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-05T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734163#M608662</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks.  I will try the reblocking.  As for where the dd and script comes from - The last time I ran this, it appeared that everything I needed got into memory and stayed there.  Perhaps the same would happen to your ones file.&lt;BR /&gt;&lt;BR /&gt;Even after the vg00 disk was completely wiped the system stayed up and I could still do some commands.  Of course whenever I tied to access the disk I got a filesystem error and the system failed to reboot.</description>
      <pubDate>Wed, 05 Jan 2011 16:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734163#M608662</guid>
      <dc:creator>Bill Costigan</dc:creator>
      <dc:date>2011-01-05T16:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734164#M608663</link>
      <description>&amp;gt;Perhaps the same would happen to your ones file.&lt;BR /&gt;&lt;BR /&gt;You mean Joachim's.  My write-a-C program would just use a large buffer and hopefully it would also stay in memory.</description>
      <pubDate>Wed, 05 Jan 2011 16:37:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734164#M608663</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-05T16:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: disk wipe performance question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734165#M608664</link>
      <description>Using the obs=1024k is at least 5 times faster.&lt;BR /&gt;&lt;BR /&gt;Thank you very much.</description>
      <pubDate>Wed, 05 Jan 2011 16:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-wipe-performance-question/m-p/4734165#M608664</guid>
      <dc:creator>Bill Costigan</dc:creator>
      <dc:date>2011-01-05T16:42:35Z</dc:date>
    </item>
  </channel>
</rss>

