Skip to contentSkip to conversation

sched: Can we rename 'core scheduling' to 'smt scheduling'?

RFC Wang Jinchao 1 participant 2 messages Dec 19, 2023 – Jan 29, 2024

lore
Share & tools
lore
#0 lore raw

The term 'core' in 'kernel/sched/' implies a relation to the kernel of sched, and at the same time, 'core' is used in 'core scheduling' to represent a CPU core. Both meanings coexist in the 'core.c' file and appear numerous times.

This can be confusing for newcomers.

--
Wang Jinchao

#1 lore raw
Quoted 8 lines · Wang Jinchao

The term 'core' in 'kernel/sched/' implies a relation to the kernel of sched, and at the same time, 'core' is used in 'core scheduling' to represent a CPU core. Both meanings coexist in the 'core.c' file and appear numerous times.

This can be confusing for newcomers.

--
Wang Jinchao

Maybe we should rename sched/core_sched.c to sched/smt_sched.c,
and move relevant code from sched/core.c to smt_sched.c.
I believe using "smt" in smt_sched.c would be clearer than "core" in core_sched.c, especially considering its association with core.c.