Memory bandwidth measurement

Hi,

We are trying to find out if there are some tools available that we can use to measure cpu memory bandwidth (MB/s or GB/s) during the execution of python functions?

There is tool tinymembench available but it does benchmarking tests and we cannot use this for our python code.

Thanks

I’m not aware of any way to “measure” the bandwidth used in general. Maybe certain things could be done by exploiting perf counters but I’m not sure you’d find precisely what you’re looking for. Also, the bandwidth used doesn’t mean much, as depending on how predictable your accesses are, you may end up with completely different limits as access times are way more important than bandwidth alone.