diff options
author | avg <avg@FreeBSD.org> | 2017-03-07 15:27:23 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-03-07 15:27:23 +0000 |
commit | 5643c8ed5a428dbbe149abc1435f2044c0259682 (patch) | |
tree | d91b9e45ff1ce9b1b38796bd23110e06c61d5fca /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c | |
parent | 479b4dd1a7e2cead2cd46abca3d5814618afeb69 (diff) | |
download | FreeBSD-src-5643c8ed5a428dbbe149abc1435f2044c0259682.zip FreeBSD-src-5643c8ed5a428dbbe149abc1435f2044c0259682.tar.gz |
MFC r314058: zfs: lower priority of zio_write_issue threads by four
Obtained from: Panzura
Sponsored by: Panzura
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c index b8f5aa3..88dfe3b 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c @@ -924,9 +924,17 @@ spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) * The write issue taskq can be extremely CPU * intensive. Run it at slightly lower priority * than the other taskqs. + * FreeBSD notes: + * - numerically higher priorities are lower priorities; + * - if priorities divided by four (RQ_PPQ) are equal + * then a difference between them is insignificant. */ if (t == ZIO_TYPE_WRITE && q == ZIO_TASKQ_ISSUE) - pri++; +#ifdef illumos + pri--; +#else + pri += 4; +#endif tq = taskq_create_proc(name, value, pri, 50, INT_MAX, spa->spa_proc, flags); |