freebsd-nq/module/splat
Brian Behlendorf 62aa81a577 Add defclsyspri macro
Add a new defclsyspri macro which can be used to request the default
Linux scheduler priority.  Neither the minclsyspri or maxclsyspri map
to the default Linux kernel thread priority.  This makes it awkward to
create taskqs which run with the same priority as the rest of the kernel
threads on the system which can lead to performance issues.

All SPL callers which previously used minclsyspri or maxclsyspri have
been changed to use defclsyspri.  The vast majority of callers were
part of the test suite which won't have an external impact.  The few
places where it could impact performance the change was from maxclsyspri
to defclsyspri.  This makes it more likely the process will be scheduled
which may help performance.

To facilitate further performance analysis the spl_taskq_thread_priority
module option has been added.  When disabled (0) all newly created kernel
threads will use the default kernel thread priority.  When enabled (1)
the specified taskq priority will be used.  By default this value is
enabled (1).

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2015-07-23 13:25:49 -07:00
..
Makefile.in Support parallel build trees (VPATH builds) 2015-07-17 12:53:11 -07:00
splat-atomic.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-condvar.c Refactor existing code 2015-01-16 13:55:08 -08:00
splat-cred.c splat cred:groupmember: Fix false positives 2014-04-08 12:44:41 -07:00
splat-ctl.c Retire spl_module_init()/spl_module_fini() 2015-02-27 13:43:39 -08:00
splat-generic.c Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
splat-internal.h Refactor existing code 2015-01-16 13:55:08 -08:00
splat-kmem.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-kobj.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-linux.c Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
splat-list.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-mutex.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-random.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-rwlock.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-taskq.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-thread.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-time.c Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
splat-vnode.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-zlib.c Refactor existing code 2015-01-16 13:55:08 -08:00