Page MenuHomeFreeBSD

kboot: Move discovery of memory limits to main.c
AbandonedPublic

Authored by imp on Feb 1 2023, 6:23 AM.
Tags
None
Referenced Files
F152460756: D38312.id.diff
Wed, Apr 15, 2:43 AM
Unknown Object (File)
Tue, Apr 14, 2:42 AM
Unknown Object (File)
Fri, Apr 3, 3:29 AM
Unknown Object (File)
Sat, Mar 21, 1:29 PM
Unknown Object (File)
Mar 4 2026, 12:07 AM
Unknown Object (File)
Mar 2 2026, 7:16 PM
Unknown Object (File)
Jan 30 2026, 10:56 PM
Unknown Object (File)
Jan 23 2026, 9:37 PM
Subscribers

Details

Summary

main.c manages the kexec segments. Due to our inability to overcommit,
we need to know how much memory is available. commit_limit is the grand
total allowed. committed_as is the current memory used. mem_avail is
what Linux tells us is available. Find these from /proc/meminfo. We'll
use them later to allocate the biggest possible segment sizes, but for
now print the raw numbers.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 49382
Build 46272: arc lint + arc unit