public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Possible O_DIRECT problems ?
@ 2001-12-21  0:08 Dave Jones
  2001-12-21  0:23 ` Trond Myklebust
  0 siblings, 1 reply; 10+ messages in thread
From: Dave Jones @ 2001-12-21  0:08 UTC (permalink / raw)
  To: Linux Kernel; +Cc: andrea, davej

Andrea, lk,
 I just experimented with O_DIRECT in conjunction with fsx,
and the results aren't pretty.

Over NFS it survives around 921 operations, all local filesystems
(ext2,ext3,reiser tested) just 6 operations.
I've put the source to a modified fsx at
http://www.codemonkey.org.uk/cruft/fsx-odirect.c

It's possible I've done something wrong here, so look it over.
Just adding O_DIRECT flag to open() should be all thats necessary
correct ?

Also note, that by changing the flags on line 988 to have O_DIRECT
also, we get different failure type.

So, did I get the usage of O_DIRECT correct and find some bugs,
or have I had a little too much xmas spirits already ? 8-)


Dave.

-- 
| Dave Jones.                    http://www.codemonkey.org.uk
| SuSE Labs .

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-12-30 10:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-21  0:08 Possible O_DIRECT problems ? Dave Jones
2001-12-21  0:23 ` Trond Myklebust
2001-12-21  0:39   ` Dave Jones
     [not found]     ` <w53ellp2out.wl@megaela.fe.dis.titech.ac.jp>
2001-12-21 12:46       ` Trond Myklebust
2001-12-21 16:14         ` Chuck Lever
2001-12-21 16:04       ` Chuck Lever
2001-12-29 15:25     ` Andrea Arcangeli
2001-12-29 18:46       ` CJ
2001-12-30  5:39         ` Andre Hedrick
2001-12-30 11:16           ` Gérard Roudier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox