diff options
author | Tony Nguyen <[email protected]> | 2021-08-10 11:36:26 -0600 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2021-09-14 14:30:13 -0700 |
commit | 477edd642c6ddb40f04b6f03abcd240200148ddb (patch) | |
tree | a51523fdf8610695d63e36acc11e7c22e19b08c1 /include | |
parent | 23184b172a8bed1c248c8aef3b7e02d5515c88f5 (diff) |
Run arc_evict thread at higher priority
Run arc_evict thread at higher priority, nice=0, to give it more CPU
time which can improve performance for workload with high ARC evict
activities.
On mixed read/write and sequential read workloads, I've seen between
10-40% better performance.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Closes #12397
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zthr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sys/zthr.h b/include/sys/zthr.h index ae8c57e9e..19be89eee 100644 --- a/include/sys/zthr.h +++ b/include/sys/zthr.h @@ -25,10 +25,11 @@ typedef void (zthr_func_t)(void *, zthr_t *); typedef boolean_t (zthr_checkfunc_t)(void *, zthr_t *); extern zthr_t *zthr_create(const char *zthr_name, - zthr_checkfunc_t checkfunc, zthr_func_t *func, void *arg); + zthr_checkfunc_t checkfunc, zthr_func_t *func, void *arg, + pri_t pri); extern zthr_t *zthr_create_timer(const char *zthr_name, zthr_checkfunc_t *checkfunc, zthr_func_t *func, void *arg, - hrtime_t nano_wait); + hrtime_t nano_wait, pri_t pri); extern void zthr_destroy(zthr_t *t); extern void zthr_wakeup(zthr_t *t); |