Docker Desktop not using all cpu

Hi

My computer has 2 Xeon E5 2698 V4 processors. Total CPU count is 80. But when I check with “docker info” command, CPU count is 40.
I want it to use all processors. Is there a solution to this?

Docker Version : 4.10.1
Windows 11
32 GB RAM

If there is a restriction, it must be comming from WSL2.

You can try if setting the number of processors works:

See https://learn.microsoft.com/en-us/windows/wsl/wsl-config#configuration-setting-for-wslconfig for further configuration settings.

Unfortunately it didn’t work. :frowning:

Seems WSL2 is only able to use one cpu socket: WSL2 does not regconize 72c/144t (4 sockets server) only 64c · Issue #6923 · microsoft/WSL · GitHub.

In the early days of WSL2 the kernel was compiled with a restricted number of CPU’s. Since the kernel only exist on the WSL2 utility vm, you can check it with any of your WSL2 distributions using the command zcat /proc/config.gz | grep NR_CPUS=.

Docker Desktop is affected by restrictions of the underlying virtualization solution.

Unfortunately there doesn’t seem to be a solution. There is no other choice but to wait for Microsoft.

Thank you very much for your help.