Better HN
topnewbestaskshowjobs
Log inSign up

dendibakh

14 karma · joined Feb 5, 2018 (8y ago) · 24 submissions

Submissions

comment 3y ago · link · parent

... And the only (?) memory profiler for Windows.

2.

Performance Benefits of Using Pages for Code(easyperf.net ↗)

1 points · by dendibakh · 4y ago · discuss

comment 7y ago · link · parent

Thanks, and don't forget to measure. :)

comment 7y ago · link · parent

You can also visit easyperf.net (my blog). If you like Linux perf the same way I do, you will like it. Here are some links:

- https://easyperf.net/blog/2018/08/26/Basics-of-profiling-wit...

- https://easyperf.net/blog/2019/04/03/Precise-timing-of-machi...

- https://easyperf.net/blog/2019/02/09/Top-Down-performance-an...

But in the end, my almost every article contains a Linux perf use case scenario.

5.

A Programmer’s Guide to Performance Analysis and Tuning on Modern CPUs(linkedin.com ↗)

2 points · by dendibakh · 7y ago · discuss

6.

Everything you wanted to know about Intel Processor Traces(easyperf.net ↗)

1 points · by dendibakh · 7y ago · discuss

comment 7y ago · link · parent

Thanks for the great comment. Where I can read more about the impact of each item on variability?

comment 7y ago · link · parent

Thanks for the comment. As answered to the previous comment, yes, I agree. Likely I did a poor job of explicitly saying that those advises are not generally applicable. It usually makes sense to have a dedicated machine (pool of machines) that a properly configured to run perf tests. And nothing else is executed on them.

comment 7y ago · link · parent

Yep. And I think I stated that in the beginning of the article. :)

This one:

> It is important that you understand one thing before we start. If you use all the advices in this article it is not how your application will run in practice. If you want to compare two different versions of the same program you should use suggestions described above. If you want to get absolute numbers to understand how your app will behave in the field, you should not make any artificial tuning to the system, as the client might have default settings.

comment 7y ago · link · parent

Yes, that might be possible. However, you probably will get multiple cycle counts for the same function depending on which path was taken. And it works only if the amount of taken branches in the function is not that big (less than 32). Otherwise it will not fit into LBR stack. For example, if you have a loop with more than 32 iterations it will trash the LBR stack with backwards jumps. But yeah, for small functions it might work pretty well.

I would better go for analyzing not the whole function (all basic blocks of the function) but only the Hyper Blocks (typical hot path through the function). Here is the example of how to do it: https://lwn.net/Articles/680985/ chapter "Hot-path analysis".

comment 7y ago · link · parent

Thanks. I'm glad you like the article. :)

12.

Precise timing of machine code with Linux perf(dendibakh.github.io ↗)

2 points · by dendibakh · 7y ago · discuss

13.

How to collect CPU performance counters on Windows?(dendibakh.github.io ↗)

1 points · by dendibakh · 7y ago · discuss

14.

Performance optimization contest(dendibakh.github.io ↗)

2 points · by dendibakh · 7y ago · discuss

comment 7y ago · link · parent

Hi, I'm glad you like the article. The process how I went from TMAM metric to particular event that was used to calculate it is describe in the TMAM metrics table: https://download.01.org/perfmon/TMA_Metrics.xlsx

In the same row for DRAM_bound metric there is precise event PEBS specified that we can use for locating the issue. Sampling on the precise event will let us detect exact place in the code where we have the most amount of L3 misses.

Let me know if you have further questions!

16.

How good of a performance optimizer you are? Contest(dendibakh.github.io ↗)

1 points · by dendibakh · 7y ago · discuss

17.

Improving performance by better code locality(dendibakh.github.io ↗)

3 points · by dendibakh · 8y ago · discuss

18.

Advanced profiling topics. PEBS and LBR(dendibakh.github.io ↗)

2 points · by dendibakh · 8y ago · discuss

19.

PMU counters and profiling basics(dendibakh.github.io ↗)

1 points · by dendibakh · 8y ago · discuss

comment 8y ago · link · parent

Well, yeah. I don't know much about the current state of the art (because I don't touch the CodeGen on a daily basis), but I kind of look into the future with hope that compilers will better handle at least those "simple" cases. :)

comment 8y ago · link · parent

Thanks for this clear explanation!

Regarding your example with 1000 muls followed by 1000 loads... That's why in my experiments I interleaved loads and bswaps, because that's what (hopefully) every decent compiler will do.

22.

MicroFusion in Intel CPUs(dendibakh.github.io ↗)

1 points · by dendibakh · 8y ago · discuss

comment 8y ago · link · parent

Hi,

Thanks to everybody who commented the post. With your help I was able to close the gap in my knowledge and summarized it in my new post: https://dendibakh.github.io/blog/2018/02/15/MicroFusion-in-I...