On Fri, 10 Feb 2017 21:18:30 -0800, "Chris M. Thomasson"
<inv...@invalid.invalid> wrote:
>On 2/9/2017 1:43 PM, Paavo Helde wrote:
>> On 9.02.2017 23:08, Chris M. Thomasson wrote:
>>> On 2/8/2017 12:44 AM, Paavo Helde wrote:
>>>>
>>>> Sorry for off-topic post, but comp.programming.threads seems to be long
>>>> dead.
>>>>
>>>> In short, I need to find out current CPU utilization of different NUMA
>>>> nodes in the computer. Could you suggest a portable (at least
>>>> Windows+Linux) C or C++ library for doing this? My google-fu is somehow
>>>> failing me today...
>>>
>>> I guess you can give this a try:
>>>
>>>
https://software.intel.com/en-us/intel-vtune-amplifier-xe
>>
>> AFAIK vtune is an application, not a library. When I said "I need to
>> find out" I actually meant "my library code needs to find out, when
>> running as a part of a some unknown application on some unknown hardware.
>>
>>> Also guess you can perhaps pin some threads to the NUMA nodes that can
>>> give some crude timing data. How are you arranging your overall
>>> synchronization scheme? Are you using affinity masks at all, or letting
>>> the OS handling things from that perspective?
>>
>> Yes I am attempting to bind a parallel thread pool in my program to a
>> single NUMA node (because profiling shows there is no point to let it
>> spread across nodes, it would be just wasting computer resources).
>
>Indeed. Sharing across NUMA nodes should be avoided like the damn plague!
with significantly lower latency than across a cluster. If you don't