since I upgraded to syncthing v2 through Syncthing-Fork it uses loads of battery. It was getting marginally better with v2.0.10 over v2.0.9 but it still uses over 60 % (2.0.10 fix(syncthing): do not perform CPU benchmark on startup unless logging enabled by @pixelspark in #10398). With v1 syncthing was hardly even noticable compared to other services such as messenger apps e.g. Does someone else also see this behaviour?
I already tried to disable global discovery and relays, which didn’t really help and even with it being on it was working before. My Pixel 6 is on Android 16 and the battery is healthy enough. No changes there except the syncthing update. Also when I am not on wifi or deactivate syncthing my battery is fine again.
When I reported my experiences on syncthing-fork’s Github, the maintainer closed the issue saying that it would be too time consuming to debug and that I shoud try to get help on the forum. He also deleted the issue afterwards. So here we are: I don’t really know what to do now. Can anyone relate? Help would be much appreciated, since I really love syncthing and syncthing-fork.
I reported the same issue. It was closed with the message Wrapper or native draining? Please check which one., without any guidance on how I can find that out. The issue was also locked so I couldn’t even ask how. I also find the behavior of deleting all issues very sketchy which makes me loose trust in the maintainer.
Either way, @Catfriend1 can you provide guidance on how to find that out, here? Thanks.
I run Syncthing inside Termux, but I haven’t really noticed any difference between v1 and v2 in this aspect (and I believe there shouldn’t be any, because v1 and v2 behave the same regarding network connectivity, etc.).
Yeah, I was thinking more about how devices connect and talk to each other, especially since v1 and v2 are compatible with one another in this aspect. I myself have been using multiple connections for a very long time after enabling them as soon as the option became available in Syncthing v1.
Since in my case, I had battery drain, without even configuring sync inside the Android App beyond auto-start and the foreground service notification, it’s easy to reproduce. I disabled the app, installed and started v2.0.10 in termux, and there I have exactly the same problem:
Just to be clear, have you actually checked what happens with Syncthing v1 instead? Syncthing itself will always drain battery, especially when run in Termux with no restrictions, because then it stays running all the time. The main culprit is that it needs to maintain connections to other devices, discovery server, relays, etc., and when doing so, the application prevents the phone from sleeping.
I’m definitely seeing a large increase in battery usage as well. I don’t have stats from pre-v2, but the change has been very noticeable lately. I can provide logs and configs if needed to help troubleshoot this, but some guidance would be nice to know what’s relevant.
Just to make sure I did it right: I went to the “Advanced” settings through the WebGUI and under Defaults > Default Device, I set the Num Connections to 1. I also set the Num Connections to 1 for every paired device under Devices. The second part was probably unnecessary.
Actually, the second part was required, and the first one was optional . This is because the default setting will only apply when you add a new device.
What phone and android version are you using @sektor2sync? How can it be, that @m11kkaa and I experience such extraordinary battery consumption? @m11kkaa didn’t even need to configure sync to see this behaviour (see his post).
Here is my android.log from yesterday, but I don’t really know, if I should share my syncthing.log, since there might be too much personal information @Catfriend1? I also don’t see many repetitions of anything. Most entries are a couple of minutes or even hours apart.
Another test using v1.30.0.4-fdroid. The battery consumption is so low, it barely shows up. I’ll try to backport syncthing native v2 to v1.30.0.4-fdroid to find out which code base is at fault here.
I too am seeing greatly increased battery usage, and I also have a Pixel (6a) running Android 16.
I was previously running Catfriend1’s Syncthing-fork (GitHub build) v1.29.6.4 and had no noticeable battery usage. I recently upgraded to 2.0.10.1 and it now routinely uses ~10% of the overall battery every 4 hours. When the phone is otherwise idle, it shows as 80-90% of the battery usage! (note, that’s relative to the battery used in each two-hour period)
I am likely going to downgrade using my previous backup but I’m willing to provide logs or try experiments if it will help.
Yesterday, I started syncing ~65 GB of data to my computer from my phone, and my phone got really warm, and its battery drained rather fast, and that was fine. It made sense, I think. I can confirm it was Syncthing, the “Device care” section of Settings confirmed that.
But at some point Syncthing started using a lot of RAM, making my phone unusable until either I stopped Syncthing, or it would crash after it got to 3GB
And I can’t tell if the app just ran into a particularly large file I’m not aware of or if there is actually a bug