watchdog icon indicating copy to clipboard operation
watchdog copied to clipboard

Event storm while watching a CIFS mount

Open jdutriaux opened this issue 4 years ago • 3 comments

Hi, I'm watching a directory that has multiple subdirectories on a CIFS mount.

Sometimes I see a storm of FileCreated events happening for each file under the sub-directories I watch. I have like 1000 files in total so I get 1000 events at the same time.

I'm using PollingObserver, my guess is that sometimes the network is slow and it takes more time to get the list of files so the observer just assume that it's empty and at the next round he gets all the files. Am I wrong? If not, is there a way to circumvent that?

Thanks for your help!

jdutriaux avatar Jun 02 '21 15:06 jdutriaux

I'm seeing exactly the same issue. I have millions of files under the CIFS mount from a windows SMB share. I'm seeing "CIFS VFS: Server xxxx has not responded in 120 seconds." in dmesg, I wonder if there's timeout setting to avoid this.

fe0376 avatar Jun 30 '21 01:06 fe0376

Seconded, same issue here

matthdsm avatar Sep 10 '21 07:09 matthdsm

Seconded, same issue here

rogue-shadowdancer avatar Nov 09 '21 09:11 rogue-shadowdancer