<div dir="ltr"><div style="font-size:small" class="gmail_default">In testing most of today, I watched memory usage to try to better understand how it is working.</div><div style="font-size:small" class="gmail_default">It matches what Stefan is seeing.<br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">I have imported a bunch of 4K video's and created a proxy out of it. In <br>
that Cinelerra session my memory usage became 9.9GB. When closing the <br>
project and reopening it the totally used memory reduced. What to make of <br>
this?</div></div></blockquote><div> </div><div><span class="gmail_default" style="font-size:small">My observations:</span></div><div><span class="gmail_default" style="font-size:small"> (1) Initial "Load" of a video shows the memory usage increasing while all of the occasional images show on the timeline.<br></span></div><div><span class="gmail_default" style="font-size:small"> (2) While "Playing" that video, the memory usage increases gradually as each image is shown in the compositor.</span></div><div><span class="gmail_default" style="font-size:small"> (3) Creating a "Proxy" of that video, the memory usage increases gradually.<br></span></div><div style="font-size:small" class="gmail_default"> (4) When "Playing" this proxied video, the memory usage basically stays the same (does not increase), probably because creating proxy loaded everything.<br></div><div><span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small">So, in all cases, the memory used is
 not released when the operation is complete because there is no reason to 
as it may be used shortly in playing or editing as you can see in the #4 above.<br></span></span></div><div><span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small"><br></span></span></div><div><span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small">Now when you quit out of Cinelerra and reload from backup, you are back to #1 above so memory usage will be less than #2, 3, or 4 because only memory usage of the "Load" is in effect since there has not yet been any "playing or editing".<br></span></span></div><div><span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small"><br></span></span></div><div><span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small">However, there is 1 anomaly that I believe shows that memory that should be released when switching between "Disable proxy" and "Enable proxy" is not being done properly.  I have logged BT #607 for this to be looked at.<br></span></span></div><div><span class="gmail_default" style="font-size:small"></span><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Then an editing session with these files live should load the files <br>
eventually, and cause the same memory usage. Personally I think it would be <br>
better to memory map files that are of interest. In that case the OS could <br>
choose where and when to put it into the main memory.<br></blockquote><div><br></div><div style="font-size:small" class="gmail_default">About the above statement, I am not sure how the OS would know which files to map "that are of interest" since how could it know?  Generally, I don't even know which is going to be of interest to me.  So as stated earlier, I believe that Cinelerra currently <span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small">does not release memory used when the operation is complete because there is no way for it to know which areas are of interest to the user and will be used shortly in playing or editing. <br></span></span></div><div style="font-size:small" class="gmail_default"><span class="gmail_default" style="font-size:small"><span class="gmail_default" style="font-size:small"><br></span></span></div><div> </div></div></div>