Re: Translating physical/linear address to virtual address

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

 



Hello Anish,

On Fri, Oct 02, 2015 at 08:37:25PM -0700, anish singh wrote:
> On Fri, Oct 2, 2015 at 12:58 PM, martin <iomartin@xxxxxxxxxxxx> wrote:
> 
> > Hello,
> >
> > I'm working with a kernel module that, through hardware events, gets a
> > list of physical and linear memory addresses accessed by a program. I
> > would like to convert these to the virtual addresses, as seen from the
> > user space.
> >
> 
> what are you trying to achieve?

I'm collecting some stats about these addresses, namely the amount of
accesses to each page that happen under specific conditions (and thus
why I use hardware events, instead of a simple memory trace).

My goal is to use this data to make informed decisions on pages
distribution in NUMA machines (with libnuma). The problem is that, as
far as I understood, physical and linear addresses won't necessarily be
the same between runs of the same program. Virtual addresses, on the
other hand, can be made to be consistent (by turning address space layout
randomization off).

Using virtual addresses also have the advantage that I can do all memory
management in userspace, with libnuma.

Thank you,
Martin

_______________________________________________
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