On Tue, 2017-12-19 at 20:06 +0100, Peter Zijlstra wrote: > > Our SYNC hint does promise the caller will go away 'soon', although I'm > not sure how many of the current users actually honor that.
The sync hint is not a lie, or even a damn lie, it's a statistic :) It's very useful for... TCP_SENDFILE homer:..debug/tracing # cat trace|grep netperf|grep wakes|wc -l 2417 homer:..debug/tracing # cat trace|grep netperf|grep schedules|wc -l 4 TCP_STREAM homer:..debug/tracing # cat trace|grep netperf|grep wakes|wc -l 2506 homer:..debug/tracing # cat trace|grep netperf|grep schedules|wc -l 3 TCP_MAERTS homer:..debug/tracing # cat trace|grep netperf|grep wakes|wc -l 2465 homer:..debug/tracing # cat trace|grep netperf|grep schedules|wc -l 2 ...knowing that tasks are talking, but not the least bit useful for scheduler decisions other than "pull to same planet". Those are single instances, all of which exceed 180% combined util, one at 100%. Then there are multi-wakers, tasks that would have scheduled if they hadn't been given more work to do etc etc. Nope, stacking based upon that hint is most definitely not a good idea :) -Mike