• 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 RAM Usage

     
    • 0 Vote(s) - 0 Average

    RAM Usage

    joshuaboniface
    Offline

    Project Leader

    Posts: 115
    Threads: 25
    Joined: 2023 Jun
    Reputation: 16
    Country:Canada
    #14
    2023-06-21, 08:09 PM
    Looking through the entries, Jellyin itself is using 17% of the memory, which if it's 16G is 2.7GB so pretty close to what systemctl said. FFMpeg is also using another 1.1%, and since it's a child process of Jellyfin, it would be counted, so we're basically at the ~3GB that systemctl reported:

    Code:
    USER        PID %CPU %MEM    VSZ  RSS TTY      STAT START  TIME COMMAND
    [///]
    jellyfin    2204  3.2 17.7 7034120 2850508 ?    Ssl  Jun20  51:08 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
    jellyfin  15988  2.9  1.1 9498676 191252 ?      Sl  19:16  0:23 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 50000000 -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -threads 1 -a

    However, nothing else in the output seems to be using any more RAM than this.

    Looking back at your graph, all it says is "Memory Usage". What monitoring tool is this? It's very likely that what you're seeing is not Jellyfin - or anything - actually using all the RAM, but Linux's page cache being put to use. https://www.linuxatemyram.com/ This is super common to see in more Linux-naive monitoring tools that treat anything using memory as "used" even though that memory is actually free to applications.

    You can check this yourself with free -m to see buff/cache, available and free; free will, after some time, start to get very low, but buff/cache increases along with available. buff/cache is memory used by the page cache i.e. caching files on the filesystem in memory for faster access, while available is the memory in the cache that is actually available for appliations to use.

    Graphing/monitoring Linux memory usage should be differentiating between these values so that one could see the actual application memory usage versus page cache usage, but your graph doesn't seem to be, so I suspect you're not seeing the whole picture there and thus thinking that Jellyfin is "using all the RAM" when in reality it's only using ~19% of it.

    Really, things only become a problem when you actually start seeing swap space being used. If swap isn't being used, even sitting at "100%" memory usage is fine as it's all page cache. Once things start swapping, or you start getting Out Of Memory errors in your syslogs (or dmesg), then you are truly out of memory.

    Hopefully that helps!
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    RAM Usage - by natzilla - 2023-06-20, 12:20 AM
    RE: RAM Usage - by skribe - 2023-06-20, 12:30 AM
    RE: RAM Usage - by natzilla - 2023-06-20, 12:45 AM
    RE: RAM Usage - by skribe - 2023-06-20, 01:20 AM
    RE: RAM Usage - by joshuaboniface - 2023-06-20, 04:19 AM
    RE: RAM Usage - by natzilla - 2023-06-20, 05:27 AM
    RE: RAM Usage - by Venson - 2023-06-20, 06:14 AM
    RE: RAM Usage - by natzilla - 2023-06-20, 02:34 PM
    RE: RAM Usage - by natzilla - 2023-06-21, 04:16 AM
    RE: RAM Usage - by Venson - 2023-06-21, 08:25 AM
    RE: RAM Usage - by natzilla - 2023-06-21, 04:31 PM
    RE: RAM Usage - by joshuaboniface - 2023-06-21, 05:52 PM
    RE: RAM Usage - by natzilla - 2023-06-21, 07:31 PM
    RE: RAM Usage - by joshuaboniface - 2023-06-21, 08:09 PM
    RE: RAM Usage - by natzilla - 2023-06-21, 09:21 PM
    RE: RAM Usage - by joshuaboniface - 2023-06-21, 11:58 PM
    RE: RAM Usage - by natzilla - 2023-06-24, 12:06 AM
    RE: RAM Usage - by joshuaboniface - 2023-06-24, 07:50 AM
    RE: RAM Usage - by natzilla - 2023-06-26, 03:19 PM
    RE: RAM Usage - by joshuaboniface - 2023-06-26, 04:35 PM
    RE: RAM Usage - by natzilla - 2023-06-26, 06:32 PM
    RE: RAM Usage - by TheDreadPirate - 2023-06-26, 06:38 PM
    RE: RAM Usage - by joshuaboniface - 2023-06-26, 07:05 PM
    RE: RAM Usage - by natzilla - 2023-06-26, 07:24 PM
    RE: RAM Usage - by natzilla - 2023-06-26, 07:32 PM
    RE: RAM Usage - by joshuaboniface - 2023-06-27, 03:31 AM
    RE: RAM Usage - by natzilla - 2023-06-27, 04:33 PM

    • 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