Page MenuHomeFreeBSD

Set VM_KMEM_SIZE_SCALE to 1 on riscv and arm64
ClosedPublic

Authored by markj on Jan 18 2021, 6:47 PM.
Tags
None
Referenced Files
F146453142: D28225.diff
Mon, Mar 2, 7:48 PM
F146392038: D28225.diff
Mon, Mar 2, 8:12 AM
Unknown Object (File)
Fri, Feb 27, 9:27 AM
Unknown Object (File)
Wed, Feb 11, 3:22 PM
Unknown Object (File)
Sat, Feb 7, 5:21 PM
Unknown Object (File)
Jan 31 2026, 12:12 PM
Unknown Object (File)
Jan 25 2026, 6:27 PM
Unknown Object (File)
Dec 14 2025, 12:51 AM
Subscribers

Details

Summary

This parameter limits the amount of memory that can be allocated to UMA.
On systems with a direct map and ample KVA, however, I can't see a
reason for VM_KMEM_SIZE_SCALE to be larger than 1. I believe it was
copied from 32-bit ARM to arm64 and from there to riscv.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36327
Build 33216: arc lint + arc unit

Event Timeline

markj requested review of this revision.Jan 18 2021, 6:47 PM
This revision is now accepted and ready to land.Jan 18 2021, 7:02 PM

Similarly, there is no reason to define VM_KMEM_SIZE_MIN.

Remove VM_KMEM_SIZE_MIN as well.

This revision now requires review to proceed.Jan 19 2021, 12:35 AM
This revision is now accepted and ready to land.Jan 19 2021, 6:54 AM
This revision was automatically updated to reflect the committed changes.