pjd 2008-01-24 11:21:54 UTC FreeBSD src repository
Modified files: sys/compat/opensolaris/kern opensolaris_kmem.c sys/compat/opensolaris/sys kmem.h Log: Change type of kmem_used() and kmem_size() functions to uint64_t, so it doesn't overflow in arc.c in this check: if (kmem_used() > (kmem_size() * 4) / 5) return (1); With this bug ZFS almost doesn't cache. Only 32bit machines are affected that have vm.kmem_size set to values >=1GB. Reported by: David Taylor <[EMAIL PROTECTED]> Revision Changes Path 1.3 +5 -5 src/sys/compat/opensolaris/kern/opensolaris_kmem.c 1.4 +3 -3 src/sys/compat/opensolaris/sys/kmem.h _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"