Re: Print map for total physical and virtual memory

From: Matthew Wilcox
Date: Tue Mar 26 2019 - 07:37:03 EST


On Tue, Mar 26, 2019 at 08:34:20AM +0000, Pankaj Suryawanshi wrote:
> Hello,
>
> 1. Is there any way to print whole physical and virtual memory map in kernel/user space ?
>
> 2. Is there any way to print map of cma area reserved memory and movable pages of cma area.
>
> 3. Is there any way to know who pinned the pages from cma reserved area ?

You probably want tools/vm/page-types.c