mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
`GetPhysicallyInstalledSystemMemory` uses SMBios to grab the physical memory size which can lead to unecessary allocation and inacurate representation of the total memory. Using `System_Basic_Information` help to retrieve the physical memory which is not reserved for the kernel/tables. This aligns better with the linux side as `/proc/meminfo` does the same thing.
1209 lines
43 KiB
1209 lines
43 KiB