ABR with GPU also use CPU #1125
Replies: 5 comments 4 replies
-
Maybe, that GPU has a limit on the number of encoders that can be used simultaneously. If the GPU encoder allocation fails, it will automatically switch to a openh264(s/w) codec. Please share the full log. Then I can analyze the exact cause. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thanks for you answer @Keukhan Here are docker logs on start , and on stream start.
Thanks |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick reply. Fortunately, looking at the logs, all decoder, rescaler and encoders are using the GPU. so, I need to analyze which section uses CPU resources in the Docker environment. Thanks |
Beta Was this translation helpful? Give feedback.
-
Could you share the CPU usage per thread of the OvenMediaEngine process? You can check it with the command below Thanks |
Beta Was this translation helpful? Give feedback.
-
Here you go :
Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Hello,
Do you know why the CPU usage of OME with ABR is so high?
It seems my gpu is doing the encoding and decoding, but the cpu is running at 70%.
CPU usage is proportional to the number of incoming stream, and stay high for the whole duration of the stream.
My config :
I have OME running on a docker on Ubuntu 22.04.1 LTS
i built the docker based on [v0.15.1]:
docker build --file Dockerfile -t airensoft/ovenmediaengine:dev --build-arg GPU=TRUE
build was sucessfull.I run it with !
docker run -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=compute,utility,video -d -p 1935:1935 -p 3333:3333 -p 9000:9000 -p 8081:8081 --gpus all airensoft/ovenmediaengine:dev
my Server.xml :
cpu :
Model name: Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz
top :
docker stats :
Beta Was this translation helpful? Give feedback.
All reactions