Project

General

Profile

Actions

Feature #6833

closed

::memstat should account for bootpages list

Added by Robert Mustacchi over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
mdb - modular debugger
Start date:
2016-03-29
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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.

Actions #1

Updated by Electric Monk over 6 years ago

  • Status changed from New to Closed

git commit 176f4288bd445f2376b62bbfa538f889e5d3994e

commit  176f4288bd445f2376b62bbfa538f889e5d3994e
Author: Joshua M. Clulow <jmc@joyent.com>
Date:   2016-03-31T18:43:38.000Z

    6833 ::memstat should account for bootpages list
    Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
    Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF