How does Windows Server 2019 manage priority with multiple users and parallel programs?

Han, Lu [hanlu] 1 Reputation point
2021-03-27T23:02:03.54+00:00

I am running a small-scale Windows Server 2019. There are around 3 active users every hour and each user is running a parallel computing program such as R and Matlab. As each user tends to request a very large number of cores (e.g. 40), the CPUs of the server will need to be shared across the users' programs. However, I find some programs, such as R, tend to get more CPU resources than others e.g., Matlab. This leads to inequality in the resource sharing among the active users and I have recently received several complaints. I have tried to set the R programs to a Below Normal priority but it does not seem to work. The parallel R programs still eat up the majority of the CPU cores. I wonder why the Below Normal priority does not work and if there is a way to limit the resource obtained by the R programs.

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,040 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carl Fan 6,681 Reputation points Microsoft Employee
    2021-03-29T07:13:44.483+00:00

    Hi,
    I consider that you could try to set affinity. It will let you choose how many cpu could be used to process.
    Open task manager>your application>Right click and choose go to detail>set affinity
    82288-capture2.png

    Now as far as I know, there used to be Windows System Resource Manager on Windows Server 08 however Windows Server 2019 doesn't have it. So currently, there is not a way to do this in an RDSH.
    If we try to set process priority or affinity don't work, I consider that the software you used may have its own priorities when developed. I'm afraid that you may could try to use some third party software. Please check the information link below:
    https://superuser.com/questions/214566/are-there-solutions-that-can-limit-the-cpu-usage-of-a-process
    Hope this helps and please help to accept as Answer if the response is useful.
    Best Regards,
    Carl

    No comments