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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to