Hello SuSE folkz, Does somebody know if Linux kernel allows to perform non-buffered I/O on raw disk partitions? In documentation on InnoDB tables it said: By using a raw disk you can on some Unixes perform unbuffered I/O. I assume that it should improve DB performance. Thank you in advance for any thoughts or sources of information. Alex -- MS Windows users should be covered under the Americans with Disabilities Act! --------------> Try Linux and you'll understand why <--------------
* Alex Daniloff (alex@daniloff.com) [020603 23:19]:
Does somebody know if Linux kernel allows to perform non-buffered I/O on raw disk partitions?
I'm not sure what the status is in the vanilla kernel but the SuSE kernel has had it for some time. I think the LVM whitepaper on www.suse.com has something on setting it up. -- -ckm
There is some history there. On Unix systems, block devices are implemented with entries as both a block as well as a character (raw) device. You will see in /dev devices like: crw------- 1 root system 8, 2 Feb 2 2001 /dev/rrz0c brw------- 1 root system 8, 2 Feb 2 2001 /dev/rz0c The raw device is not necessarily unbuffered, but the device driver handles it in a much different manner than as a block device. However, Linus himself did not like the raw device concept. As far as specialized I/O operations are concerned, databases can use varous tools, such as ioctl(2) and fctl(2) to control I/O. On 3 Jun 2002 at 22:19, Alex Daniloff wrote:
Does somebody know if Linux kernel allows to perform non-buffered I/O on raw disk partitions? In documentation on InnoDB tables it said: By using a raw disk you can on some Unixes perform unbuffered I/O. I assume that it should improve DB performance. Thank you in advance for any thoughts or sources of information.
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/
On Tuesday 04 June 2002 15:19, Alex Daniloff wrote:
Hello SuSE folkz, Does somebody know if Linux kernel allows to perform non-buffered I/O on raw disk partitions? In documentation on InnoDB tables it said: By using a raw disk you can on some Unixes perform unbuffered I/O. I assume that it should improve DB performance. Thank you in advance for any thoughts or sources of information. Alex Hi Alex,
There was an extensive thread on this subject on the linux-informix mailing
list a while back. The following is an email sent by Reinhard Habichtsberg on
how to setup raw devices on Linux.
I have not tried to configure raw devices, but hope this information helps.
Also I suggest you do a search on google for "raw devices linux".
----------------------------------------------------------------------------------------
To: "'Linux-Informix-Liste'"
participants (4)
-
Alex Daniloff
-
Christopher Mahmood
-
Graham Smith
-
Jerry Feldman