Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs We currently lack...



details:   https://anonhg.NetBSD.org/src/rev/d6e2af64125f
branches:  trunk
changeset: 847075:d6e2af64125f
user:      sevan <sevan%NetBSD.org@localhost>
date:      Mon Dec 09 00:15:11 2019 +0000

description:
We currently lack a tunable to control ZFS prefetch, so skip the warning and
FreeBSD specific instructions on settings.

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/arc.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (31 lines):

diff -r 2ee072801f75 -r d6e2af64125f external/cddl/osnet/dist/uts/common/fs/zfs/arc.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c  Mon Dec 09 00:14:30 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c  Mon Dec 09 00:15:11 2019 +0000
@@ -6218,6 +6218,7 @@
        }
 
 #ifdef _KERNEL
+#ifdef __FreeBSD__
        if (TUNABLE_INT_FETCH("vfs.zfs.prefetch_disable", &zfs_prefetch_disable))
                prefetch_tunable_set = 1;
 
@@ -6239,6 +6240,7 @@
                zfs_prefetch_disable = 1;
        }
 #endif
+#endif
        /* Warn about ZFS memory and address space requirements. */
        if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) {
                printf("ZFS WARNING: Recommended minimum RAM size is 512MB; "
@@ -6247,9 +6249,11 @@
        if (kmem_size() < 512 * (1 << 20)) {
                printf("ZFS WARNING: Recommended minimum kmem_size is 512MB; "
                    "expect unstable behavior.\n");
+#ifdef __FreeBSD__
                printf("             Consider tuning vm.kmem_size and "
                    "vm.kmem_size_max\n");
                printf("             in /boot/loader.conf.\n");
+#endif
        }
 #endif
 }



Home | Main Index | Thread Index | Old Index