From acbad6ff6768b0ccfb3c319e981ec211dcecc277 Mon Sep 17 00:00:00 2001 From: Alex Reece Date: Fri, 18 Jul 2014 07:08:31 -0800 Subject: Illumos 4753 - increase number of outstanding async writes when sync task is waiting Reviewed by: Matthew Ahrens Reviewed by: George Wilson Reviewed by: Adam Leventhal Reviewed by: Christopher Siden Reviewed by: Dan McDonald Approved by: Garrett D'Amore 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 Signed-off-by: Brian Behlendorf Closes #2716 --- include/sys/spa.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sys/spa.h') diff --git a/include/sys/spa.h b/include/sys/spa.h index cc9569255..1faf0420f 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -822,6 +822,7 @@ extern uint64_t bp_get_dsize(spa_t *spa, const blkptr_t *bp); extern boolean_t spa_has_slogs(spa_t *spa); extern boolean_t spa_is_root(spa_t *spa); extern boolean_t spa_writeable(spa_t *spa); +extern boolean_t spa_has_pending_synctask(spa_t *spa); extern int spa_mode(spa_t *spa); extern uint64_t strtonum(const char *str, char **nptr); -- cgit v1.2.3