[fpc-devel] AMD & Intel CPUCount
Mark Morgan Lloyd
markMLl.fpc-devel at telemetry.co.uk
Fri Dec 28 14:30:57 CET 2012
Marco van de Voort wrote:
> In our previous episode, Mark Morgan Lloyd said:
>>> cards and has been told to shut one down for maintenance. Solaris
>>> definitely does this on SPARC, I don't know about its position on x86,
>>> and I don't know about Linux's general position.
>> Also somebody needs to check the situation with VMWare, Qemu etc., since
>> they might be uncomfortable virtualising CPUID.
>>
>> I've just checked and taskset is supported on zLinux, so I'm fairly
>> confident that the API that underlies it is universal on Linux 2.6+: I
>> really do think that that's what should be used for this job.
>
> Note that in applications this should never be used for more than the
> default of a configurable option anyway.
>
> The way new processors deal with this, can change at any time, and not
> making this configurable would seriously limit the durability of the
> software.
If the number of CPUs changed during the lifetime of an app, it would
need to know the current situation rather than the original one.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-devel
mailing list