[Plugin] wslimit v0.2
Posted: Tue Jan 17, 2023 8:28 am
This plugin is for libtorrent v2.x users wanting to limit memory usage to avoid possible performance degredation when page cache fills up, as been reported previously. It's comparabel to qbittorent's implementation regarding this, also using same default of 512 MiB and being windows only, as linux support isn't available in usefull form currently, but manual instructions available for that here though.
I additionally added a few extra related things I saw qbittorrent do, i.e. set memory priority of process to below normal while to avoid thrashing/sluggishness of the app, set "main event loop" thread to normal memory priority which is higher/equal than other threads, and a workaround for improving responsiveness of app when CPU resources are scarce, by raising main event loop thread to be just one level higher than libtorrent threads.
GTK-UI, Web-UI and config-file support for adjusting memory limit.
Code is available inside plugin, just unzip it.
Thanks to ambipro for original idea, offering help and testing, appreciated buddy.
wslimit-0.2.egg
Edit: Link down apparently, so here's alternative: https://1drv.ms/u/s!Ajl1yq0BfB-dgt0Ls0q ... A?e=GOAzgg
I additionally added a few extra related things I saw qbittorrent do, i.e. set memory priority of process to below normal while to avoid thrashing/sluggishness of the app, set "main event loop" thread to normal memory priority which is higher/equal than other threads, and a workaround for improving responsiveness of app when CPU resources are scarce, by raising main event loop thread to be just one level higher than libtorrent threads.
GTK-UI, Web-UI and config-file support for adjusting memory limit.
Code is available inside plugin, just unzip it.
Thanks to ambipro for original idea, offering help and testing, appreciated buddy.
wslimit-0.2.egg
Edit: Link down apparently, so here's alternative: https://1drv.ms/u/s!Ajl1yq0BfB-dgt0Ls0q ... A?e=GOAzgg