Plex and memory usage problems [SOLVED]


I’m sorry I just realized that I was looking at the swap usage.

But why is 92% of the memory being used for cached and 8% being used. I am using the Plex server and Transmission. I have also have to about once a week uninstall plex and reinstall plex because it seems to stop working. It will not show me any of my media files, but once uninstall it and reinstall it all my media is back.

@mpg Welcome to the Rockstor community. You might now consider editing this threads title to be more reflective of youre main issue, which now looks like its Plex related. This is bound to help with catching the eye of those that might be able to chip in and help. On your memory question: linux systems tend to try and use as much memory as they can given it’s such useful stuff. The memory used above that required to hold actual programs is most probably allocated to disc caching and the like. The following command in a terminal can tell you how much memory is being used for what, you might have to lookup the meanings of some of the sections though.

cat /proc/meminfo

Nice tally of how much memory is being used for what.

Please note that there have been some recent issues with the Plex rock-on and I am unsure if they have been sorted as of yet. Anyone care to chip in with any updates on this. I believe it is currently not recommended as there were some worrying behaviours observed in the upstream docker container used by Rockstor. There are plans to sort this but I don’t know what stage those plans are at. Currently it looks like we are best off not using it though according to the following post:-
http://forum.rockstor.com/t/please-dont-install-plex-rock-on/537

1 Like

Thank you for your help.

After typing in
cat/proc/meminfo
This is what i get

MemTotal: 15849692 kB
MemFree: 99392 kB
MemAvailable: 14626308 kB
Buffers: 328 kB
Cached: 14363436 kB
SwapCached: 0 kB
Active: 4476452 kB
Inactive: 10697984 kB
Active(anon): 376724 kB
Inactive(anon): 454368 kB
Active(file): 4099728 kB
Inactive(file): 10243616 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 7602172 kB
SwapFree: 7602172 kB
Dirty: 17328 kB
Writeback: 0 kB
AnonPages: 811420 kB
Mapped: 104736 kB
Shmem: 19892 kB
Slab: 274980 kB
SReclaimable: 243056 kB
SUnreclaim: 31924 kB
KernelStack: 6112 kB
PageTables: 18020 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 15527016 kB
Committed_AS: 2440708 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 318892 kB
VmallocChunk: 34358947836 kB
HardwareCorrupted: 0 kB
AnonHugePages: 335872 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 172240 kB
DirectMap2M: 8673280 kB
DirectMap1G: 7340032 kB

After disabling plex and restarting I now have 20% cached 3% used and 77% free.

MemTotal: 15849692 kB
MemFree: 12203288 kB
MemAvailable: 15342660 kB
Buffers: 2524 kB
Cached: 3124020 kB
SwapCached: 0 kB
Active: 2687528 kB
Inactive: 655336 kB
Active(anon): 221936 kB
Inactive(anon): 13168 kB
Active(file): 2465592 kB
Inactive(file): 642168 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 7602172 kB
SwapFree: 7602172 kB
Dirty: 196 kB
Writeback: 0 kB
AnonPages: 216368 kB
Mapped: 61984 kB
Shmem: 18784 kB
Slab: 112780 kB
SReclaimable: 91096 kB
SUnreclaim: 21684 kB
KernelStack: 3616 kB
PageTables: 11428 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 15527016 kB
Committed_AS: 577592 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 317808 kB
VmallocChunk: 34358947836 kB
HardwareCorrupted: 0 kB
AnonHugePages: 94208 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 110800 kB
DirectMap2M: 4540416 kB
DirectMap1G: 11534336 kB

thank you for your help.

When Plex runs it scans the filesystem, so a lot of data enters the buffer cache.

You must read the 92% cached as “not used”. As soon as something wants to use that memory, it will be made available. Count cached as “free”.

2 Likes