• Mel Gorman's avatar
    mm: init: report on last-nid information stored in page->flags · a4e1b4c6
    Mel Gorman authored
    Answering the question "how much space remains in the page->flags" is
    time-consuming.  mminit_loglevel can help answer the question but it
    does not take last_nid information into account.  This patch corrects it
    and while there it corrects the messages related to page flag usage,
    pgshifts and node/zone id.  When applied the relevant output looks
    something like this but will depend on the kernel configuration.
    
      mminit::pageflags_layout_widths Section 0 Node 9 Zone 2 Lastnid 9 Flags 25
      mminit::pageflags_layout_shifts Section 19 Node 9 Zone 2 Lastnid 9
      mminit::pageflags_layout_pgshifts Section 0 Node 55 Zone 53 Lastnid 44
      mminit::pageflags_layout_nodezoneid Node/Zone ID: 64 -> 53
      mminit::pageflags_layout_usage location: 64 -> 44 layout 44 -> 25 unused 25 -> 0 page-flags
    Signed-off-by: default avatarMel Gorman <mgorman@suse.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a4e1b4c6
mm_init.c 4.02 KB