NatronGitHub / Natron

Open-source video compositing software. Node-graph based. Similar in functionalities to Adobe After Effects and Nuke by The Foundry.
http://NatronGitHub.github.io
GNU General Public License v2.0
4.72k stars 342 forks source link

Massive resource usage #333

Open davidhealey opened 5 years ago

davidhealey commented 5 years ago

Problem

I have a read node pulling in a video connected to the viewer. That's all. I hit play, the preview lags like crazy, CPU hits 90% and RAM usage shoots up to 2-3GB. Playback is really choppy too.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/73187679-massive-resource-usage?utm_campaign=plugin&utm_content=tracker%2F83915136&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F83915136&utm_medium=issues&utm_source=github).
davidhealey commented 5 years ago

Just tested on Windows 10 and no problem there.

davidhealey commented 5 years ago

More tests. It seems that my PC is too good :p I changed the render threads setting from 0 to 6 and the parallel threads to 4 and now it seems to be mostly ok. The RAM usage is still high and the CPU usage is high when rendering but most importantly the playback is now smooth.

devernay commented 5 years ago

Can you please give details about your CPU? The output of lscpu would be nice. I'm reopening this for now.

davidhealey commented 5 years ago

Of course, it's a 6 core Intel i7-6850K @ 3.6GHz.

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 12 On-line CPU(s) list: 0-11 Thread(s) per core: 2 Core(s) per socket: 6 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz Stepping: 1 CPU MHz: 1202.414 CPU max MHz: 4000.0000 CPU min MHz: 1200.0000 BogoMIPS: 7011.54 Virtualisation: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 15360K NUMA node0 CPU(s): 0-11 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts flush_l1d

devernay commented 5 years ago

Do you have enough RAM on that system? Natron requires a lot of RAM, especially when multithreaded.

davidhealey commented 5 years ago

I assume so - 64GB

devernay commented 5 years ago

What does the value 0 for noRenderThreads correspond to on Linux and Windows? is it 12 on both, or 6 on one and 12 on the other? What fixed the issue: setting noRenderThreads to 6 or setting nParallelRenders to 4, or the combination of both?

devernay commented 5 years ago

the value that corresponds to 0 for noRenderThreads can be seen in the help tooltip

davidhealey commented 5 years ago

I changed both so I'm not sure which fixed it, I'll have to do some more tests

erikeah commented 2 years ago

Same problem here. All my system RAM is fulled, even setting that I just want to use 50% of my system RAM in cache settings.

I have 32GB of RAM and an AMD 5800x processor.