From aa9af22cdf8d16c197974c3a478d2053b3bed498 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 3 Jun 2015 11:43:30 -0700 Subject: Update all default taskq settings Over the years the default values for the taskqs used on Linux have differed slightly from illumos. In the vast majority of cases this was done to avoid creating an obnoxious number of idle threads which would pollute the process listing. With the addition of support for dynamic taskqs all multi-threaded queues should be created as dynamic taskqs. This allows us to get the best of both worlds. * The illumos default values for the I/O pipeline can be restored. These values are known to work well for most workloads. The only exception is the zio write interrupt taskq which is changed to ZTI_P(12, 8). At least under Linux more threads has been shown to improve performance, see commit 7e55f4e. * Reduces the number of idle threads on the system when it's not under heavy load. The maximum number of threads will only be created when they are required. * Remove the vdev_file_taskq and rely on the system_taskq instead which is now dynamic and may have up to 64-threads. Again this brings us back inline with upstream. * Tasks dispatched with taskq_dispatch_ent() are allowed to use dynamic taskqs. The Linux taskq implementation supports this. Signed-off-by: Brian Behlendorf Signed-off-by: Tim Chase Closes #3507 --- include/sys/vdev_file.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/sys/vdev_file.h') diff --git a/include/sys/vdev_file.h b/include/sys/vdev_file.h index cf38a86af..aebcf55cf 100644 --- a/include/sys/vdev_file.h +++ b/include/sys/vdev_file.h @@ -27,8 +27,6 @@ #ifndef _SYS_VDEV_FILE_H #define _SYS_VDEV_FILE_H - - #include #ifdef __cplusplus @@ -39,9 +37,6 @@ typedef struct vdev_file { vnode_t *vf_vnode; } vdev_file_t; -extern void vdev_file_init(void); -extern void vdev_file_fini(void); - #ifdef __cplusplus } #endif -- cgit v1.2.3