The SETI Driver Set Affinity option was put in at the request of Xeon 2Mb L2 Cache users. On any smaller L2 cache, the SETI Client generates cache misses anyway. On the 2Mb L2 cache, the SETI Client's data set will fit entirely in the processor cache, in which case forcing hard processor affinity will result in a performance boost.
In Windows NT/2K/XP, forcing Hard Processor Affinity does indeed lock a process onto a subset of the system CPUs. The SETI Driver Set Affinity option works as follows:
for i = 0 to MaxProcesses
if i > NumCPUs then Exit For
APICall_SetProcessAffinity(GetProcess(i)), i)
next i
This results in the first NumCPU Processes being locked onto a single processor. Any additional WU processes remain at "Soft Affinity" and can run on any processor.
Windows defaults to "Soft Affinity". In other words, it will attempt to keep a process on a single processor to avoid extra processor cache flushes and refills. However, if a higher priority process takes over a processor, Windows will move a waiting, ready to execute, process to another processor. With "Hard Affinity", Windows will allow the process to continue to wait for CPU time.
The SETI Driver "Set Processor Affinity" option forces Hard Affinity on the client processes up to the limit of the number of processors avaiable. Note that the transmitting client is always left at "Soft Affinity" - most of its time is spent waiting for the internet.
Mike Ober.