flood
flood copied to clipboard
Limit the CPU usage of child processes spawned via Flood
When the contents of a torrent is not media and with many files, the cpu usage quikly raise to 100% and lasts long. Maybe we could set rules for calling mediainfo for certain filename extension like .mkv and skip others like .rar
I'll have to do more research on this. This seems like a very OS-specific duty and I'm not sure that Node can control this type of thing. cgroups in Linux kernels are useful for this but I don't know what, if any, access to cgroups the Node app has.
If anybody has any ideas, I'd love to hear them!
I'm going to change the title to be more generic, I hope you don't mind!
There's node-cpulimit, although it seems to be using a somewhat hacky method to achieve it.
Not sure on how cross-platform it is as i've never used it myself.
May be resolved by 05a85f98f3f2232fcfd47cb2b9392be9daae2b1c and 516628f8e1ee7e2405ac98ed9ca1e2774a0d87e3.
Feel free to close the issue if it is no longer relevant.