mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Tony Nguyen <tony.nguyen@delphix.com> Closes #12397
This commit is contained in:
+4
-3
@@ -2610,7 +2610,8 @@ spa_start_livelist_destroy_thread(spa_t *spa)
|
||||
ASSERT3P(spa->spa_livelist_delete_zthr, ==, NULL);
|
||||
spa->spa_livelist_delete_zthr =
|
||||
zthr_create("z_livelist_destroy",
|
||||
spa_livelist_delete_cb_check, spa_livelist_delete_cb, spa);
|
||||
spa_livelist_delete_cb_check, spa_livelist_delete_cb, spa,
|
||||
minclsyspri);
|
||||
}
|
||||
|
||||
typedef struct livelist_new_arg {
|
||||
@@ -2820,7 +2821,7 @@ spa_start_livelist_condensing_thread(spa_t *spa)
|
||||
spa->spa_livelist_condense_zthr =
|
||||
zthr_create("z_livelist_condense",
|
||||
spa_livelist_condense_cb_check,
|
||||
spa_livelist_condense_cb, spa);
|
||||
spa_livelist_condense_cb, spa, minclsyspri);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -2838,7 +2839,7 @@ spa_spawn_aux_threads(spa_t *spa)
|
||||
spa->spa_checkpoint_discard_zthr =
|
||||
zthr_create("z_checkpoint_discard",
|
||||
spa_checkpoint_discard_thread_check,
|
||||
spa_checkpoint_discard_thread, spa);
|
||||
spa_checkpoint_discard_thread, spa, minclsyspri);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user