Quote
Some thoughts here. Many users don’t have a swap file because they believe it is not needed when using a SSD. I have never run out of memory with a permanent swap file. There may not need to add an additional 10 GB+ of ram. Could you say add a 100 GB permanent swap file to the spinning hard disk and try this 2 minute test you did shown on YT again.
It may help not to have AVG, Opera, Edge and other apps running and be disconnected from the internet for this 2 min. test.
I have a 12GB RAM disk for temp file storage, and a 5GB swap file on my C: SSD. Running different apps obviously affects how much RAM is available, and in my tests it simply changed the point where the crash happen (as in sooner if more RAM was already in use).
I moved the swap file to a bigger drive and increased it, but only to 20-30GB because it's where Windows swaps out RAM contents, and I "only" have 20GB besides my RAMDisk. That RAMDisk also means even with nothing else running, my RAM usage is at 38%.
Producing again with the larger swap file maxxed out my RAM at just under 12GB and PD didn't crash, so increasing the swap file does solve the immediate issue. Thank you for suggesting that!
I'm still puzzled by the sheer numbers here though: considering that PD's baseline RAM usage is under 1GB with the editor open, that means to produce this
single second of video it actually required the amount of RAM shown in Task Manager (12GB)
plus my original swap file size (5GB)
plus some
additional amount of my new 20GB swap file.
The sum of the first two (17GB) wasn't enough to prevent a crash, but somewhere between 18 and 37GB was enough.
There are a total of 240 4K frames involved in that transition, and if they are all fully decompressed and sitting in RAM at the same time, they require less than 1GB (a MagicYUV conversion of the test clip has a bit rate of 1,862Mb/s which equals 233MB of data for 60 frames; 4 clips worth = 931MB), so processing this combination of transitions seems to require somewhere around 20x overhead.
Maybe that's perfectly normal, but it seems excessive to me - without any deep insight to what's actually happening.
It also shows that PD isn't managing memory usage here at all. It's great that Windows can swap out data fast enough to make a difference, but PD seems to just kept demanding more without verifying that there is actually enough space left to proceed.
Maybe if you're building a simple app that couldn't use 1GB of RAM if you ran 10 copies at once, memory management is unnecessary, but with such a demanding task as video producing, it sure seems like PD should be more aware of the system it's running on.
This message was edited 2 times. Last update was at Apr 21. 2019 19:18
YouTube/optodata
DS365 | Win11 Pro | Ryzen 9 3950X | RTX 4070 Ti | 32GB RAM | 10TB SSDs | 5K+4K HDR monitors
Canon Vixia GX10 (4K 60p) | HF G30 (HD 60p) | Yi Action+ 4K | 360Fly 4K 360°