Re: ext3 journal commit performance

From: Muthian Sivathanu (muthian_s_at_yahoo.com)
Date: 03/02/05

  • Next message: Linas Vepstas: "Re: [PATCH/RFC] I/O-check interface for driver's error handling"
    Date:	Wed, 2 Mar 2005 09:46:37 -0800 (PST)
    To: linux-os@analogic.com
    
    

    > >
    > > I have a question on ext3 journal commit code.
    > When a
    > > transaction is committed in the ordered mode, ext3
    > > first issues the data writes, waits for them to
    > > finish, then issues the journal writes, waits for
    > them
    > > to finish, and then writes out the commit record.
    > >
    > > It appears that the first wait (for the data
    > blocks)
    > > is unnecessary because all that is required is
    > that
    >
    > Wrong. If you perform two buffered writes
    > back-to-back
    > will you guarantee that they are both on the disk
    > when
    > the second finishes? Not on your life! They can
    > (read will)
    > be reordered depending upon the closest seek. So it
    > is
    > mandatory that one wait to make sure that both
    > writes
    > occur in order.
    >
    >

    Sorry if I was unclear. I did not say that waiting
    for the metadata will guarantee commit of the data as
    well. My point is you can wait for both of them
    _together_ after issuing both of them to disk, instead
    of serializing them at the issue stage itself.

    Muthian

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
    -
    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: Linas Vepstas: "Re: [PATCH/RFC] I/O-check interface for driver's error handling"

    Relevant Pages

    • Re: *bsd firewall appliance?
      ... firewall or router without a disk. ... It seems that more and more my bottlenecks have nothing to do with performance or reliability, ... Do You Yahoo!? ... Mail has the best spam protection around http://mail.yahoo.com ...
      (freebsd-questions)
    • Re: 2.6.12 Performance problems
      ... to tell me what was wrong with my setup, ... Do You Yahoo!? ... Mail has the best spam protection around ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Help by KConfig expansion
      ... zconf.tab.c_shipped as well but it still dont work. ... Do You Yahoo!? ... Mail has the best spam protection around ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RFC: i386: kill !4KSTACKS
      ... > ndiswrapper seems to run fine (I don't currently need fancy filesystems) ... Do You Yahoo!? ... Mail has the best spam protection around ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Programtically tell diff between HT and real
      ... > additional IO-APICs ... Do You Yahoo!? ... Mail has the best spam protection around ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)