git: kernel - Use kmalloc_obj for more zones - step 1b
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Mar 21 19:32:06 PDT 2021
commit 5b3b84424f6bfcb5eb06ad9dcd7a29cfd895a39e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Mar 21 18:50:49 2021 -0700
kernel - Use kmalloc_obj for more zones - step 1b
* Use kmalloc_obj for M_FILE (struct file).
* Use kmalloc_obj for hammer2_io structures.
* Use kmalloc_obj for nfsnode structures, and make it per-mount.
I don't know if its a good idea to make it per-mount or not.
As the number of nodes is limited by kern.maxvnodes, it might
be better to have a global M_NFSNODE kmalloc_obj zone instead
of a per-mount one.
(same goes with hammer2_io and hammer2_inode, which are also
per-mount atm).
Summary of changes:
sys/kern/kern_descrip.c | 29 ++++++-----------------------
sys/sys/file.h | 4 ----
sys/vfs/hammer2/hammer2.h | 1 +
sys/vfs/hammer2/hammer2_io.c | 6 +++---
sys/vfs/hammer2/hammer2_vfsops.c | 3 +++
sys/vfs/nfs/nfs.h | 4 +---
sys/vfs/nfs/nfs_node.c | 28 ++++++++++++----------------
sys/vfs/nfs/nfs_subs.c | 2 --
sys/vfs/nfs/nfs_vfsops.c | 13 +++++++------
sys/vfs/nfs/nfsmount.h | 1 +
10 files changed, 34 insertions(+), 57 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5b3b84424f6bfcb5eb06ad9dcd7a29cfd895a39e
--
DragonFly BSD source repository
More information about the Commits
mailing list