Re: [PATCH v2] sched/core: Skip sched_core_fork/free() when core sched is disabled

From: cruzzhao
Date: Mon Apr 25 2022 - 11:05:00 EST




在 2022/4/25 下午4:14, Peter Zijlstra 写道:
> On Mon, Apr 25, 2022 at 04:17:34AM +0800, Cruz Zhao wrote:
>> As __put_task_struct() and copy_process() are hot path functions,
>> the call of sched_core_fork/free() will bring overhead when core
>> sched is disabled, and we skip them in these cases.
>
> Only if you have profile data.. mostly these functions do whole lot of
> nothing.

Many thanks for suggestion, I'll test it.

Best wishes,
Cruz Zhao