git: kernel - syscall path optimizations
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Mar 3 19:39:35 PST 2020
commit 25dd4bb7f661ca3c242164001c613c3db9553a46
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Mar 2 20:42:22 2020 -0800
kernel - syscall path optimizations
* Shortcut checks in dfly_acquire_curproc(), significantly reducing
system call overhead.
* Move one of the TDF_MP_BATCH_DEMARC test out of dfly_acquire_curproc()
and into the scheduler clock.
* Add appropriate __predict*() macros to various conditionals in the
system call path and convert the terminal switch() for syscall to
a sequence of if()'s.
* Remove SYF_ARGMASK.
Summary of changes:
sys/cpu/x86_64/include/cpu.h | 5 +++++
sys/kern/usched_dfly.c | 30 +++++++++++++++++++-----------
sys/platform/pc64/x86_64/trap.c | 30 +++++++++++++++---------------
sys/platform/vkernel64/x86_64/trap.c | 2 +-
sys/sys/sysent.h | 2 --
sys/sys/usched.h | 1 +
6 files changed, 41 insertions(+), 29 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/25dd4bb7f661ca3c242164001c613c3db9553a46
--
DragonFly BSD source repository
More information about the Commits
mailing list