HomeFreeBSD

pseudofs: Microoptimize struct pfs_node

Description

pseudofs: Microoptimize struct pfs_node

Since 81167243b the size of struct pfs_node is 280 bytes, so the kernel
memory allocator takes memory from 384 bytes sized bucket. However, the
length of the node name is mostly short, e.g., for Linux emulation layer
it is up to 16 bytes. The size of struct pfs_node w/o pfs_name is 152
bytes, i.e., we have 104 bytes left to fit the node name into the 256
bytes-sized bucket.

Reviewed by: des
Differential revision: https://reviews.freebsd.org/D39381
MFC after: 1 month

(cherry picked from commit 7f72324346ea154a92671fc913dbe82c0287501a)

Details

Provenance
dchaginAuthored on Apr 2 2023, 8:20 AM
Reviewer
des
Differential Revision
D39381: pseudofs: Microoptimize struct pfs_node
Parents
rGfdab8b794ac3: linsysfs(4): Keep Linux compatible sysfs the same as Ubuntu
Branches
Unknown
Tags
Unknown