]> 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)
committerGitHub <noreply@github.com>
Thu, 17 Jun 2021 00:19:34 +0000 (18:19 -0600)
commitc4c162c1e8ff9ce8833014711875d18df520096c
treea056dcb7b82161a9cc2826c70a00998014571e03
parent9ffcaa370aee6871c92c7c84aa65942fba63a884
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