• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Irregular CPU Usage

     
    • 0 Vote(s) - 0 Average

    Irregular CPU Usage

    jellyfinadmin
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #1
    2024-11-20, 02:44 AM
    Hi! I have an install of Jellyfin and it is great!
    I am having some irregular CPU usage though.
    See the attached screenshot of my CPU. During the entire length of the screenshot, Jellyfin was streaming to a device on my network in a web browser and the video was HEVC.

    I have Jellyfin installed via Docker, on an N100 Intel CPU.
    I'll put my docker compose at the bottom.
    I guess my question is, is the show intermittent CPU usage normal? My server is able to stream while only using 5% CPU, but also spikes to around 95%. Why? How can I make it not do that?

    I don't have any need for transcoding, so it may be worth it to turn that off completely. How would I do that? Or should I edit my docker compose to allow hardware transcoding?

    Thanks!!


    services:
        jellyfin:
            container_name: jellyfin
            ports:
                - 8096:8096
            volumes:
                - ./configConfused-faceconfig
                - ./cacheConfused-facecache
                - ./mediaConfused-facemedia
            restart: unless-stopped
            image: lscr.io/linuxserver/jellyfin:latest
            environment:
                - PUID=1000
                - PGID=1000
                - TZ=Etc


    Attached Files Thumbnail(s)
       
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #2
    2024-11-20, 06:20 AM
    I would guess that if this happened when playing HEVC video, your client request a transcode because it doesn't support HEVC.
    If you turn off the ability to transcode, your client will fail to play it if that's the case.

    If you haven't set up Jellyfin to use the GPU for HWA, it will use the CPU to transcode the video. That will use a lot of CPU which is normal.
    Using HWA can offload this workload from the CPU so your CPU cores remain at a lower usage.

    So yeah, if you want to lower your CPU core usage, make sure to set up HWA.
    Please look at the Jellyfin documentation for help on that: https://jellyfin.org/docs/general/admini...ualization
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-11-20, 03:37 PM
    One thing that people misunderstand about transcoding is that it doesn't happen for EVERY video nor does Jellyfin transcode for the lulz. It transcodes when the client can't play the video as is. If the client CAN play a video as is, the jellyfin server will just send the file unmodified.

    One thing you need to do, since you are using the linuxserver jellyfin image, is add their intel openCL docker mod. This is specifically for HDR to SDR tone mapping when clients don't support HDR or the specific kind of HDR.

    https://github.com/linuxserver/docker-mo...encl-intel
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode