3 ms·
very cool to see such a powerful insight from userspace, although there's quite a few steps before doing the main loop. I had to google everything: ASLR, MTRR,
by jackhalford 8y ago
very cool to see such a powerful insight from userspace, although there's quite a few steps before doing the main loop. I had to google everything: ASLR, MTRR, frequency scaling. Thank you for commenting it so well!
- majke 8y agoWatch out, there is a bit of cargo cult there. Particularly around the operations preparing the data for the FFT. The C part is rather straightforward. The pinning is helpful, but not really needed. The MTRR was a dead end (but I left the code since it is fascinating). ASLR is kinda needed since it destroys determinism between runs. With all these tricks I still struggle to get the code running on Kaby Lake. It seems more stable on older CPU generations.