[PTLsim-devel] Problems because of setting affinity

Ferad Zyulkyarov
Sat Oct 13 17:54:38 EDT 2007


Hi,

I run PTLsim in fullsystem mode. I run mutli-threaded applications on
the simulator and explicitly bind threads to the CPUs by setting the
CPU affinity because applications that I simulate are small and the OS
does not schedule the threads to different CPUs.

The problem that I observe is that in certain point the simulation
stops and the simulator does not simulate/execute any instructions (0
instructions/second).

Do you have any similar problems, and do you know why does it happen?

We (me and my colleague) suppose that the simulator does not run the
other VCPUs. And when thread 0 finishes execution it waits on join
point. But because the other CPUs are not running, they don't execute
the other threads (1, 2, 3) and the simulation blocks.

When I don't set the CPU affinity everything is fine (unless the
threads are not assigned to non-running VCPU). This happens with the
SMT and the sequential cores.

I use code revision 220 (it is a little bit old).

I would like to thank you for your comments and help on this issue.
Thanks,
Ferad

-- 
Ferad Zyulkyarov
Barcelona Supercomputing Center
c/ Gran Capita 2-4, Nexus I, 204
08034 Barcelona - SPAIN


More information about the PTLsim-devel mailing list