• 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 Troubleshooting High CPU & Disk Writes

     
    • 0 Vote(s) - 0 Average

    High CPU & Disk Writes

    lovestha
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Nov
    Reputation: 0
    Country:Australia
    #1
    2023-11-15, 03:25 AM
    My Jellyfin instance is frequently very sluggish (home page takes a minute to fully load) and CPU usage is high (50% of one core) and many writes are being done (50Mbps)

    I thought it was library scan related, but I've started noticing it when it isn't scanning.

    Running 10.8.12 using docker on OpenSUSE Tumbleweed.
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #2
    2023-11-15, 03:33 AM
    "openSUSE can run on any desktop or laptop PC, even those 20 years old devices!" https://en.opensuse.org/openSUSE:Hardware_FAQ

    that doesn't narrow it down, maybe it's normal for a 2003 Pentium 4; not normal for a 2023 Intel Core i9-14900K

    best not to assume everyone knows what hardware you have
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2023-11-15, 03:37 AM
    Hardware specs and logs, please.
    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]
    lovestha
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Nov
    Reputation: 0
    Country:Australia
    #4
    2023-11-15, 03:46 AM (This post was last modified: 2023-11-15, 03:49 AM by lovestha.)
    CPU: i3-8100
    RAM: 32G
    OS & database: Crucial P2 500G (the high disk writes are this drive, nearly no activity on others)
    Libraries: Local BTRFS on HDDs: 2x(meta RAID1-C3 & data RAID1 on three drives)

    Will posts logs in a couple of hours.

    History: I've been running jellyfin on these libraries for years, but since I consolidated down to a single server (the jellyfin instance used to mount the libraries over NFS) I've been seeing this behaviour. The only change to the system is that I've added more services (that are idle when this is occurring) and a lot more RAM.
    lovestha
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Nov
    Reputation: 0
    Country:Australia
    #5
    2023-11-15, 04:18 AM
    Glancing towards logs has me suspicious: why are so many transcodes occurring.....
    lovestha
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Nov
    Reputation: 0
    Country:Australia
    #6
    2023-11-23, 12:19 PM
    Okay, transcoding is not all the issue, no transcoding occurring right now, and 44% CPU 30~80Mbps writing to database (or transcode output dir, but I'm certain no transcoding is occurring, last transcode log was 5 hours ago)

    It is doing a scan of the TV library, but shouldn't have much to write to the database, there shouldn't be more than 10 new episodes.

    (I did do a complete rescan and replace of the YouTube database earlier in the day, but that completed many hours ago)

    Log: https://files.cerberos.id.au/s/Pp5sHjXydbRAxSq
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2023-11-23, 05:43 PM
    There's a lot going on in the log. Lots of failures regarding some json files it can't find anymore. I'd imagine that is contributing to the higher CPU and disk usage.
    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]
    lovestha
    Offline

    Junior Member

    Posts: 8
    Threads: 3
    Joined: 2023 Nov
    Reputation: 0
    Country:Australia
    #8
    2023-11-23, 10:11 PM
    The missing .temp.json files are all in the YouTube library refresh that completed successfully. And another refresh of it doesn't have any log outputs.

    I just don't get what a scan for new and updated files needs to write that much for.
    Kubwa
    Offline

    Junior Member

    Posts: 9
    Threads: 1
    Joined: 2023 Nov
    Reputation: 0
    Country:Germany
    #9
    2023-11-30, 08:40 AM
    Can you check if the writes are going to the library.db file of jellyfin? I had that problem. It is caused by the journaling mode chosen by jellyfin. it was so painfull in my installation, i had to fork jellyfin and change the journaling mode myself to wal.
    « 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