Possible multiple instance problem?

Status
Not open for further replies.

Krono

Ars Tribunus Militum
2,307
Subscriptor
I'm runnning two instances of Genome@Home, but one is going remarkably slower than the other. I'm running a dual proc Celeron box with Windows XP at the moment. I thought if I ran two instances that the performance hit for the 2nd instance would be minimal.

How can I be sure that each process is running on its own processor? Also, could this be some problem with XP?
 

Zoso

Ars Tribunus Militum
1,918
Is it safe to assume that you installed each client in its own unique directory? Did you set the processor affinity of each instance of the client? The latter issue will have the biggest effect on the problem you describe.

Unfortunately I have no experience with Windows XP - but if it is anything at all like W2K you should be able to manipulate CPU affinity settings via the task manager. How are you starting the clients?

Hope this helps - let us know how things turn out.
 

Krono

Ars Tribunus Militum
2,307
Subscriptor
I'm definitely running each instance from its own directory. (Figured that out the hard way :)

Don't know about processor affinitity, but I assumed that XP would load the processors accordingly.

In the process view of task manager, each instance is taking 50% of my CPU time. Also, the view of system resources shows that each processor is running at 100%.

I'm stumped.
 

TheJet

Ars Praefectus
4,598
Subscriptor++
That's how it's supposed to work. On dual processor systems, you will _always_ see non-SMP-aware processes taking up only 50% of the CPU. Only processes which are SMP-aware have the ability to take up the standard 99%. Of the clients I've used, only the d.net client is SMP aware, and thus is the only one who will show up as 99%.

If you had a quad-processor box, you'd see each instance taking only 25% ;)

TheJet
 
Originally posted by -blix-:
the processor affinity has nothing to due with it. You don't even need to set it to 100%, Windows will distribute the processes accordingly. Make sure that you have the two instances installed in two different directories.


Well... this is partially true. Windows is a smart enough operating system to use two processors, but that doesn't mean that it's smart enough to send the correect information to the correct processor. When you allow windows to choose the way that the processor time goes, you are allowing it to have programs open, and steal processor time from a client. By setting processor affinity (especially in w2k), and you set the priority to some relatively high priority, you ensure that one client will get a specified amount of processor time.

In my case, my dual 850 genomes full-time (again :p). One client is set to proc0, with a priority of idle. The other client is set to proc1, with a priority of realtime (usually, unless I play games). This guarantees that client 2 is going to get 850MHz of processor time. client 1 may only get 800MHz because of other running programs, but at least I guarantee that one client gets what I told it to have.

Now, Linux, on the other hand, doesn't have this problem at all :p

Glen
 
Status
Not open for further replies.