Re: Quick question about hyper-threading

From: Chuck Ebbert (76306.1226@compuserve.com)
Date: Sun Apr 13 2003 - 17:13:24 EST


Rovert Love wrote:

> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:29 EST