mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Terje Eggestad <terje.eggestad@scali.no>
To: Suresh Gopalakrishnan <gsuresh@cs.rutgers.edu>
Cc: Andrew Morton <akpm@zip.com.au>, GOTO Masanori <gotom@debian.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Andrea Arcangeli <andrea@suse.de>
Subject: Re: O_DIRECT wierd behavior..
Date: 17 Dec 2001 10:04:07 +0100	[thread overview]
Message-ID: <1008579848.12274.0.camel@pc-16.office.scali.no> (raw)
In-Reply-To: <Pine.GSO.4.02A.10112161208160.25791-100000@aramis.rutgers.edu>
In-Reply-To: <Pine.GSO.4.02A.10112161208160.25791-100000@aramis.rutgers.edu>

Someone, wonder if it wasn't Andrea, pointet out to me that it should be
device block size, not page size for alignment and length.
Appearently it was just simpler to do page alignment, don't expect a
patch for that in any immediate future. 

Other than that; you've got it.

TJ

 
søn, 2001-12-16 kl. 18:43 skrev Suresh Gopalakrishnan:
> 
> On Sun, 16 Dec 2001, Terje Eggestad wrote:
> > The problem is that the kernel that don't support O_DIRECT has
> > erronous handling of the O_DIRECT flag. Meaning they happily accept
> > it. In order to figure out ifthe running kernel support O_DIRECT you
> > MUST attempt an unaligned read/write, if it succed the kernel DON'T
> > support O_DIRECT. TJ
> 
> You are right! It went through on 2.4.2 even with an unaligned buffer.
> 
> So direct i/o has to be multiple of page size blocks, from page aligned
> buffer, and apparently into page aligned offset in the file! Is this the
> expected behavior?
> 
> --suresh
> 
> > > Thanks for the patches. There seems to be one more fix required: the test
> > > program below works in 2.4.16 only if the write size is a multiple of 4K.
> > > (Why) are all writes expected to be page size, in addition to being page
> > > aligned? (It works fine on 2.4.2 for all sizes). Any quick fixes? :)
> > > --suresh
> 
-- 
_________________________________________________________________________

Terje Eggestad                  terje.eggestad@scali.no
Scali Scalable Linux Systems    http://www.scali.com

Olaf Helsets Vei 6              tel:    +47 22 62 89 61 (OFFICE)
P.O.Box 70 Bogerud                      +47 975 31 574  (MOBILE)
N-0621 Oslo                     fax:    +47 22 62 89 51
NORWAY            
_________________________________________________________________________


  reply	other threads:[~2001-12-17  9:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-16  0:47 Suresh Gopalakrishnan
2001-12-16  5:59 ` Andrew Morton
2001-12-16  6:29 ` GOTO Masanori
2001-12-16  8:17 ` GOTO Masanori
2001-12-16  8:46   ` Andrew Morton
2001-12-16  9:20     ` Suresh Gopalakrishnan
2001-12-16 13:57       ` Terje Eggestad
2001-12-16 17:43         ` Suresh Gopalakrishnan
2001-12-17  9:04           ` Terje Eggestad [this message]
2001-12-17 17:18   ` Andrea Arcangeli
2001-12-17 18:07     ` Hugh Dickins
2001-12-17 18:13       ` Andrea Arcangeli
2001-12-17 18:57       ` Andrew Morton
2001-12-17 19:26         ` Linus Torvalds
2001-12-17 19:53           ` Joel Becker
2001-12-17 19:59             ` Linus Torvalds
2001-12-17 20:20               ` Joel Becker
2001-12-17 20:38                 ` Andre Hedrick
2001-12-26 14:54           ` Riley Williams
2002-01-20  4:16 ` multithreaded RPC handling Suresh Gopalakrishnan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1008579848.12274.0.camel@pc-16.office.scali.no \
    --to=terje.eggestad@scali.no \
    --cc=akpm@zip.com.au \
    --cc=andrea@suse.de \
    --cc=gotom@debian.org \
    --cc=gsuresh@cs.rutgers.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®