question

HanLuhanlu-3045 avatar image
0 Votes"
HanLuhanlu-3045 asked CarlFan-MSFT answered

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

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-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CarlFan-MSFT avatar image
0 Votes"
CarlFan-MSFT answered

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


capture2.png (13.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.