From 2e4e429921a05fe35bc8ed140ac9ba7df66e9127 Mon Sep 17 00:00:00 2001 From: pjd Date: Wed, 7 Nov 2007 14:44:31 +0000 Subject: [PATCH] Warn if kmem_map size is set to less than 512MB. Previous warning was a bit pointless, because default is set to something around 300MB and also insufficient. MFC after: 3 days --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 10 +++++----- sys/contrib/opensolaris/uts/common/fs/zfs/arc.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c index 55cb12407188..21e10334bb23 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -2804,12 +2804,12 @@ arc_init(void) if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) { printf("ZFS WARNING: Recommended minimum RAM size is 512MB; " "expect unstable behavior.\n"); - } else if (kmem_size() < 256 * (1 << 20)) { - printf("ZFS WARNING: Recommended minimum kmem_size is 256MB; " + } else if (kmem_size() < 512 * (1 << 20)) { + printf("ZFS WARNING: Recommended minimum kmem_size is 512MB; " "expect unstable behavior.\n"); - printf(" Consider tuning vm.kmem_size or " - "vm.kmem_size_min\n"); - printf(" in /boot/loader.conf.\n"); + printf(" Consider tuning vm.kmem_size and " + "vm.kmem_size_max\n"); + printf(" in /boot/loader.conf.\n"); } #endif } diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/contrib/opensolaris/uts/common/fs/zfs/arc.c index 55cb12407188..21e10334bb23 100644 --- a/sys/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -2804,12 +2804,12 @@ arc_init(void) if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) { printf("ZFS WARNING: Recommended minimum RAM size is 512MB; " "expect unstable behavior.\n"); - } else if (kmem_size() < 256 * (1 << 20)) { - printf("ZFS WARNING: Recommended minimum kmem_size is 256MB; " + } else if (kmem_size() < 512 * (1 << 20)) { + printf("ZFS WARNING: Recommended minimum kmem_size is 512MB; " "expect unstable behavior.\n"); - printf(" Consider tuning vm.kmem_size or " - "vm.kmem_size_min\n"); - printf(" in /boot/loader.conf.\n"); + printf(" Consider tuning vm.kmem_size and " + "vm.kmem_size_max\n"); + printf(" in /boot/loader.conf.\n"); } #endif }