1. 07 1月, 2006 13 次提交
  2. 20 12月, 2005 1 次提交
  3. 29 11月, 2005 1 次提交
  4. 18 11月, 2005 1 次提交
    • N
      [PATCH] md: fix is_mddev_idle calculation now that disk/sector accounting... · c0e48521
      NeilBrown 提交于
      [PATCH] md: fix is_mddev_idle calculation now that disk/sector accounting happens when request completes
      
      md needs to monitor the rate of requests to its devices when doing
      resync/recovery so that it can back-off when there is non-resync IO.  It
      does this by comparing resync IO, which it counts, with total IO which is
      taken from disk_stats.
      
      disk_stats were recently changed to account sectors when a request
      completes instead of when it is queued.  This upsets md's calculations.
      
      We could do the sync_io accounting at the end of requests too, but that has
      problems.  If an underlying device is an md array, the accounting will
      still be done when the request is submitted.  This could be changed for
      some raid levels, but it cannot be changed for raid0 or linear without
      substantial code changes.
      
      So instead, we increase the error that is_mddev_idle allows, up to the
      maximum amount of resync IO that can be in flight at any time.  The
      calculation is current fragile as each personality as different limits for
      in-flight resync.  This should be fixed up.
      
      For now, this simple patch fixes the problem.
      
      Increasing the error margin decreases the sensitivity to non-resync IO.  To
      partially compensate for this, the time to wait when non-resync IO is
      detected is increased so that less steady IO is required to keep the resync
      at bay.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c0e48521
  5. 16 11月, 2005 2 次提交
  6. 09 11月, 2005 21 次提交
  7. 01 11月, 2005 1 次提交
    • J
      [BLOCK] Unify the seperate read/write io stat fields into arrays · a362357b
      Jens Axboe 提交于
      Instead of having ->read_sectors and ->write_sectors, combine the two
      into ->sectors[2] and similar for the other fields. This saves a branch
      several places in the io path, since we don't have to care for what the
      actual io direction is. On my x86-64 box, that's 200 bytes less text in
      just the core (not counting the various drivers).
      Signed-off-by: NJens Axboe <axboe@suse.de>
      a362357b