SUMMARY Please, provide an option to disable logging in ~/.local/share/ktorrent. During the normal operation, logs are not necessary, and simply waste space and issue unnecessary writes to the disk, which can be harmful for SSDs. The logging is fairly intensive as well. For example, on my system with ~150 seeding torrents I can see a few dozens (30-60) log records per second. I'm assuming, logging intensity depends on the network activity and can easily go even higher. SOFTWARE/OS VERSIONS Operating System: Kubuntu 20.10 Ktorrent: 5.2.0 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.14.2 Kernel Version: 5.8.0-33-lowlatency OS Type: 64-bit Processors: 8 × Intel® Core™ i7-2600K CPU @ 3.40GHz Memory: 15.6 GiB of RAM Graphics Processor: GeForce RTX 2080 Ti/PCIe/SSE2
Related proposed change that adds a command line option to disable logging: https://invent.kde.org/network/ktorrent/-/merge_requests/86
Seems like the bug janitor but didn't work so I will post the details here: Git commit 1d15b7d578da30864e9de70523ba6854f525955f by Andrey Semashev. Committed on 11/11/2023 at 01:13. Pushed by stikonas into branch 'master'. Disable logging by default and add --enable-logging command line option. Logging is not useful during normal operation of the program and only generates unnecessary writes to the filesystem and periodic CPU load when the log files are compressed. So disable logging by default. Provide the --enable-logging command line option to enable logging back. The option is now also required to enable logging on console (which is further enabled by --verbose). Related: bug 430355 M +7 -3 ktorrent/main.cpp https://invent.kde.org/network/ktorrent/-/commit/1d15b7d578da30864e9de70523ba6854f525955f