Re: True fsync() in Linux (on IDE)

From: Jens Axboe (axboe_at_suse.de)
Date: 03/18/04

  • Next message: Frédéric L. W. Meunier: "Re: XFree86 seems to be being wrongly accused of doing the wrong thing"
    Date:	Thu, 18 Mar 2004 07:47:58 +0100
    To: Peter Zaitsev <peter@mysql.com>
    
    

    On Wed, Mar 17 2004, Peter Zaitsev wrote:
    > Hello,
    >
    > I'm wondering is there any way in Linux to do proper fsync(), which
    > makes sure data is written to the disk.
    >
    > Currently on IDE devices one can see, fsync() only flushes data to the
    > drive cache which is not enough for ACID guaranties database server must
    > give.
    >
    > There is solution just to disable drive write cache, but it seems to
    > slowdown performance way to much.

    Chris and I have working real fsync() with the barrier patches. I'll
    clean it up and post a patch for vanilla 2.6.5-rc today.

    -- 
    Jens Axboe
    -
    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/
    

  • Next message: Frédéric L. W. Meunier: "Re: XFree86 seems to be being wrongly accused of doing the wrong thing"

    Relevant Pages

    • True fsync() in Linux (on IDE)
      ... Currently on IDE devices one can see, fsync() only flushes data to the ... drive cache which is not enough for ACID guaranties database server must ... Meet the MySQL Team at User Conference 2004! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Laptop-mode v7 for linux 2.6.1
      ... >> Is this a problem with reiserfs or with kde and is there any fix available? ... Won't help him if kdeinit is doing fsync() on every friggind write. ... syslog has an option to disable that, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux does not care for data integrity
      ... >>And the app could use fsync to force order of write as needed. ... than syscalls and physical operations. ... some of the data coherency issues. ... 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/ ...
      (Linux-Kernel)
    • Re: XFS: how to NOT null files on fsck?
      ... that closing a tempfile and then renaming the file is not ... closewill flush the C library buffer. ... If you want the pagecache flushed to disk, use fsync ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kconfigs file handling (was: XFS: how to NOT null files on fsck?)
      ... This Tim Connors guy shouldn't talk about things he obviously ... I really think fsync here would help in most if not ... (to the best of my knowledge KDE doesn't update dotfiles all that ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)