The short answer is that there isn't one. If you look at (and re- 
enable) the ThreadInfo printing work/m5/src/arch/alpha/linux/system.cc: 
139. You can see how to get at thread information at any time. You can  
use that to grab the statistics you want. However, you could probably  
just compile into the pthreads program the m5 psuedo instructions for  
resetting statistics and exiting the simulator. If you do that at the  
start and finish of each run you'll get statistics your your  
application + the kernel  which seems like a valid way to measure the  
benchmark.

You can run up to 64 cores in FS mode. You can bind a thread to a  
specific core in linux using the sched_setaffinity() system call.  
However, some versions of the glibc library (including the ones on the  
disk image we distribute) and the gcc 3.X series compiler we have on  
our website do not support that system call. You'll need to create a  
new disk image if you want to use it (or just get the gentoo  
bootstrapping image) and use a gcc version 4.X compiler.

Ali



On Oct 6, 2008, at 7:58 PM, Aaron Williams wrote:

> Hello All,
>
> I have written a piece of code using Pthreads which partitions a  
> short time fourier transform across N threads.  I am now trying to  
> collect some data to show that it actually goes faster with more  
> threads in M5.  I am running my code in FS mode.  I just am having a  
> problem figuring out which parameter will tell me the execution time  
> or number of cycles it takes to execute a specific executable in the  
> sim enviroment.  Any help?  Also, is it true the FS mode wont run  
> more than two cores?  Is there a way I can force a thread to a  
> speceific core in FS mode??
>
> Aaron
>
> -- 
> Aaron S. Williams
> Graduate Student
> Arizona State University
> Department of Electrical Engineering
> [EMAIL PROTECTED]
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

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

Reply via email to