3 ms·
Interesting, got a blog that goes into more detail?
by sevengraff 7y ago
Interesting, got a blog that goes into more detail?
- bertr4nd 7y agoWe wrote this paper about it for CGO: https://research.fb.com/publications/optimizing-function-placement-for-large-scale-data-center-applications-2/ https://research.fb.com/publications/optimizing-function-pla.... But the paper actually describes a significantly more sophisticated heuristic. My initial implementation simply used the number of perf samples divided by the size of the function, which helps make sure you’re getting the most out of your I-TLB. It worked shockingly well for its simplicity.