Subject Re: [firebird-support] How to Set CPU Affinity value for multicore processor?
Author Helen Borrie
At 11:35 AM 4/09/2011, trskopo wrote:
>Hi all,
>
>I want to set CpuAffinityMask value in firebird.conf for multicore.
>
>The description in that file told me that to use only first processor, the value is 1, to use both # CPU 1 and CPU 2, the value is 3.
>
>What is the value if I want to use # CPU 1, CPU 2, CPU 3, and CPU 4? Also the value to use # CPU 1, CPU 2, CPU 3, CPU 4, CPU 5, and CPU 6?
>
>And how do I test that firebird server running on multicore processors?
>Note : I am using SuperServer with multiple databases.

Superserver doesn't use multicore. Keep the affinity to exactly one physical processor if you are using SS. Use Classic if you want to make use of multiple cores. For Classic, you don't set CpuAffinity at all - the OS will direct the process to whatever core has spare capacity.

./hb