lkml.org 
[lkml]   [1999]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Porting Greg Lehey's rawio.c from FreeBSD to Linux...
Date
>     Now, I understand that normally, Linux does not allow access to raw
> disk devices, but this is a case where I want to test the hardware

The notion of 'raw' disk is foreign to Linux. Its a Unixism. The block device
interface is used instead. That isnt optimised for performance however (ie
heavy readahead etc)

> configuration and the stripe size I've used for our drive array, and I
> want to eliminate any variables that depend on other things like buffer
> cache, etc....

If you want to get an accurate disk/controller benchmark you might want to
get Stephen Tweedie's O_DIRECT patches (ftp.linux.org.uk/pub/sct) which
give you what are logically the same thing - uncached I/O from the disk
itself. My only concern is that if FreeBSD does do a copy through kernel
space for its raw devices you may not be making an appropriate comparison
benchmark for some things as Linux would be going userspace->media


Alan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.088 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site