4 ms·
I believe parent means you can pack multiple unrelated counters intended for the same core. The cache line is still uncontended, you're just storing more in it.
by reitzensteinm 6y ago
I believe parent means you can pack multiple unrelated counters intended for the same core. The cache line is still uncontended, you're just storing more in it.
If you're building these things up from scratch this should be obvious, but if you're pulling in a library it's easy to not realize how wasteful it is being.
- terrelln 6y agoYeah that’s right. All the counters use the same indexing scheme, so all accesses to the same cache line should be on the same core.