Re: unixbench context switch perfomance & cpu topology

From: Wanpeng Li
Date: Wed Jan 24 2018 - 03:08:05 EST


2018-01-23 21:49 GMT+08:00 Mike Galbraith <efault@xxxxxx>:
> On Tue, 2018-01-23 at 18:36 +0800, Wanpeng Li wrote:
>>
>> Thanks for having a try, Mike. :) Actually the two context1 tasks
>> don't stack up on one logical cpu at the most of time which is
>> observed by kernelshark. Do you have any idea why there is 4.5 times
>> RESCHED IPIs which is mentioned in another reply for this thread?
>
> See resched_curr().

Yeah, I observe writer/reader pair is running on the same core
sometimes after more digging. Thanks Mike!

Regards,
Wanpeng Li