- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: raw vs filesystem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 09:26 PM
09-06-2001 09:26 PM
raw vs filesystem
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?
regards,
joks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 10:02 PM
09-06-2001 10:02 PM
Re: raw vs filesystem
By the Way, how did you test it?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 11:44 PM
09-06-2001 11:44 PM
Re: raw vs filesystem
Heres and example from one of our servers;
time dd if=/dev/vgemc/rlvol1 of=/dev/null bs=1024k count=50
50+0 records in
50+0 records out
real 1.3
user 0.0
sys 0.0
time dd if=/dev/vgemc/lvol1 of=/dev/null bs=1024k count=50
50+0 records in
50+0 records out
real 8.9
user 0.0
sys 2.8
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 ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:03 AM
09-07-2001 12:03 AM
Re: raw vs filesystem
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:09 AM
09-07-2001 12:09 AM
Re: raw vs filesystem
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:10 AM
09-07-2001 12:10 AM
Re: raw vs filesystem
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..
thanks
joks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 12:35 AM
09-07-2001 12:35 AM
Re: raw vs filesystem
an you send us the exact output from your tests - command and results ? Then we can take a look at it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 01:44 AM
09-07-2001 01:44 AM
Re: raw vs filesystem
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2001 07:36 PM
09-07-2001 07:36 PM
Re: raw vs filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2001 05:22 AM
09-08-2001 05:22 AM
Re: raw vs filesystem
well, your stats document proves what youre saying about writing to raw being slower than a filesystem. Still no clues as to why.
Can you please provide the exact commands you do to test it ?
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.
Cheers,
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2001 02:29 PM
09-08-2001 02:29 PM
Re: raw vs filesystem
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.
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.
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.
You have to make sure that you are comparing apples to apples.
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.
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.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 01:08 AM
09-11-2001 01:08 AM
Re: raw vs filesystem
Clay said;
"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."
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.
I hope in future you will read questions and replies properly before claiming other peoples replies are bogus!
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 03:08 AM
09-11-2001 03:08 AM
Re: raw vs filesystem
well, bad times, really, if our kings are fighting ;-)
Stefan, you could use output redirection for "dd" instead
of "of=" to make reading easier for Clay;
Clay, I do know a place where they sell glasses;
...Wodisch, trying to use the "clown hat" to calm our
kings a little bit...
Dear kings, we love you all!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 06:41 AM
09-11-2001 06:41 AM
Re: raw vs filesystem
For RAW;
timex dd if=/tmp/sample_file of=/dev/vgname/rtest_lv bs=8192
For Filesystem, I have convert LV to vxfs then mount it with delaylog option only.
timex dd if=/tmp/sample_file of=/tmp/new_mounted_dir/sample_file bs=8192
I will try the mount option thing..to simulate no caching.
joks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 07:25 AM
09-11-2001 07:25 AM
Re: raw vs filesystem
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.
eg.
For testing a mounted filesystem use;
prealloc
Then to test out copy times only do this test once;
time cp
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.
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.
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 !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 08:09 AM
09-11-2001 08:09 AM
Re: raw vs filesystem
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.
I would do something like this:
dd if=/dev/zero bs=64k count=256 of=/dev/rdsk/c3t5d0 (or /var/tmp/myfile for cooked).
If you do not have a /dev/zero device create one
by mknod /dev/zero c 3 0x000003.
Stefan:
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.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2003 06:18 AM
12-06-2003 06:18 AM
Re: raw vs filesystem
I have the same problem in my RAC environment.
I did the tests using this script:
echo "WRITE test:"
echo ""
echo "Filesystem:"
time dd if=/dev/zero bs=64k count=256 of=/daniel/write_test
echo ""
echo "Raw Device:"
time dd if=/dev/zero bs=64k count=256 of=/dev/vg00/rlv_testedaniel_raw
echo ""
echo "READ test:"
echo ""
echo "Filesystem:"
time dd if=/dev/vg00/lv_testedaniel bs=64k count=256 of=/dev/null
echo ""
echo "Raw Device:"
time dd if=/dev/vg00/rlv_testedaniel bs=64k count=256 of=/dev/null
Script result as follow:
WRITE test:
Filesystem:
256+0 records in
256+0 records out
real 0.1
user 0.0
sys 0.0
Raw Device:
256+0 records in
256+0 records out
real 2.0
user 0.0
sys 0.0
READ test:
Filesystem:
256+0 records in
256+0 records out
real 0.8
user 0.0
sys 0.1
Raw Device:
256+0 records in
256+0 records out
real 0.4
user 0.0
sys 0.0
My environment:
Server: RP7410
OS: HPUX B.11.11
Storage: VA7400 (Autoraid)
TKS,
Daniel Galante
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2003 10:32 AM
12-06-2003 10:32 AM
Re: raw vs filesystem
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=234347
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com