Heya folks, I was having an issue which took me a while to work out what the source was and just want to share it for anyone else. I did find some other people over the years with this issue but no resolutions so I just want to share what the fix for my specific issue was.
I had random large bursts of traffic from my TrueNAS server to my personal PC which in running Bazzite with Gnome (a Fedora Silverblue rebase).
What it ended up being was my systemd localsearch file indexing process indexing my NFS shares.
I found it by looking in btop and finding the process consuming CPU and then network traffic. It shows as systemd -> localsearch3.
I use systemd to automount my NFS shares in /etc/fstab like this:
192.168.1.100:/mnt/hdd/music/ /home/user/nas-mounts/music nfs rw,user,noauto,async,noatime,x-systemd.automount,x-systemd-timeout=10s,,x-systemd.mount-timeout=10s,x-systemd.idle-timeout=10min,x-systemd.requires=network-online.target 0 0
My issue likely stems for mounting the NFS share inside my home directory which should be getting indexed.
There's a few fixes:
- Mount your NFS shares somewhere outside of the home directory.
- Add a .trackerignore file to the folders so the systemd localsearch process ignores those directories
I went with 2 because it was the easiest. I have not properly tested 1 may do so later to confirm it work.