DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: bioqdisksort - fixes to avoid starvation


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 8 Aug 2009 15:09:52 -0700 (PDT)

commit 539f339ee934d4f0a53b0071fb42acc78b49269b
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Aug 8 15:07:40 2009 -0700

    bioqdisksort - fixes to avoid starvation
    
    Long chains of pipelined write I/O were being sorted in front of other
    requests.  Due to the pipelining these other requests would wind up
    getting starved virtually permanently.
    
    Prevent starvation by forcing one out of every 16 BIOs to be ordered.
    
    This fixes issues with HAMMER which tends to have more of an absolute
    ordering of meta data verses data then UFS.

Summary of changes:
 sys/kern/subr_disk.c |   14 +++++++++++++-
 sys/sys/buf.h        |    1 +
 sys/sys/buf2.h       |   13 +++++++++++--
 3 files changed, 25 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/539f339ee934d4f0a53b0071fb42acc78b49269b


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]