Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2017 12:34:57 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315449 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201703171234.v2HCYvgd026429@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Fri Mar 17 12:34:57 2017
New Revision: 315449
URL: https://svnweb.freebsd.org/changeset/base/315449

Log:
  Reduce ARC fragmentation threshold
  
  As ZFS can request up to SPA_MAXBLOCKSIZE memory block e.g. during zfs recv,
  update the threshold at which we start agressive reclamation to use
  SPA_MAXBLOCKSIZE (16M) instead of the lower zfs_max_recordsize which
  defaults to 1M.
  
  PR:		194513
  Reviewed by:	avg, mav
  MFC after:	1 month
  Sponsored by:	Multiplay
  Differential Revision:	https://reviews.freebsd.org/D10012

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Fri Mar 17 12:34:56 2017	(r315448)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Fri Mar 17 12:34:57 2017	(r315449)
@@ -3978,7 +3978,7 @@ arc_available_memory(void)
 	 * Start aggressive reclamation if too little sequential KVA left.
 	 */
 	if (lowest > 0) {
-		n = (vmem_size(heap_arena, VMEM_MAXFREE) < zfs_max_recordsize) ?
+		n = (vmem_size(heap_arena, VMEM_MAXFREE) < SPA_MAXBLOCKSIZE) ?
 		    -((int64_t)vmem_size(heap_arena, VMEM_ALLOC) >> 4) :
 		    INT64_MAX;
 		if (n < lowest) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703171234.v2HCYvgd026429>