nagetech 66 Posted August 10, 2022 Share Posted August 10, 2022 Howdy emby family! Lately I've been thinking about changing my Transcoding Temp Directory from my Raid 0 SSD's over to a RAM Drive. I have about 60GB I can use as a RAM Disk. Instead of wearing out my SSDs, thought this would be a smarter option. What concerns me is, I've noticed my Transcoding folder can sometimes reach upwards of 100GB if I dont restart emby for a long time. Shouldn't emby purge once users are done with a video file? Figured I'd ask here about this before I switch over and cause a problem. I'd imagine if emby just filled the tiny Ram Disk, all playback would cease until an emby restart. Thanks in advance everyone! Link to comment Share on other sites More sharing options...
Happy2Play 8882 Posted August 10, 2022 Share Posted August 10, 2022 5 minutes ago, nagetech said: Shouldn't emby purge once users are done with a video file? Normally yes, but there are clients like the Roku that if you use the Home button instead of the back arrow will leave the session behind and the only way to clear abandoned session data is restarting Emby. Unless you take matters into your own hands like some others and script clear media a day old. 8 minutes ago, nagetech said: I'd imagine if emby just filled the tiny Ram Disk, all playback would cease until an emby restart. Technically no as the new method monitors size and automatically dumps old segments. Clean HLS segments during playback when disk space is low Link to comment Share on other sites More sharing options...
nagetech 66 Posted August 10, 2022 Author Share Posted August 10, 2022 So if I'm understanding you right, if I switch over to the Ram Disk, and Emby fills it up, it will start proactively cleaning up ? What version of Emby is that support baked into? Link to comment Share on other sites More sharing options...
Happy2Play 8882 Posted August 10, 2022 Share Posted August 10, 2022 Just now, nagetech said: So if I'm understanding you right, if I switch over to the Ram Disk, and Emby fills it up, it will start proactively cleaning up ? What version of Emby is that support baked into? That is in 4.7+, but yes you could still have abandoned session depending on the reason it got abandoned. But a new session will monitor space and clean up as it goes within that limited space. Link to comment Share on other sites More sharing options...
nagetech 66 Posted August 10, 2022 Author Share Posted August 10, 2022 Perfect Thank you for that! As soon as I have time I'll switch over to the 60GB Ramdisk and not worry about it. Glad Emby can manage that, was worried I'd either have to give up on the idea or buy a boatload more RAM! Link to comment Share on other sites More sharing options...
ebr 15186 Posted August 10, 2022 Share Posted August 10, 2022 10 hours ago, Happy2Play said: clients like the Roku that if you use the Home button instead of the back arrow will leave the session behind and the only way to clear abandoned session data is restarting Emby Hi. The above should no longer be the case. The server should clean that up within a minute or two. The one situation that may still be an issue is when you try to tune to a live channel and you back out of it before it starts playing. In that case, it may be possible for the session to get stranded. Link to comment Share on other sites More sharing options...
nagetech 66 Posted August 11, 2022 Author Share Posted August 11, 2022 @ebr Just to confirm then, if I setup a 60GB RAM Disk, and point emby to it as the transcode directory, I won't have to worry about it running out of space as Emby should be tidying up. I don't use any Live TV Functions, unless the Virtual TV Plugin Counts in some way? Link to comment Share on other sites More sharing options...
pünktchen 1282 Posted August 11, 2022 Share Posted August 11, 2022 5 hours ago, nagetech said: I don't use any Live TV Functions, unless the Virtual TV Plugin Counts in some way? Only if you use "Continous Playback". Then what ebr said about live tv is still true. Link to comment Share on other sites More sharing options...
ebr 15186 Posted August 11, 2022 Share Posted August 11, 2022 You should be okay but I'm not sure trying to use a RAMDisk is going to give you much of anything. Link to comment Share on other sites More sharing options...
nagetech 66 Posted August 11, 2022 Author Share Posted August 11, 2022 @ebr As mentioned in the original post, the whole reason I want to use the RAMdisk is to free up the SSD's I'm using for another purpose. That and I felt just having an SSD for transcoding was just wasting the drive as all I did was wear it out Link to comment Share on other sites More sharing options...
chris0101 3 Posted August 11, 2022 Share Posted August 11, 2022 Has this been improved upon in 4.7? I tried this when it was released and it still had issues , for example if a second user started a stream it would fail as the disk space was already low. Still think it would be better if we were allowed to control the cleanup so it could work more closely to how Plex does it. Link to comment Share on other sites More sharing options...
Luke 37994 Posted August 11, 2022 Share Posted August 11, 2022 1 hour ago, chris0101 said: Has this been improved upon in 4.7? I tried this when it was released and it still had issues , for example if a second user started a stream it would fail as the disk space was already low. Still think it would be better if we were allowed to control the cleanup so it could work more closely to how Plex does it. Hi, yes it has been improved in 4.7. Link to comment Share on other sites More sharing options...
chris0101 3 Posted August 11, 2022 Share Posted August 11, 2022 I will give this a try and report back 1 Link to comment Share on other sites More sharing options...
chris0101 3 Posted August 18, 2022 Share Posted August 18, 2022 On 11/08/2022 at 17:10, Luke said: Hi, yes it has been improved in 4.7. Seems i'm still having the issue where my 4gb ramdisk gets filled with 1 movie transcoding, if only that one movie is playing thats fine, it very slowly deletes previous chunks and replaces with new ones the problem occurs when / if someone else starts streaming at the same time, there stream just hangs Link to comment Share on other sites More sharing options...
nagetech 66 Posted August 18, 2022 Author Share Posted August 18, 2022 Thanks for your input @chris0101 I am running my Ram Drive on 60GB and so far haven't had an issue with it filling up. It has only been a few days so far though. I'm sure @Luke will keep an eye on things and adjust emby as needed. 1 Link to comment Share on other sites More sharing options...
Luke 37994 Posted August 18, 2022 Share Posted August 18, 2022 27 minutes ago, chris0101 said: Seems i'm still having the issue where my 4gb ramdisk gets filled with 1 movie transcoding, if only that one movie is playing thats fine, it very slowly deletes previous chunks and replaces with new ones the problem occurs when / if someone else starts streaming at the same time, there stream just hangs Right, the chunk deletion during playback is something that we introduced relatively recently and will continue to keep improving on. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now