Page MenuHomeFreeBSD

Reduce kmem_arena maximum size
ClosedPublic

Authored by mw_semihalf.com on Mar 31 2017, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 11:54 PM
Unknown Object (File)
Thu, Dec 5, 8:33 AM
Unknown Object (File)
Nov 23 2024, 6:12 PM
Unknown Object (File)
Oct 9 2024, 1:54 AM
Unknown Object (File)
Oct 1 2024, 7:49 PM
Unknown Object (File)
Oct 1 2024, 7:52 AM
Unknown Object (File)
Sep 17 2024, 5:10 AM
Unknown Object (File)
Sep 6 2024, 9:35 PM

Details

Summary

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
Reviewed by:
Differential revision:

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable