LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2010, 05:17 AM   #1
rookieiitg
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
How to get the virtual addresses accessed by an application during its execution?


Hello everyone...
Could anyone tell me about how to get the list of virtual addresses being accessed by any application during its execution time. I don't want the complete memory map but just the pages which were accessed during an application's execution?
 
Old 03-17-2010, 08:49 AM   #2
Zuulie
LQ Newbie
 
Registered: Mar 2010
Location: London
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 1
I may not be able to help you, but the question was so intriguing that I couldn’t help having a look. The problem is the frequency of memory access in a process. It looks like systemtap almost can do it. Have a look at some of the memory examples:
http://sourceware.org/systemtap/examples/

The best option I saw was probably the kernel debug feature “mmiotrace”:
http://www.mjmwired.net/kernel/Docum.../mmiotrace.txt

There are a few things in /proc, but most of them is about memory regions rather than specific pages.

I hope that helps a bit.
 
Old 03-18-2010, 07:24 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
There are no metrics maintained for that. You could try systemtap, but it relies on trace points. A trace of page fault activity might suffice - presumably ignoring soft page faults.
But then you have to decide what you are really interested in - (just) your program code, shared library calls, malloc'ed storage, shared memory segments ...

Nothing is as easy as it first looks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Linux serve "virtual" files which are (re)produced by script when accessed? batonac Linux - Server 5 03-04-2010 09:02 AM
TUN Application - IP Addresses? arew264 Programming 1 06-04-2009 11:50 PM
Get IP addresses that accessed my site thisObject Linux - Software 13 11-14-2006 01:08 AM
Virtual File - Result of command execution - possible? bmintern Linux - General 2 10-24-2006 05:43 PM
Virtual Ip addresses jhayes Linux - Networking 2 09-30-2003 02:31 PM


All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration