I don't have a direct answer, but I would think the scheduling of threads is 
done by the Kernel, not gem5. However I think it should not be impossible if 
you want to write a patch which instruct gem5 to manually move a thread from 
one core to the other, as gem5 should have the thread context information, and 
inform the kernel of the thread migration.

You can look at how the Linux kernel place threads on cores - i.e., the 
scheduling and load balancing part, such as migration_thread, load_balance

On 21 Jun 2013, at 05:09, Hui Zhao wrote:

> Hi, all
> I am using alpha fs mode.   
> I want to have an application with 4 threads running on 4 cpus first. After 
> some cycles, I want to move a thread from a cpu to another cpu. So now one 
> cpu has 2 threads and one cpu is idle.  Can this be done in Gem5?
> Which files should I start with? 
> 
> Thanks
> Hui
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to