svn commit: r193878 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Dmitry Morozovsky marck at rinet.ru
Wed Jun 10 09:17:17 UTC 2009


On Wed, 10 Jun 2009, Kip Macy wrote:

KM> +	if ((((uint64_t)physmem * PAGESIZE) < (1ULL << 32)) &&
KM> +	    (zfs_prefetch_enable != 1) && (zfs_prefetch_disable != 1)) {
KM> +		printf("ZFS NOTICE: system has less than 4GB and prefetch enable is not set"
KM> +		    "... disabling.\n");
KM> +		zfs_prefetch_disable=1;
KM> +	}

Also: this will disable prefetch on a system with exact 4G of memory *and* 
some subsystem which allocates memory from system (e.g., integrated video)

Don't you think the threshold like 3G would be more appropriate?


-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the svn-src-head mailing list