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
F84382943: D38312.diff
Thu, May 23, 2:52 AM
Unknown Object (File)
Mar 11 2024, 7:15 AM
Unknown Object (File)
Jan 5 2024, 10:01 PM
Unknown Object (File)
Jan 2 2024, 1:01 AM
Unknown Object (File)
Dec 23 2023, 1:41 AM
Unknown Object (File)
Dec 3 2023, 3:15 AM
Unknown Object (File)
Nov 28 2023, 10:32 PM
Unknown Object (File)
Nov 28 2023, 9:45 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