Syncthing Performance Issue Resolved by Deleting the Index Database

I recently encountered a significant performance issue with my system becoming extremely sluggish whenever Syncthing was running. The interesting aspect was that IO monitoring didn’t show the system being completely saturated, yet the performance degradation was severe. Forcing Syncthing to quit immediately restored normal system performance. After investigation, I discovered that the index-v0.14.0.db folder had grown with numerous .ldb files but not very large( about 10+ 55M files). As an experiment, I completely deleted the index-v0.14.0.db folder (while keeping my config.xml intact) and restarted Syncthing. Then Syncthing rebuilt its database, and the system no longer experienced any lag or performance issues.

It cost me two hour to solve this problem , I thought my harddriver was going to die, really bad .

Is there a way to limit Syncthing’s resource usage or optimize the database maintenance automatically ?

You can try to follow https://docs.syncthing.net/users/tuning.html#tuning-for-low-resources, but is your database located on a spinning hard disk (i.e. not SSD or other type of flash storage)? If yes, then the slowness is probably expected…

Not sure if it’s worth to investigate a lot deeper as the database layer is going to change with v2.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.