zfs/include/os/linux/kernel/linux
Serapheim Dimitropoulos ec1fea4516
Use percpu_counter for obj_alloc counter of Linux-backed caches
A previous commit enabled the tracking of object allocations
in Linux-backed caches from the SPL layer for debuggability.
The commit is: 9a170fc6fe

Unfortunately, it also introduced minor performance regressions
that were highlighted by the ZFS perf test-suite. Within Delphix
we found that the regression would be from -1%, all the way up
to -8% for some workloads.

This commit brings performance back up to par by creating a
separate counter for those caches and making it a percpu in
order to avoid lock-contention.

The initial performance testing was done by myself, and the
final round was conducted by @tonynguien who was also the one
that discovered the regression and highlighted the culprit.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #10397
2020-06-26 18:06:50 -07:00
..
Makefile.am Use percpu_counter for obj_alloc counter of Linux-backed caches 2020-06-26 18:06:50 -07:00
blkdev_compat.h Linux 5.7 compat: blk_alloc_queue() 2020-04-09 09:16:46 -07:00
compiler_compat.h OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
dcache_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
kmap_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
mod_compat.h Update FreeBSD tunables 2020-04-15 11:14:47 -07:00
page_compat.h OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
percpu_compat.h Use percpu_counter for obj_alloc counter of Linux-backed caches 2020-06-26 18:06:50 -07:00
simd.h Add AltiVec RAID-Z 2020-01-23 11:01:24 -08:00
simd_aarch64.h Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore 2019-10-24 10:17:33 -07:00
simd_powerpc.h Add AltiVec RAID-Z 2020-01-23 11:01:24 -08:00
simd_x86.h ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
utsname_compat.h OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
vfs_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
xattr_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00