This is a repost of the following report that got sadly closed immediately:
Setting any kind of vm.dirty_background_ratio or vm.dirty_background_bytes does not fix the problem.
I am using Syncthing to synchronize files between my NAS, Desktop and Smartphone and this in itself works fine, but there is an weird issue on my desktop.
When I copy a large file from a smb share on my NAS to my desktop, everything is fine. But when I copy the file back to the smb share in a different folder, the desktop completely stalls (Desktop clock stops, mouse cursor cannot be moved) till the copy operation finished. This only happens with smb shares, nfs shares are unaffected. Another interesting thing is, that this behaviour is not triggered, when the smb share is mounted graphically via the file manager, but when using the fstab or an systemd mount (I use such a mount).
All syncthing folders are located on the device directly, so they are not on any network storage device and should not interfere in any way.
I am sure this is caused by syncthing as removing the config folder and/or disabling syncthing fixes the issue. Syncthing without configured folders does not trigger the issue.
I already created a bugreport at the redhat bugzilla some time ago suspecting an issue with samba, but this seems not to be a samba issue: 2165393 – Desktop completly freezes when copying data from the home directory to the samba share
Does your log mention database corruption?
No, it does not.
Steps to Reproduce
- Create a systemd mount unit for the smb share.
- Start the mount unit to mount the smb share.
- Open a graphical file manager like nautilus.
- Select a file on the share that has at least 8GB in size and was not used/referenced/copied already in the current session. If it was, reboot the system if the specific file should be used.
- Copy this file from the smb share to an location on the desktop accessible to the user.
- Copy this file now to a different location on the NAS. It should be a location where this file never was before.
- Wait while the file gets copied.
- Often, after 4-6GB being copied, the desktop will freeze till the copy operation is finished.
The desktop should not freeze when a large file is copied to an smb share.
The desktop freezes when a large file is copied to an smb share.
OS: Fedora 38 Desktop: Gnome 44.2 File Manager: Nautilus Syncthing Version: 1.23.5 Browser: Firefox 114.0.2 Network Card: Chelsio T540 LP-CR
OS: Openmediavault 6.4.5 (based on Debian 11) Syncthing Version: 1.23.5 (Docker Container) Network Card: Asus XG-C100F
Device: Realme 6 OS: Android 11 Syncthing Version: 1.23.5 (App) Network Connection: Wifi