def guess_vfs_zfs_arc_max():
 if ((HW_PHYSMEM_GB > 200) and TRUENAS):
  return int(max(min(int((HW_PHYSMEM * 0.92)), (HW_PHYSMEM - (USERLAND_RESERVED_MEM + KERNEL_RESERVED_MEM))), MIN_ZFS_RESERVED_MEM))
 else:
  return int(max(min(int((HW_PHYSMEM * 0.9)), (HW_PHYSMEM - (USERLAND_RESERVED_MEM + KERNEL_RESERVED_MEM))), MIN_ZFS_RESERVED_MEM))

def guess_vfs_zfs_arc_max ( ) : if ( ( HW_PHYSMEM_GB > 200 ) and TRUENAS ) : return int ( max ( min ( int ( ( HW_PHYSMEM * 0.92 ) ) , ( HW_PHYSMEM - ( USERLAND_RESERVED_MEM + KERNEL_RESERVED_MEM ) ) ) , MIN_ZFS_RESERVED_MEM ) ) else : return int ( max ( min ( int ( ( HW_PHYSMEM * 0.9 ) ) , ( HW_PHYSMEM - ( USERLAND_RESERVED_MEM + KERNEL_RESERVED_MEM ) ) ) , MIN_ZFS_RESERVED_MEM ) )
maximum usable scratch space for the zfs arc in secondary memory - see comments for userland_reserved_mem .