You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using gVisor with Docker. I found the number of processors in /proc/cpuinfo is always 8, which limits the the amount of CPUs that some applications can use (e.g., TensorFlow). When I step through the code I found that the ApplicationCores is always initiated with 8 when initiating the Kernel object [https://github.com/google/gvisor/blob/7049f4480dabac4b95a9117eafc47f4b2b3f24f5/runsc/boot/loader.go#L172]. I am wondering if it would be possible to set the value straight from host /proc/cpuinfo like the func initCPUFreq() does.
I am also wondering if there are any known solutions to limit the amount of resources (like CPUs and memory) that a container can use.
Docker version: 18.03.1-ce
The command run was docker run --runtime=runsc -it ubuntu /bin/bash
Thanks.
The text was updated successfully, but these errors were encountered:
I am currently using gVisor with Docker. I found the number of processors in /proc/cpuinfo is always 8, which limits the the amount of CPUs that some applications can use (e.g., TensorFlow). When I step through the code I found that the ApplicationCores is always initiated with 8 when initiating the Kernel object [https://github.com/google/gvisor/blob/7049f4480dabac4b95a9117eafc47f4b2b3f24f5/runsc/boot/loader.go#L172]. I am wondering if it would be possible to set the value straight from host /proc/cpuinfo like the func initCPUFreq() does.
I am also wondering if there are any known solutions to limit the amount of resources (like CPUs and memory) that a container can use.
Docker version: 18.03.1-ce
The command run was docker run --runtime=runsc -it ubuntu /bin/bash
Thanks.
The text was updated successfully, but these errors were encountered: