Number of Memory Accesses

Junaid Jameel Ahmad junaidfcs at gmail.com
Thu Oct 8 11:01:24 EDT 2009


Paul,

Thanks for your to the point questions.

I am interested in all the memory accesses when the process is
running. However, it will also be useful if I can also know how many
of these memory accesses just ended in cache and did not went to the
main memory.

Yes it will be also helpful too to distinguish the amount of accesses
contributed by each source (my own process, shared library, system
calls etc). It will simply make my analysis more concrete.

Junaid

On Thu, Oct 8, 2009 at 4:01 PM, Pawel Potera
<pawel.potera at astc-design.com> wrote:
> Junaid,
>
> Are you interested in all memory accesses when the process is running, or
> are you interested only in the actual main memory hits (subtract the ones
> that fall into cache)?  Are you interested in splitting the accesses into
> whether they are coming from shared libraries, system calls, whether they
> are due to page faults, etc.?
>
> Regards,
> Paul
>
> Junaid Jameel Ahmad wrote:
>>
>> Hi,
>>
>> I have a C/C++ program running on my ARM device with embedded linux. I
>> need to measure the number of times that process accesses the main
>> memory. How I can do that? Need to add some C/C++ to my program? If
>> yes any example?
>>
>> Also I have an another interlinked question. Do the amount of data
>> read/written from/to memory is fixed for each memory access? If no
>> then can I also calculate the amount of data read/written from/to
>> memory?
>>
>> Thanks,
>> Junaid
>>
>> _______________________________________________
>> linux-arm mailing list
>> linux-arm at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm
>>
>>
>



More information about the linux-arm mailing list