]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use wmsum for arc, abd, dbuf and zfetch statistics. (#12172)
authorAlexander Motin <mav@FreeBSD.org>
Thu, 17 Jun 2021 00:19:34 +0000 (20:19 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 24 Jun 2021 20:10:59 +0000 (13:10 -0700)
commit6b239d1757d1b82d30a5232fdfdde8f68d4880a6
tree782b38bd018d0f266fb47f3aac07bd462abe779c
parent9a865b7fb70f44e988f59b31b38eabafe363d6f8
Use wmsum for arc, abd, dbuf and zfetch statistics. (#12172)

wmsum was designed exactly for cases like these with many updates
and rare reads.  It allows to completely avoid atomic operations on
congested global variables.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12172
include/sys/abd_impl.h
include/sys/arc_impl.h
module/os/freebsd/zfs/abd_os.c
module/os/linux/zfs/abd_os.c
module/os/linux/zfs/arc_os.c
module/zfs/arc.c
module/zfs/dbuf.c
module/zfs/dmu_zfetch.c