You are here: Symbol Reference > MtxVec Namespace > Classes > TMtxVecController Class > public > TMtxVecController.CpuCores Property
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecController.CpuCores Property

Returns the number of physical CPU cores per one Numa Node.

Pascal
property CpuCores: integer;

This value defines the default MtxVec pool thread size and the ThreadDimension property. 

The OS scheduler will schedule threads on the same socket on which the memory is allocated. Embarcadero RAD Studio currently does not support memory allocation on a different NUMA node (December 2024). While it is possible to specify ThreadCount and ThreadDimension properties to be more than CPUCores on multi-socket systems, the performance benefits could be modest. 

Each time a thread enters sleep, it could wake up on a different CPU core (invalidating CPU cache) and also a different NUMA node (invalidating main memory), if thread affinity is not specified explicitely.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!