|
a/src/README |
|
b/src/README |
|
... |
|
... |
865 |
it if your system is short on resources. Periodic indexing is adequate in
|
865 |
it if your system is short on resources. Periodic indexing is adequate in
|
866 |
most cases.
|
866 |
most cases.
|
867 |
|
867 |
|
868 |
Increasing resources for inotify
|
868 |
Increasing resources for inotify
|
869 |
|
869 |
|
870 |
On Linux systems, monitoring a big tree may imply increasing the resources
|
870 |
On Linux systems, monitoring a big tree may need increasing the resources
|
871 |
available to inotify, which are normally defined in /etc/sysctl.conf.
|
871 |
available to inotify, which are normally defined in /etc/sysctl.conf.
|
872 |
|
872 |
|
873 |
### inotify
|
873 |
### inotify
|
874 |
#
|
874 |
#
|
875 |
# cat /proc/sys/fs/inotify/max_queued_events - 16384
|
875 |
# cat /proc/sys/fs/inotify/max_queued_events - 16384
|
|
... |
|
... |
880 |
#
|
880 |
#
|
881 |
fs.inotify.max_queued_events=32768
|
881 |
fs.inotify.max_queued_events=32768
|
882 |
fs.notify.max_user_instances=256
|
882 |
fs.notify.max_user_instances=256
|
883 |
fs.inotify.max_user_watches=32768
|
883 |
fs.inotify.max_user_watches=32768
|
884 |
|
884 |
|
|
|
885 |
|
|
|
886 |
Especially, you will need to trim your tree or adjust the max_user_watches
|
|
|
887 |
value if indexing exits with a message about errno ENOSPC (28) from
|
|
|
888 |
inotify_add_watch.
|
885 |
|
889 |
|
886 |
2.8.1. Slowing down the reindexing rate for fast changing files
|
890 |
2.8.1. Slowing down the reindexing rate for fast changing files
|
887 |
|
891 |
|
888 |
When using the real time monitor, it may happen that some files need to be
|
892 |
When using the real time monitor, it may happen that some files need to be
|
889 |
indexed, but change so often that they impose an excessive load for the
|
893 |
indexed, but change so often that they impose an excessive load for the
|