kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Pankaj Suryawanshi <suryawanshipankaj@yahoo.com>
To: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"kernelnewbies@kernelnewbies.org"
	<kernelnewbies@kernelnewbies.org>
Subject: Re: How to calculate page address to PFN in user space.
Date: Sat, 6 Apr 2019 06:15:41 +0000 (UTC)	[thread overview]
Message-ID: <1002302887.779027.1554531341350@mail.yahoo.com> (raw)
In-Reply-To: <6977.1554499657@turing-police>





On Saturday, 6 April 2019 2:57 AM, Valdis Klētnieks <valdis.kletnieks@vt.edu> wrote:



On Fri, 05 Apr 2019 10:54:47 -0000, Pankaj Suryawanshi said:


> I have PFN of all processes in user space, how to calculate page address to PFN.

*All* user processes?  That's going to be a lot of PFN's.  What problem are you trying

to solve here?

I am trying to solve problem with cma allocation failure, and try to find process who pinned the pages from cma reserved area.

When cma allocation failed it dumped the information and it contains flags and page address, before failing i have information/PFN of processes who aquires pages from cma area. 
Now i want to find exact PFN of the dumped pages who is responsible for allocation failure.

Note: I have got the pfn from /tools/vm/page-types.c in user space and i have start pfn of cma reserved area, so i filter the cma area pfn.
(Hint - under what cases does the kernel care about the PFN of *any* user page?)

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2019-04-06  6:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1536252828.16026118.1554461687939.ref@mail.yahoo.com>
2019-04-05 10:54 ` How to calculate page address to PFN in user space Pankaj Suryawanshi
2019-04-05 21:27   ` Valdis Klētnieks
2019-04-06  6:15     ` Pankaj Suryawanshi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1002302887.779027.1554531341350@mail.yahoo.com \
    --to=suryawanshipankaj@yahoo.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=valdis.kletnieks@vt.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).