LWP migrating from one CPU to another in Solaris 2.5.1?
Hej Magnus! Kanska… > Hi! > > I’ve got a question about threads in Solaris 2.5.1, that I hope You can > answer for me! > > Short version: > How does the algorithm work that causes an LWP to migrate from one CPU to > another CPU in Solaris 2.5.1? The LWP gets contexted switched off CPU 0. When a different CPU becomes available, the scheduler looks to see how many ticks have passed. Solaris 2.5: if less than 4, some other LWP (or none at all!) gets the CPU. If > 3, then just put the LWP on the new CPU. > Longer version: > I’m doing some research about a tool that I hope could be used by multi-thread > programmers in order to find and possibly correct perfomance bottlenecks. > Basically the tool works in three phases: > 1) By running the multi-threaded program on a single processor we create a > trace wich represent the behaviour of the program. > 2) By simulating (or re-schedule) the trace on a multi-processor we can tell > wether the program has the desired speed-up or not. > 3) The s