lkml.org 
[lkml]   [2001]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Journaling pointless with today's hard disks?
    On Mon, 26 Nov 2001, H. Peter Anvin wrote:

    > On the subject of write barriers... such a setup probably should have
    > a serial number field for each write barrier command, and a "WAIT FOR
    > WRITE BARRIER NUMBER #" command -- which will wait until all writes
    > preceeding the specified write barrier has been committed to stable
    > storage. It might also be worthwhile to have the equivalent
    > nonblocking operation -- QUERY LAST WRITE BARRIER COMMITTED.

    A query model is not useful, because it involves polling, which is not
    what you want because it clogs up the CPU.

    Write barriers may be fun, however, they impose ordering constraints on
    the host side, which is not too useful. Real tagged commands and tagged
    completion will be really useful for performance, with write barriers,
    for example:

    data000 group A
    data001 group B
    data254 group A
    data253 group A
    data274 group B
    barrier group A
    data002 group B

    or something, and the drive could reorder anything, but it would only
    have to guarantee that all group-A data sent before the barrier would
    have made it to disk when the barrier command completed.
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:13    [W:5.141 / U:0.160 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site