(Yesterday, 07:07 PM)RobertUnger Wrote: I did the same thing. But i have only 32 GB RAM in total. I gues i could use 20GB or something. I'm only running jellyfin and pihole.....
I'll try out how much streams i can run...
Weren't you running Truenas scale? Truenas use ZFS, which loves RAM for caching.
Anyway, you can try setting a limit of say 16GiB for the transcode directory, and further down where you are to set the resource limits,set that limit to 20GB. Failure to set that second limit high enough will make the container crash when it runs out of memory. I found that out the hard way.
After that you'll have to figure out how much RAM one 4K movie use by looking at the Truenas dashboard, the screenshots here are from transcoding a high bitrate 4K HDR movie to H264, with tonemapping on my Intel Arc A310:
Worth noting that Jellyfin at this time also was serving an episode of a TV-show:
RAM usage hovers around 9,1-9,5 GB. Without it doing anything it stays at 1,99 GB. So a reasonable amount of usage in my case is 7-7,5 GB per 5 minutes of transcoded video.
You probably need to invest in more RAM or set the throttle time and time before segments are deleted lower than my values I posted screenshot of before.
Also, note that the Arc A310 is capable of transcoding at 3.92x, which is adequate for almost 4 consequent streams of this quality level. Lowering the bitrate will naturally allow for more streams. This is in addition to the TV-show episode, so the limit is probably closer to 4x.
BTW. Regarding CPU usage, I saw a peak of around 15% in the beginning of the transcoding, mind you that is only transcoding audio from 7.1 TrueHD to stereo AAC since I was using Firefox on my pc to test. It then settled down to pulses around 5-7% when it needed to transcode the next segments.

