Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 10:20:42 +0000 (UTC)
From:      Zbigniew Bodek <zbb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317084 - head/sys/arm/conf
Message-ID:  <201704181020.v3IAKgno032197@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zbb
Date: Tue Apr 18 10:20:42 2017
New Revision: 317084
URL: https://svnweb.freebsd.org/changeset/base/317084

Log:
  Reduce kmem_arena maximum size for Armada38x
  
  VM_KMEM_SIZE_MAX allows to limit kmem arena size. In our case this was
  necessary, as decreasing size of kmem_arena leaves more space for
  kernel_arena.
  
  kernel_arena is pool used for contigmalloc (in effect, DMA) allocations,
  which failed on Armada38x. This resulted in 'no memory errors'
  (e.g. USB_ERR_NOMEM errors) and failure of whole system. The need for
  greater size of kernel_arena probably comes from more peripherals making
  use of busdma.
  
  Value used as upper limit is half of the default value
  (0x1399a000).
  
  Submitted by: Wojciech Macek <wma@semihalf.com>
  Obtained from: Semihalf
  Sponsored by: Stormshield
  Differential revision: https://reviews.freebsd.org/D10216

Modified:
  head/sys/arm/conf/ARMADA38X

Modified: head/sys/arm/conf/ARMADA38X
==============================================================================
--- head/sys/arm/conf/ARMADA38X	Tue Apr 18 09:27:26 2017	(r317083)
+++ head/sys/arm/conf/ARMADA38X	Tue Apr 18 10:20:42 2017	(r317084)
@@ -21,6 +21,8 @@ options 	ROOTDEVNAME=\"/dev/da0s1a\"
 options 	SCHED_ULE		# ULE scheduler
 options 	SMP
 
+options		VM_KMEM_SIZE_MAX=0x9CCD000
+
 # Pseudo devices
 device		random
 device		pty



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