Re: [RESOLVED] Core Affinity
Hmmm, a bit of playing around suggests that what I REALLY need to do is run this on a computer that I'm not also using to surf the web.
Re: [RESOLVED] Core Affinity
All threads have a priority. Those with the higher priority are executed before those with a lower priority. Have a look at
https://learn.microsoft.com/en-us/wi...ing-priorities
Re: [RESOLVED] Core Affinity
Yeah, I'm aware of priorities, but my understanding is that these run of the mill process threads will all have the same, basic, priority. My understanding is that elevating thread priorities should be done solely for pretty specialized things, such as core OS functionality.
Re: [RESOLVED] Core Affinity
I'm still playing around with this. At one point, I felt that the threads had hung up, possibly because of a deadlock (or at least, that what I was thinking might be the cause), so I went back to sequential operations because I really wanted to get some results. While doing other things on the computer, I came to realize that when I thought the threads were hung...they may not have been. The genetic algorithm has to evaluate every genome. Normally, this is speed S, but after observing the behavior for some time, I realized that some populations will have a speed NS, where N could be 10-20, or more. In other words, they're moving along, but some populations can be FAR slower to evaluate than others.
My test dataset was small and quick. Now that I'm evaluating some actual data, I'm learning some new things about the performance.
Re: [RESOLVED] Core Affinity
How many threads are we talking about? Since the threads appear to be CPU bound don't start more than there are cores, maybe even a few less.