We have tested the rawio and o_direct patches from Andrea Arcangeli
with great success, and wondered if they will be part of the next
kernel release, 2.4.4?
So far we have tested these patches on four different systems.
With the latest versions of these patches (rawio-6, o_direct-3)
all systems works perfectly ok. Both with and without O_DIRECT
enabled in big file operations.
The O_DIRECT support really helps performance a lot
for some types of applications. We happen to have such an
application, and we would like to see O_DIRECT
support in the kernel source in the near future.
This would lift Linux to a new level in terms of disk performance
for "self-caching" applications.
A performance test we did on our application shows a huge
improvement, upto 8 times better data read speed with direct-IO.
With buffered IO, the CPU is doing caching most of the time.
I attached a graph showing this performance win using O_DIRECT
versus buffered IO. Each thread reads at a random offset a random
amount of data from a big data set. The dataset is placed on
a software RAID 0 with many disks. With that configuration
we are able to fully utilize the 160 MB/s SCSI controllers.
-- Michael Susæg, M.Eng. Mail: Michael.Susag@fast.no Software Engineer Web: http://www.fast.no/ Fast Search & Transfer ASA Phone: +47 21 60 12 27 P.O. Box 1677 Vika Fax: +47 21 60 12 01 NO-0120 Oslo, NORWAYTry FAST Search: http://www.alltheweb.com/ --------------37B10C811ECF44E73C9F2F3A Content-Type: image/png; name="directio.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="directio.png"
iVBORw0KGgoAAAANSUhEUgAAAxYAAAGYCAMAAADoRYQUAAAAYFBMVEUAAAAAAIDAwMCAgID/ AP////8BAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMB AgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgMBAgPy1Z5DAAAAAWJLR0QfBQ0QvQAAAAlwSFlz AAAAWQAAAFkA3ZqZEAAAEeFJREFUeNrtnYuyo6oWAMm+4///8q2TRAUWICAGWHRXzR4jggZo AR/EGAAQbADggBYAArQAEKAFgAAtAARoASBACwABWgAI0AJAgBYAArQAEKAFgAAtAARoASBA CwABWgAI0AJAgBYAArQAEKAFgAAtAARoASBACwABWvjEZwnyphD6LBi51p9qKBJq0geRPkAn 1awvJRaZD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Q4uZ+kgFNO1HX pV/eb0mEfdeVh1V3omoP9IGMuTwYs5WHDUB3Lbb0kPv6dl4ovZy7VrEDKQ7bzuFqWVjtDqvD EhmeDMu8nRcK22rC+jPmUQF0BS0ABGgBIEALAAFaAAjQAkCAFgACtAAQoAWAAC0ABGgBIEAL AAFaAAjQAkCAFgACtGjL+7X979LOlpvHlMUooEVb0EIFaNEWV4LDkOzIMARo0ZK9eTg/7/8d 73Zu+zueZ4R96QiiTHpDEbQkqoU39bE5LBFLfhLQA0qgKd5AwmoJPh/Ope9He71xVkFH0KIp MS32v+d0F3Y3yt2CEukPhdCS+NhiC2txdp2O7ehDDQBF0JJsLc7tA+vxojuUQEv8exTx1oKx xdCgRUsyteBK1OhQAi3J1cK5b3HeyWBsMQoUAYAALQAEaAEgQAsAAVoACNACQIAWAAK0ABCg BYAALQAEaAEgQAsAAVoACNACQIAWAAK0ABCgBYAALQAEaAEgQAsAAVoACNACQIAWAAK0ABAY ABD8H606G5VBd1w4AAAAQ3RFWHRTb2Z0d2FyZQBAKCMpSW1hZ2VNYWdpY2sgNC4yLjkgOTkv MDkvMDEgY3Jpc3R5QG15c3RpYy5lcy5kdXBvbnQuY29t7ejZ8AAAACp0RVh0U2lnbmF0dXJl AGJjMzliNWIyMThiZjdkMDczZjEyZTU4ZDM3NDUxNWY11csGcgAAABB0RVh0UGFnZQA3OTB4 NDA4KzArMK4u8yYAAAAidEVYdENvbW1lbnQAU29mdHdhcmU6IE1pY3Jvc29mdCBPZmZpY2Wj 3EtaAAAAAElFTkSuQmCC --------------37B10C811ECF44E73C9F2F3A--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/