<?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 raw vs filesystem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576738#M800182</link>
    <description>hi all,&lt;BR /&gt;&lt;BR /&gt;   I have gone through a series of statistics in my 8way HP server and found out that the time it takes when writing to a Raw device is 90 times longer compared when wrirting to a filesystem. I have try it on LOCAL drive and EMC subsystem and they have the same result. Could somebody till me why this happen? &lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;joks&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Sep 2001 04:26:35 GMT</pubDate>
    <dc:creator>jok llamera</dc:creator>
    <dc:date>2001-09-07T04:26:35Z</dc:date>
    <item>
      <title>raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576738#M800182</link>
      <description>hi all,&lt;BR /&gt;&lt;BR /&gt;   I have gone through a series of statistics in my 8way HP server and found out that the time it takes when writing to a Raw device is 90 times longer compared when wrirting to a filesystem. I have try it on LOCAL drive and EMC subsystem and they have the same result. Could somebody till me why this happen? &lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;joks&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 04:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576738#M800182</guid>
      <dc:creator>jok llamera</dc:creator>
      <dc:date>2001-09-07T04:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576739#M800183</link>
      <description>I think it really depends on how we access it. It bypasses the kernel buffers and provides rather direct access to the device. Oracle does it's own caching so will have more control over the timing of the I/O and hence will benefit from it.&lt;BR /&gt;&lt;BR /&gt;By the Way, how did you test it?&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 07 Sep 2001 05:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576739#M800183</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-07T05:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576740#M800184</link>
      <description>Your results are the complete opposite to what would be expected. Accessing raw volumes should 2+ times faster than accessing a filesystem.&lt;BR /&gt;&lt;BR /&gt;Heres and example from one of our servers;&lt;BR /&gt;&lt;BR /&gt;time dd if=/dev/vgemc/rlvol1 of=/dev/null bs=1024k count=50&lt;BR /&gt;50+0 records in&lt;BR /&gt;50+0 records out&lt;BR /&gt;real        1.3&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;time dd if=/dev/vgemc/lvol1 of=/dev/null bs=1024k count=50 &lt;BR /&gt;50+0 records in&lt;BR /&gt;50+0 records out&lt;BR /&gt;real        8.9&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         2.8&lt;BR /&gt;&lt;BR /&gt;Raw was the first test, 1.3s, and nonraw the 2nd, 8.9s. Thats what you should get. Exactly how did you do your tests ??&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 06:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576740#M800184</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-07T06:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576741#M800185</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;system write/read raw devices in characters and to filesystems in terms of blocks. so characters read/write should be faster than blocks. i don't know why it is happening reverse in your case.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 07:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576741#M800185</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-09-07T07:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576742#M800186</link>
      <description>hi fellas,&lt;BR /&gt;   I use timex and have write using dd to Raw and filesystem. About the reverse proportion; that is what Im asking you guys if you have any idea..coz I am also confused..&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 07:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576742#M800186</guid>
      <dc:creator>jok llamera</dc:creator>
      <dc:date>2001-09-07T07:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576743#M800187</link>
      <description>hi fellas,&lt;BR /&gt;   I use timex and have write using dd to Raw and filesystem. About the reverse proportion; that is what Im asking you guys if you have any idea..coz I am also confused..&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;joks&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 07:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576743#M800187</guid>
      <dc:creator>jok llamera</dc:creator>
      <dc:date>2001-09-07T07:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576744#M800188</link>
      <description>&lt;BR /&gt;an you send us the exact output from your tests - command and results ? Then we can take a look at it.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2001 07:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576744#M800188</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-07T07:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576745#M800189</link>
      <description>Just a suggestion, but have you tried enabling async i/o in the kernel?  That might help speed things up.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Fri, 07 Sep 2001 08:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576745#M800189</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-07T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576746#M800190</link>
      <description>attached statistics..</description>
      <pubDate>Sat, 08 Sep 2001 02:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576746#M800190</guid>
      <dc:creator>jok llamera</dc:creator>
      <dc:date>2001-09-08T02:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576747#M800191</link>
      <description>Hi Joks,&lt;BR /&gt;&lt;BR /&gt;well, your stats document proves what youre saying about writing to raw being slower than a filesystem. Still no clues as to why.&lt;BR /&gt;&lt;BR /&gt;Can you please provide the exact commands you do to test it ?&lt;BR /&gt;&lt;BR /&gt;Can you try a raw dd from the lvols (raw and filesystem) as listed in an earlier reply of mine and lets see the times from that.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Stefan&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Sep 2001 12:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576747#M800191</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-08T12:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576748#M800192</link>
      <description>Hi Jok:&lt;BR /&gt;&lt;BR /&gt;On newer boxes and especially under HP-UX 11.11, I find that the differences in I/O rates between raw and cooked are typically very small and typically cooked does outperform raw with dd based tests. I've never seen rates that differ as much as yours and I suspect some flaw in your testing method. You really need to look at the transfer rates with Glance.&lt;BR /&gt;&lt;BR /&gt;I should note that Stefan's test is bogus in that it is using /dev/null and thus is reading 0 bytes and creating a zero length file. A better test is to use /dev/zero which will produce an unlimited supply of ASCII NUL's.&lt;BR /&gt;&lt;BR /&gt;To do this test fairly, you have to make sure that the raw device is stripped like the cooked filesystem. For example, if you are writing to a cooked file system whose underlying logical volume is actually a stripped device and comparing that to a single raw disk then you will get very skewed results.&lt;BR /&gt;You have to make sure that you are comparing apples to apples.&lt;BR /&gt;&lt;BR /&gt;The other thing to consider under oracle is that you are very rarely doing sequential I/O so that your tests should take random I/O into account. Typically the real advantage to using raw i/o is Oracle applications is the avoidance of double-buffering in both the SGA and the UNIX buffer cache. It is generally better to use raw/io and reduce buffer cache and use the freed memory to increase the SGA where ORACLE really likes to do its buffering.&lt;BR /&gt;By far the easist way to test both raw and cooked I/O is to use the OnlineJFS mount options convosync=direct,mincache=direct,delaylog,nodatainlog. These options bypass the UNIX buffer cache and I have never been able to measure a performance difference between this and true raw i/o. To convert to cooked i/o, remove the convosync=direct,mincache=direct options and you are good to go.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Sep 2001 21:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576748#M800192</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-08T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576749#M800193</link>
      <description>&lt;BR /&gt;Clay said;&lt;BR /&gt;&lt;BR /&gt;"note that Stefan's test is bogus in that it is using /dev/null and thus is reading 0 bytes and creating a zero length file."&lt;BR /&gt;&lt;BR /&gt;Clay - I hope you are going to apoligise for saying the above when you are clearly mistaken. Read my earlier reply in full and see the dd results - it is in fact reading 50x1024 blocks !! Its not writing any but thats because its a read test, not a write test.&lt;BR /&gt;&lt;BR /&gt;I hope in future you will read questions and replies properly before claiming other peoples replies are bogus!&lt;BR /&gt;&lt;BR /&gt;Stefan&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2001 08:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576749#M800193</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-11T08:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576750#M800194</link>
      <description>The times they are a-changing,&lt;BR /&gt;&lt;BR /&gt;well, bad times, really, if our kings are fighting ;-)&lt;BR /&gt;&lt;BR /&gt;Stefan, you could use output redirection for "dd" instead&lt;BR /&gt;of "of=" to make reading easier for Clay;&lt;BR /&gt;Clay, I do know a place where they sell glasses;&lt;BR /&gt;&lt;BR /&gt;...Wodisch, trying to use the "clown hat" to calm our&lt;BR /&gt;kings a little bit...&lt;BR /&gt;Dear kings, we love you all!</description>
      <pubDate>Tue, 11 Sep 2001 10:08:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576750#M800194</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-11T10:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576751#M800195</link>
      <description>hi all, I may clarify, I do the test by writing to it only.&lt;BR /&gt;&lt;BR /&gt;For RAW;&lt;BR /&gt;timex dd if=/tmp/sample_file of=/dev/vgname/rtest_lv bs=8192&lt;BR /&gt;&lt;BR /&gt;For Filesystem, I have convert LV to vxfs then mount it with delaylog option only.&lt;BR /&gt;timex dd if=/tmp/sample_file of=/tmp/new_mounted_dir/sample_file bs=8192&lt;BR /&gt;&lt;BR /&gt;I will try the mount option thing..to simulate no caching.&lt;BR /&gt;&lt;BR /&gt;joks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2001 13:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576751#M800195</guid>
      <dc:creator>jok llamera</dc:creator>
      <dc:date>2001-09-11T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576752#M800196</link>
      <description>Hi Joks,&lt;BR /&gt;&lt;BR /&gt;How big are your sample files which you are using ? Do get meaningful results you need to use files from 50MB to 100MB and when you do the tests only do them once as for 2nd and subsequent runs they are in cache somewhere and thus faster.&lt;BR /&gt;&lt;BR /&gt;eg.&lt;BR /&gt;&lt;BR /&gt;For testing a mounted filesystem use;&lt;BR /&gt;&lt;BR /&gt;prealloc &lt;FILE&gt; 50000000&lt;BR /&gt;&lt;BR /&gt;Then to test out copy times only do this test once;&lt;BR /&gt;&lt;BR /&gt;time cp &lt;FILE&gt; /&lt;FILESYSTEM&gt;&lt;BR /&gt;&lt;BR /&gt;Then divide 50MB by result in seconds (should be around 1-2 secs) to get transfer rate. If you repeat the cp multiple times it will be faster on all runs after the first one as now the file is in Unix buffer cache, so if you want to repeat rm the file, prealloc a new one at a different size and then time cp it.&lt;BR /&gt;&lt;BR /&gt;As for testing out raw filesystem times, using dd from a file to a raw lvol (unmounted) gives an I/O error every time - thus it is not a good test to do. Instead raw dd from one lvol to another - and ensure each lvol is on a different disk and controller path.&lt;BR /&gt;Then time the dd (do at least 50-100MB) and again, only repeat once as for 2nd and subsequent runs the data is in cache on your disk subsystem so results not accurate. Divide copy size by results in seconds, and im sure you will get a faster transfer rate. Ive never seen a site/setup where raw dd is slower than doing a cp !!&lt;/FILESYSTEM&gt;&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Tue, 11 Sep 2001 14:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576752#M800196</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-11T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576753#M800197</link>
      <description>Jok:&lt;BR /&gt;&lt;BR /&gt;Your test is skewed by trying to read from a filesystem and then write to a raw device. A much better test is to read directly from a pseudo device (/dev/zero) and thus get one component of the i/o removed so that you are only testing the write component of disk i/o.&lt;BR /&gt;I would do something like this:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero bs=64k count=256 of=/dev/rdsk/c3t5d0 (or /var/tmp/myfile for cooked).&lt;BR /&gt;If you do not have a /dev/zero device create one&lt;BR /&gt;by mknod /dev/zero c 3 0x000003.&lt;BR /&gt;&lt;BR /&gt;Stefan:&lt;BR /&gt;You are correct, I mentally interposed Jok's request for a write test and your read test. If one were testing read i/o rates, /dev/null is the correct device, but for testing write i/o rates as Jok requested, /dev/zero is the device to use.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2001 15:09:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576753#M800197</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-11T15:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576754#M800198</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have the same problem in my RAC environment.&lt;BR /&gt;I did the tests using this script:&lt;BR /&gt;&lt;BR /&gt;echo "WRITE test:"&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Filesystem:"&lt;BR /&gt;time dd if=/dev/zero bs=64k count=256 of=/daniel/write_test&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Raw Device:"&lt;BR /&gt;time dd if=/dev/zero bs=64k count=256 of=/dev/vg00/rlv_testedaniel_raw&lt;BR /&gt;echo ""&lt;BR /&gt;echo "READ test:"&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Filesystem:"&lt;BR /&gt;time dd if=/dev/vg00/lv_testedaniel bs=64k count=256 of=/dev/null&lt;BR /&gt;echo ""&lt;BR /&gt;echo "Raw Device:"&lt;BR /&gt;time dd if=/dev/vg00/rlv_testedaniel bs=64k count=256 of=/dev/null&lt;BR /&gt;&lt;BR /&gt;Script result as follow:&lt;BR /&gt;&lt;BR /&gt;WRITE test:&lt;BR /&gt;&lt;BR /&gt;Filesystem:&lt;BR /&gt;256+0 records in&lt;BR /&gt;256+0 records out&lt;BR /&gt;&lt;BR /&gt;real        0.1&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;Raw Device:&lt;BR /&gt;256+0 records in&lt;BR /&gt;256+0 records out&lt;BR /&gt;&lt;BR /&gt;real        2.0&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;READ test:&lt;BR /&gt;&lt;BR /&gt;Filesystem:&lt;BR /&gt;256+0 records in&lt;BR /&gt;256+0 records out&lt;BR /&gt;&lt;BR /&gt;real        0.8&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.1&lt;BR /&gt;&lt;BR /&gt;Raw Device:&lt;BR /&gt;256+0 records in&lt;BR /&gt;256+0 records out&lt;BR /&gt;&lt;BR /&gt;real        0.4&lt;BR /&gt;user        0.0&lt;BR /&gt;sys         0.0&lt;BR /&gt;&lt;BR /&gt;My environment:&lt;BR /&gt;&lt;BR /&gt;Server: RP7410&lt;BR /&gt;OS: HPUX B.11.11&lt;BR /&gt;Storage: VA7400 (Autoraid)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TKS,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Daniel Galante</description>
      <pubDate>Sat, 06 Dec 2003 14:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576754#M800198</guid>
      <dc:creator>Daniel Galante</dc:creator>
      <dc:date>2003-12-06T14:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: raw vs filesystem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576755#M800199</link>
      <description>This thread, based on my question will be helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=234347" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=234347&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 06 Dec 2003 18:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-vs-filesystem/m-p/2576755#M800199</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-12-06T18:32:03Z</dc:date>
    </item>
  </channel>
</rss>

