]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/vdev_queue.c
Illumos 4753 - increase number of outstanding async writes when sync task is waiting
authorAlex Reece <alex@delphix.com>
Fri, 18 Jul 2014 15:08:31 +0000 (07:08 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 23 Sep 2014 20:50:55 +0000 (13:50 -0700)
commitacbad6ff6768b0ccfb3c319e981ec211dcecc277
tree3a17414f6a30247ce3dcc0488da07e7905e8894a
parent1f6f97f3049706aa7ca95636fd587ae5f3d531a9
Illumos 4753 - increase number of outstanding async writes when sync task is waiting

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Garrett D'Amore <garrett@damore.org>

References:
    https://www.illumos.org/issues/4753
    https://github.com/illumos/illumos-gate/commit/73527f4

Comments by Matt Ahrens from the issue tracker:
    When a sync task is waiting for a txg to complete, we should hurry
    it along by increasing the number of outstanding async writes
    (i.e. make vdev_queue_max_async_writes() return a larger number).
    Initially we might just have a tunable for "minimum async writes
    while a synctask is waiting" and set it to 3.

Ported-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2716
include/sys/spa.h
include/sys/txg.h
module/zfs/spa_misc.c
module/zfs/txg.c
module/zfs/vdev_queue.c