Re: Alignment of disk-I/O from userland.

From: Bruce M Simpson (bms_at_spc.org)
Date: 10/07/03

  • Next message: Poul-Henning Kamp: "Re: Alignment of disk-I/O from userland."
    Date: Tue, 7 Oct 2003 17:02:31 +0100
    To: Ben Mesander <ben@timing.com>
    
    

    On Tue, Oct 07, 2003 at 09:41:17AM -0600, Ben Mesander wrote:
    > How about a flag for open(2), such as O_DIRECT, which would indicate
    > if the fd in question is such a device, and you did not sufficiently
    > align, etc. your buffers, then you get an error when you attempt the
    > I/O operation.

    O_DIRECT is already used to indicate that the application wishes to bypass
    the buffer cache.

    I think Scott's proposal, that the busdma API gets re-used, creating bounce
    buffers where necessary, makes sense.

    I think that if phk intends to 'raise the bar', he'd better be buying the
    drinks at EuroBSDCon. :-)

    BMS
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Poul-Henning Kamp: "Re: Alignment of disk-I/O from userland."

    Relevant Pages

    • Re: [patch 0/5] Support for sanitization flag in low-level page allocator
      ... the sensitive memory from a program like gpg would ... even if gpg died in a segfault accident. ... Still doesn't need a page flag - that is a vma flag which is far cheaper. ... sensitive even compiler stack copies and library buffers I don't know ...
      (Linux-Kernel)
    • Re: [patch 1/3] add the fsblock layer
      ... There should never be any confusion about whether ->private has ... attachment of either buffers or blocks for filesystem metadata, ... If the page flag is really important, we can do some awful hack ... The block device pagecache isn't special, ...
      (Linux-Kernel)
    • Re: [PATCH -mm] jbd: test BH_Write_EIO to detect errors on metadata buffers
      ... test BH_Uptodate flag to detect write I/O errors on metadata ... BH_Uptodate flag can be set to inode buffers with BH_Write_EIO ...
      (Linux-Kernel)
    • [patch 17/83] jbd: test BH_Write_EIO to detect errors on metadata buffers
      ... BH_Uptodate flag to detect write I/O errors on metadata buffers. ... inode buffers with BH_Write_EIO in order to avoid reading old inode data. ... ret = -EIO; ...
      (Linux-Kernel)
    • Re: O_DIRECT and tcl
      ... even if Tcl supported passing that flag through (which it doesn't, ... The issue is that network systems have buffers *anyway* ... server that acts as a control point, ... Instead of reading remotley and writeing locally i've turned it the ...
      (comp.lang.tcl)