diff options
author | mav <mav@FreeBSD.org> | 2018-04-16 03:52:54 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2018-04-16 03:52:54 +0000 |
commit | 73f50c7aa870619c666b5e60922eff785de83244 (patch) | |
tree | eb43b2cc80d64d45ab11025f5b35169041f42851 /cddl/contrib/opensolaris | |
parent | 344611a0c0fdd574f87f194b05904050dfc58faa (diff) | |
download | FreeBSD-src-73f50c7aa870619c666b5e60922eff785de83244.zip FreeBSD-src-73f50c7aa870619c666b5e60922eff785de83244.tar.gz |
MFC r331404: MFV r331400:
8484 Implement aggregate sum and use for arc counters
In pursuit of improving performance on multi-core systems, we should
implements fanned out counters and use them to improve the performance of
some of the arc statistics. These stats are updated extremely frequently,
and can consume a significant amount of CPU time.
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Author: Paul Dagnelie <pcd@delphix.com>
Diffstat (limited to 'cddl/contrib/opensolaris')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h b/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h index a488d14..a2573fa 100644 --- a/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h +++ b/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h @@ -559,6 +559,7 @@ extern void delay(clock_t ticks); } while (0); #define max_ncpus 64 +#define boot_ncpus (sysconf(_SC_NPROCESSORS_ONLN)) #define minclsyspri 60 #define maxclsyspri 99 |