4 ms·
EXACTLY! I wish someone would just explain why the behavior is different. Does linux only sched_yield on the same NUMA node ? (Linus' reply seemed to imply that
by muststopmyths 7y ago
EXACTLY! I wish someone would just explain why the behavior is different. Does linux only sched_yield on the same NUMA node ? (Linus' reply seemed to imply that). Windows will not pin threads unless you set processor affinity, AFAIK, so maybe that's the difference.
There are runnable threads that are not being run. It would be nice to know why.
Tell a person their code is wrong and you may have saved them from one mistake. Tell them why their code is wrong and you will save them from a dozen.
- wyldfire 7y ago> Does linux only sched_yield on the same NUMA node ? (Linus' reply seemed to imply that). Perhaps Linus' concern is that sched_yield doesn't guarantee any particular behavior, it just happens to be implemented that way now.
- Dylan16807 7y ago> Does linux only sched_yield on the same NUMA node ? > There are runnable threads that are not being run. It would be nice to know why. More extreme. It only applies to the same core, more or less. The original benchmarks are on a one-node CPU, after all.