diff options
author | pjd <pjd@FreeBSD.org> | 2007-11-07 14:44:31 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-11-07 14:44:31 +0000 |
commit | 2e4e429921a05fe35bc8ed140ac9ba7df66e9127 (patch) | |
tree | 16de568c912cba9982659550a276fe7909bdc19e /sys/cddl/contrib/opensolaris | |
parent | 5cc8e97f590f084f76e75bf67611a49b2caa94fa (diff) | |
download | FreeBSD-src-2e4e429921a05fe35bc8ed140ac9ba7df66e9127.zip FreeBSD-src-2e4e429921a05fe35bc8ed140ac9ba7df66e9127.tar.gz |
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
Diffstat (limited to 'sys/cddl/contrib/opensolaris')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 10 |
1 files changed, 5 insertions, 5 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 55cb124..21e1033 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 } |