← Back to context

Comment by tiluha

6 months ago

This is something i have been thinking about lately. How well do these performance optimizations work in the cloud on a shared system?

Doesn't even have to be a shared system. Cache-dependent optimizations can conflict with other code in your own program that also need cache space. This is a generic problem with extrapolating from microbenchmarks.

It’s fair to assume that on a vm in the cloud the cores you get are dedicated to you - otherwise the CSP is risking exposure to headline making security problems.. (In the unpleasant event that someone exploits an unmitigated cpu bug.)

And of course the headline of getting a cpu you can’t fully use.

  • Im pretty sure this is not the case on most providers, where "dedicated" VPSs demand a significant premium over the default "shared" VPSs