3 ms·
> Giving resources to the sibling hyperthread via pause is not the kind of context switch I'm talking about. Isn't this entire thread about "pause" ?? Anyway,
by dragontamer 8y ago
> Giving resources to the sibling hyperthread via pause is not the kind of context switch I'm talking about.
Isn't this entire thread about "pause" ?? Anyway, i think we both understand the difference between "context switch" and "pause" here.
> Pausing for as much as 10ms could be better under some circumstances, but that would seem to me to be heavier than a context-switch. Whether the system actually achieves better throughput or not in that case would be workload dependent.
Seems reasonable. Ideally, threads / cores shouldn't be blocked that long, so 10ms+ blocked periods is definitely an anomaly.
But whether or not a context switch is actually worth it? Ehhh, its hard to say for sure.