@@ -76,9 +76,9 @@ repositories; this may be overridden by setting `fsmonitor.allowRemote` to
7676correctly with all network-mounted repositories, so such use is considered
7777experimental.
7878
79- On Mac OS, the inter-process communication (IPC) between various Git
79+ On Mac OS and Linux , the inter-process communication (IPC) between various Git
8080commands and the fsmonitor daemon is done via a Unix domain socket (UDS) -- a
81- special type of file -- which is supported by native Mac OS filesystems,
81+ special type of file -- which is supported by native Mac OS and Linux filesystems,
8282but not on network-mounted filesystems, NTFS, or FAT32. Other filesystems
8383may or may not have the needed support; the fsmonitor daemon is not guaranteed
8484to work with these filesystems and such use is considered experimental.
@@ -87,13 +87,33 @@ By default, the socket is created in the `.git` directory. However, if the
8787`.git` directory is on a network-mounted filesystem, it will instead be
8888created at `$HOME/.git-fsmonitor-*` unless `$HOME` itself is on a
8989network-mounted filesystem, in which case you must set the configuration
90- variable `fsmonitor.socketDir` to the path of a directory on a Mac OS native
90+ variable `fsmonitor.socketDir` to the path of a directory on a native
9191filesystem in which to create the socket file.
9292
9393If none of the above directories (`.git` , `$HOME` , or `fsmonitor.socketDir` )
94- is on a native Mac OS file filesystem the fsmonitor daemon will report an
94+ is on a native filesystem the fsmonitor daemon will report an
9595error that will cause the daemon and the currently running command to exit.
9696
97+ LINUX CAVEATS
98+ ~~~~~~~~~~~~~
99+
100+ On Linux, the fsmonitor daemon uses inotify to monitor filesystem events.
101+ The inotify system has per-user limits on the number of watches that can
102+ be created. The default limit is typically 8192 watches per user.
103+
104+ For large repositories with many directories, you may need to increase
105+ this limit. Check the current limit with:
106+
107+ cat /proc/sys/fs/inotify/max_user_watches
108+
109+ To temporarily increase the limit:
110+
111+ sudo sysctl fs.inotify.max_user_watches=65536
112+
113+ To make the change permanent, add to `/etc/sysctl.conf`:
114+
115+ fs.inotify.max_user_watches=65536
116+
97117CONFIGURATION
98118-------------
99119
0 commit comments