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
F100635177: D38312.diff
Thu, Oct 17, 4:28 PM
Unknown Object (File)
Thu, Oct 17, 2:45 AM
Unknown Object (File)
Wed, Oct 16, 8:02 PM
Unknown Object (File)
Mon, Oct 14, 7:55 AM
Unknown Object (File)
Sat, Oct 12, 11:51 PM
Unknown Object (File)
Thu, Oct 10, 5:20 PM
Unknown Object (File)
Thu, Oct 10, 4:38 AM
Unknown Object (File)
Thu, Oct 3, 11:57 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