lkml.org 
[lkml]   [2009]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 04/12] writeback: switch to per-bdi threads for flushing data
    On Tue, May 26, 2009 at 10:56:48AM +0200, Jens Axboe wrote:
    > > Hmm, so each BDI flusher thread is going to sync all the superblocks?
    > > Isn't there a better way? I suppose we *should* be able to somehow go
    > > from a BDI to a superblock (or maybe a list of those) so that we can write
    > > per-fs metadata not bound to inodes.
    >
    > I just moved the sync_supers() to the bdi_forker_task(). That makes it
    > global at the same interval of wakeups, instead of doing in the bdi
    > threads. It would be nice to sync locally instead, but that's something
    > that can wait for later (if ever).

    For now it might be easier to just have a separate thread for calling
    sync_supers instead of interwinding it with the data writeback.

    Btw, XFS currently has a per-device thread for that, to avoid any global
    contention.



    \
     
     \ /
      Last update: 2009-05-26 11:01    [W:2.449 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site