4 ms·
As long as I admit respecting cgroup's setting is a good thing, I am not sure it's really quadrillions. Or is it? Need calculations
by kunley 1y ago
As long as I admit respecting cgroup's setting is a good thing, I am not sure it's really quadrillions.
Or is it?
Need calculations
- formerly_proven 1y agoI would've expected it to be either way too much or way too little, but after doing the math it could be sorta in the right ballpark, at least cosmically speaking. Let's go with three quadrillion (which is apparently 10^15), let's assume a server CPU does 3 GHz (10^9), that's 10^6, a day is about 100k seconds, so ~ten days. But of course we're only saving cycles. I've seen throughput increase by about 50% when setting GOMAXPROCS on bigger machines, but in most of those cases we're looking at containers with fractional cores. On the other hand, there are many containers. So...
- kunley 1y agoNice reasoning, thanks. Hey, but what did you have in mind with regard to bigger machines? I think we're talking here about lowering GOMAXPROCS to have in effect less context switching of the OS threads. While it can bring some good result, a gut feeling is that it'd be hardly 50% faster overall, is your scenario the same then?