::memstat should account for bootpages list
As part of booting, we mark a number of pages of physical memory as unusable by setting P_BOOTPAGES on the associated page_t and, on i86pc, by placing that page_t in the bootpages list.
At a later stage of i86pc boot, we call release_bootstrap(). This releases some or all of these pages back to the OS. Some pages may remain permanently in the list (e.g. as part of the boot-time RAM disk or bootfs files), and that memory will appear to ::memstat to be in the freelist, but is actually unusable.
We should account for this memory in ::memstat.
Updated by Electric Monk over 6 years ago
- Status changed from New to Closed
commit 176f4288bd445f2376b62bbfa538f889e5d3994e Author: Joshua M. Clulow <email@example.com> Date: 2016-03-31T18:43:38.000Z 6833 ::memstat should account for bootpages list Reviewed by: Patrick Mooney <firstname.lastname@example.org> Reviewed by: Hans Rosenfeld <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>