cvs commit: src/sys/compat/opensolaris/kern opensolaris_kmem.c
src/sys/compat/opensolaris/sys kmem.h
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Jan 24 03:21:55 PST 2008
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 <davidt at yadt.co.uk>
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
More information about the cvs-src
mailing list