Plex not using the full CPU's potential

Server Version#: 1.24.3.5033
Player Version#: 1.35.1.2632-c6783c78

I’m running my Plex server with a pretty beefy CPU, the EPYC 7502P, but for massive h265 movies it only uses 20% CPU and is only able to transcode at 0.8 times playback speed, resulting in buffers.

Does Plex not use the full CPU or is it limited by something?

Do you have “Use hardware accelaration when available” enabled under trancoder settings?

Yes I have, I’ve been testing with many settings the past couple days and nothing I change has better results.

Do you see utilization of your GPU when transcoding? then that why it’s not using your cpu at a 100%.

The server does not have a GPU

Then HW accelaration would be whatever your hardware makes availiable like Quick-Sync or similar… But is it not given thta you have any compatible Hardware that support HW accelaration…

Yes but still, it uses 8 cores which leaves 24 cores idling. Why doesn’t it use more to keep up with playback?

AFAIK it should. Can you upload your log files were the issue is reproduced?

In what log file will this be shown?

The “Plex media server.log” will show info about your plex server installation and general info. trancoder statistics should show what the trancoder is doing. But generally I think the suggestion is to upload the zip file.

Although I appreciate the help, I’m not uploading files with the IPs of me and everyone who uses my Plex server to the internet, so could you tell me what lines I would be looking for that would display this issue?

Screenshot 2021-10-05 at 11.08.43
Screenshot for some more info about what I’m trying to do and you can see the 0.8 transcoding speed

You can go thru your log files and look for “error” or “warn” at the time you were experiencing these issues.

So for what I can see now is that you were correct about not support hardware transcoding

DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
DEBUG - [Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library

I am seeing these errors:

ERROR - [Transcode] [FFMPEG] - Cannot load libcuda.so.1
ERROR - [Transcode] [FFMPEG] - Could not dynamically load CUDA

But that should not result in an error - it should fallback to software i think. You could try to disable any HW accelaration.

It no longer logs those debug issues after disabling HW acceleration, but the transcoder speed is still the same

I don’t expect this to be the issue but just to make sure:

Oct 01, 2021 19:53:32.654 [5736] INFO - 8 4200 MHz processor(s): Architecture=0, Level=6, Revision=40457 Processor Identifier=Intel64 Family 6 Model 158 Stepping 9, GenuineIntel

This is from the start of “Plex Media Server.log” It shows my 8 cores on my 7700k. Yours should show 32 cores. does it?

I don’t see that exact log, this is all “INFO” returns for me

Oct 05, 2021 09:38:27.647 [0x7f38a0023b38] INFO - Plex Media Server v1.24.3.5033-757abe6b4 - Docker Docker Container (LinuxServer.io) x86_64 - build: linux-x86_64 debian - GMT 00:00
Oct 05, 2021 09:38:27.648 [0x7f38a0023b38] INFO - Linux version: 4.19.0-17-amd64, language: en-US
Oct 05, 2021 09:38:27.648 [0x7f38a0023b38] INFO - Processor AMD EPYC 7502P 32-Core Processor               
Oct 05, 2021 09:38:27.648 [0x7f38a0023b38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Oct 05, 2021 09:38:27.648 [0x7f38a0023b38] INFO - /usr/lib/plexmediaserver/Plex Media Server

It does see all 32 cores. Have you ever done a manuel ffmpeg transcode on that system? did it utilize all cores?

It does not, FFMPEG seems to be using around 35% with 8.1 times speed with a 1080p file