Swapnil
Swapnil

Reputation: 1

Is there a way to only use GPU for headless chrome process instead of CPU?

google-chrome --disable-gpu --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0
--no-first-run --no-default-browser-check --autoplay-policy=no-user-gesture-required --disable-infobars
--window-size=$window_size_x,$window_size_y --window-position=0,0 --disable-dev-shm-usage --no-sandbox
--no-sandbox-and-elevated
--no-zygote
--enable-webgl
--use-gl=desktop
--use-skia-renderer
--enable-gpu-rasterization
--enable-logging=stderr
--kiosk wwww.google.com

Details: Tried removing --disable-gpu flag in headless chrome

  1. In my scenario, I want to shift all load to GPU as it's free and other things require a GPU based machine and these types of machines have fewer CPU cores which means we can not run more Kubernetes pods on a single machine because of a CPU bottleneck
  2. OS: Ubuntu
  3. Using Kubernetes pod which is ubuntu based pod. Using Nvidia based machine in the AWS environment.

Upvotes: 0

Views: 673

Answers (1)

NYBACHOK
NYBACHOK

Reputation: 11

I needed headless Chrome running website with WebGPU enabled and meet same problem as you and seems solved it.

Tested on openSUSE Tumbleweed

google-chrome-stable http://localhost:3000  --enable-unsafe-webgpu --enable-features=Vulkan,VulkanFromANGLE --headless --remote-debugging-port=2500 --use-angle=enable

Beta, Unstable and Canary channels doesn't need --enable-features=Vulkan,VulkanFromANGLE.

Upvotes: 0

Related Questions