diff options
author | mav <mav@FreeBSD.org> | 2014-01-05 22:12:45 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-01-05 22:12:45 +0000 |
commit | 0e037d0ee89bf5f6ed599a59942197523e7515f0 (patch) | |
tree | 723143598fd2e179065ad7b259601d4acb4991eb /sys/cddl | |
parent | fe82b61321d95949dd3b45f4e9ea7923b97ec6d8 (diff) | |
download | FreeBSD-src-0e037d0ee89bf5f6ed599a59942197523e7515f0.zip FreeBSD-src-0e037d0ee89bf5f6ed599a59942197523e7515f0.tar.gz |
MFC r258342:
Reenable vfs.zfs.zio.use_uma for amd64, disabled at r209261.
On machines with seveal CPUs and enough RAM this can easily twice improve
ZFS performance or twice reduce CPU usage. It was disabled three years
ago due to memory and KVA exhaustion reports, but our VM subsystem got
improved a lot since that time, hopefully enough to make another try.
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c index b92ceac..425a8ff 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c @@ -39,7 +39,11 @@ SYSCTL_DECL(_vfs_zfs); SYSCTL_NODE(_vfs_zfs, OID_AUTO, zio, CTLFLAG_RW, 0, "ZFS ZIO"); +#if defined(__amd64__) +static int zio_use_uma = 1; +#else static int zio_use_uma = 0; +#endif TUNABLE_INT("vfs.zfs.zio.use_uma", &zio_use_uma); SYSCTL_INT(_vfs_zfs_zio, OID_AUTO, use_uma, CTLFLAG_RDTUN, &zio_use_uma, 0, "Use uma(9) for ZIO allocations"); |