linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Print map for total physical and virtual memory
@ 2019-03-26  8:34 Pankaj Suryawanshi
  2019-03-26 11:36 ` Matthew Wilcox
  0 siblings, 1 reply; 6+ messages in thread
From: Pankaj Suryawanshi @ 2019-03-26  8:34 UTC (permalink / raw)
  To: linux-kernel, linux-mm

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 ?


Regards,
Pankaj
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Print map for total physical and virtual memory
  2019-03-26  8:34 Print map for total physical and virtual memory Pankaj Suryawanshi
@ 2019-03-26 11:36 ` Matthew Wilcox
  2019-03-26 12:35   ` [External] " Pankaj Suryawanshi
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2019-03-26 11:36 UTC (permalink / raw)
  To: Pankaj Suryawanshi; +Cc: linux-kernel, linux-mm

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [External] Re: Print map for total physical and virtual memory
  2019-03-26 11:36 ` Matthew Wilcox
@ 2019-03-26 12:35   ` Pankaj Suryawanshi
  2019-03-26 12:43     ` Matthew Wilcox
  0 siblings, 1 reply; 6+ messages in thread
From: Pankaj Suryawanshi @ 2019-03-26 12:35 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-kernel, linux-mm


________________________________________
From: Matthew Wilcox <willy@infradead.org>
Sent: 26 March 2019 17:06
To: Pankaj Suryawanshi
Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
Subject: [External] Re: Print map for total physical and virtual memory

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


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

Can you please elaborate about tools/vm/page-types.c ?
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [External] Re: Print map for total physical and virtual memory
  2019-03-26 12:35   ` [External] " Pankaj Suryawanshi
@ 2019-03-26 12:43     ` Matthew Wilcox
  2019-03-29  5:22       ` Pankaj Suryawanshi
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2019-03-26 12:43 UTC (permalink / raw)
  To: Pankaj Suryawanshi; +Cc: linux-kernel, linux-mm

On Tue, Mar 26, 2019 at 12:35:25PM +0000, Pankaj Suryawanshi wrote:
> From: Matthew Wilcox <willy@infradead.org>
> Sent: 26 March 2019 17:06
> To: Pankaj Suryawanshi
> Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
> Subject: [External] Re: Print map for total physical and virtual memory
> 
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

... you should probably use gmail or something.  Whatever broken email
system your employer provides makes it really hard for you to participate
in any meaningful way.

> Can you please elaborate about tools/vm/page-types.c ?

cd tools/vm/
make
sudo ./page-types

If that doesn't do exactly what you need, you can use the source code to
make a program which does.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [External] Re: Print map for total physical and virtual memory
  2019-03-26 12:43     ` Matthew Wilcox
@ 2019-03-29  5:22       ` Pankaj Suryawanshi
  2019-04-01  7:49         ` Pankaj Suryawanshi
  0 siblings, 1 reply; 6+ messages in thread
From: Pankaj Suryawanshi @ 2019-03-29  5:22 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-kernel, linux-mm


________________________________________
From: Matthew Wilcox <willy@infradead.org>
Sent: 26 March 2019 18:13
To: Pankaj Suryawanshi
Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
Subject: Re: [External] Re: Print map for total physical and virtual memory

On Tue, Mar 26, 2019 at 12:35:25PM +0000, Pankaj Suryawanshi wrote:
> From: Matthew Wilcox <willy@infradead.org>
> Sent: 26 March 2019 17:06
> To: Pankaj Suryawanshi
> Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
> Subject: [External] Re: Print map for total physical and virtual memory
>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

... you should probably use gmail or something.  Whatever broken email
system your employer provides makes it really hard for you to participate
in any meaningful way.

Okay i will use gmail.

> Can you please elaborate about tools/vm/page-types.c ?

cd tools/vm/
make
sudo ./page-types

If that doesn't do exactly what you need, you can use the source code to
make a program which does.

Thanks Matthew.
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [External] Re: Print map for total physical and virtual memory
  2019-03-29  5:22       ` Pankaj Suryawanshi
@ 2019-04-01  7:49         ` Pankaj Suryawanshi
  0 siblings, 0 replies; 6+ messages in thread
From: Pankaj Suryawanshi @ 2019-04-01  7:49 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-kernel, linux-mm


________________________________________
From: Pankaj Suryawanshi
Sent: 29 March 2019 10:52
To: Matthew Wilcox
Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
Subject: Re: [External] Re: Print map for total physical and virtual memory


________________________________________
From: Matthew Wilcox <willy@infradead.org>
Sent: 26 March 2019 18:13
To: Pankaj Suryawanshi
Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
Subject: Re: [External] Re: Print map for total physical and virtual memory

On Tue, Mar 26, 2019 at 12:35:25PM +0000, Pankaj Suryawanshi wrote:
> From: Matthew Wilcox <willy@infradead.org>
> Sent: 26 March 2019 17:06
> To: Pankaj Suryawanshi
> Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org
> Subject: [External] Re: Print map for total physical and virtual memory
>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

... you should probably use gmail or something.  Whatever broken email
system your employer provides makes it really hard for you to participate
in any meaningful way.

Okay i will use gmail.

> Can you please elaborate about tools/vm/page-types.c ?

cd tools/vm/
make
sudo ./page-types

If that doesn't do exactly what you need, you can use the source code to
make a program which does.

Is there any other way to print only cma area pages ? because i am interested for cma area pages only.

Thanks Matthew.
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-01  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26  8:34 Print map for total physical and virtual memory Pankaj Suryawanshi
2019-03-26 11:36 ` Matthew Wilcox
2019-03-26 12:35   ` [External] " Pankaj Suryawanshi
2019-03-26 12:43     ` Matthew Wilcox
2019-03-29  5:22       ` Pankaj Suryawanshi
2019-04-01  7:49         ` Pankaj Suryawanshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).