Skip to contentSkip to conversation

Quick question about hyper-threading

DISCUSSION Chuck Ebbert 1 participant 1 message Apr 13, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Rovert Love

No, the current scheduler (HT or stock 2.5) does not do this.

Your theories are correct. It would be interesting to try this and see.

It is nontrivial to do the ->mm checks in the scheduler though - certainly they cannot be done easily (if at all) in constant-time (i.e., it won't be O(1)).

Is the scheduler even the right place to do that?

I was thinking maybe the task_struct could use a cpus_desired
field -- then other parts of the system could give the scheduler hints about which CPU to schedule a task on.

--
Chuck