cancel
Showing results for 
Search instead for 
Did you mean: 

Server Gurus Discussions

asabot
Journeyman III

Measuring DRAM Accesses of a 5950x using AMD uprof

Hello,

 

I am trying to measure the number of DRAM accesses for a program running on a 5950x. I don't see a counter in the uprof documentation for this and AMDuProfPCM is not supported on my CPU. Is there a different approach I should be trying?

 

Thank you!

0 Likes
2 Replies
swarup
Staff
Staff

Re: Measuring DRAM Accesses of a 5950x using AMD uprof

Hi @asabot ,

While profiling using AMDuProf (GUI), choose 'Custom Profile' and Event = '0x44 - Any DC fills by data source', Mask = '0x8' to sample the DRAM access. Let us know if this helps you.

asabot
Journeyman III

Re: Measuring DRAM Accesses of a 5950x using AMD uprof

Hello,

Thank you for your response. I had previously tried using Event = '0x44' with Mask = '0x48', but the reported number was lower than what I expected. The event and mask you suggested also reports the same number. The reason I want this counter is because I wanted total number of DRAM accesses for my program.  I was calculating it by multiplying the event count and multiplying it by the cache line size (64 bytes). Is this how I should go about calculating the total DRAM accesses?

 

Thank you!

Tags (1)
0 Likes