Re: Paging - can i know the last owner(pid) of a given page?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 08 Jan 2015 18:09:19 +0900, manty kuma said:

> Suppose, I have a kernel virtual address. Can I know which is the process
> that last used this address?

In general, no.

First off, there's no good definition of "used" - if an address is pointing
to (for instance) the inode for /dev/null, what does "used" mean?  And
more importantly, there's no hardware support for telling what kernel routines
accessed a given address (unless you want to use kgdb-ish techniques for
trapping on memory access - which gets *painful* if you have more than a
few dozen points of interest).

Second, it's quite possible that the most recent access was from a non-process
context like a hardIRQ or something.

What problem are you trying to solve here?

Attachment: pgpZ4IkXqHUUb.pgp
Description: PGP signature

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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux