Hi all,
I have the following setup and try to enable hw encoding.
**System: Lenovo P330 Tiny with 8G RAM + i5-8500, Quadro P400 and 256GB **
OS: Fresh installation of Ubuntu 22.04.1 LTS
GPU Driver: Ubuntu proposed the installation of the nvidia-515.65.01 driver which I checked
After clean installation and a full apt update / upgrade run followed by fwupdmgr, I installed docker engine and docker compose. nvidia-smi looks good for me on the host system.
root@pve2:/home/numark1# nvidia-smi
Fri Aug 12 12:21:17 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 **Quadro P400** Off | 00000000:01:00.0 Off | N/A |
| 54% 51C P0 N/A / N/A | 0MiB / 2048MiB | 2% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
After that I installed the nvidia-toolkit and veryfied it with the nvidia dummy container:
root@pve2:/home/numark1# docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
Unable to find image 'nvidia/cuda:11.0.3-base-ubuntu20.04' locally
11.0.3-base-ubuntu20.04: Pulling from nvidia/cuda
d7bfe07ed847: Pull complete
75eccf561042: Pull complete
191419884744: Pull complete
a17a942db7e1: Pull complete
16156c70987f: Pull complete
Digest: sha256:57455121f3393b7ed9e5a0bc2b046f57ee7187ea9ec562a7d17bf8c97174040d
Status: Downloaded newer image for nvidia/cuda:11.0.3-base-ubuntu20.04
Fri Aug 12 13:06:07 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro P400 Off | 00000000:01:00.0 Off | N/A |
| 47% 49C P0 N/A / N/A | 0MiB / 2048MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
I thenk installed the linuxserver.io container, enabled nvidia runtime and set up the env variables for thge hardware.
version: "3.9"
services:
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
runtime: nvidia
environment:
- PUID=1000
- PGID=1000
- VERSION=docker
- PLEX_CLAIM=claim-XYZ
- NVIDIA_VISIBLE_DEVICES=GPU-00000000-aaaa-bbbb-cccc-000000000000
volumes:
- /home/numark1/docker/data_plex/config:/config
- /home/numark1/docker/data_plex/tv:/tv
- /home/numark1/docker/data_plex/movies:/movies
restart: unless-stopped
Additionally I executed nvidia-smi inside the container which was sucessfull.
I have a Plex Pass Lifetime and the hw transcode option is enabled in the plex settings.
Whenever something needs transcoding CPU usage spikes to 90% and the stream is stuttering, this hardware setup was running before without the docker part. At the moment I dont know what I missed or what can check ?
BR Daniel
Server Version#:
Player Version#:
