Force Program to use Specific CPU Cores OR NUMA Node

Arthur Tan 0 Reputation points

How can we force programs on our work machines (Windows 10 Pro, Threadripper 3995WX) to run software on specific CPU cores OR NUMA nodes? I've tried the 'set affinity' trick, but it only works sometimes. Windows/the software will often change it back, so we get 32/64 cores doing absolutely nothing. Our programs/codes run at half the speed as a result.

Meanwhile, when we try to do 'set affinity' again, Windows blocks us, saying "unable to access or set process affinity".

Are there any solutions for this? Thanks

A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Arthur Tan 0 Reputation points

    If anyone is curious, I found Process Lasso to work well enough for our purposes.

    0 comments No comments