kernel/inotify-increase-max-user-watches.patch
Evgenii Shatokhin b6b23129ad New build model for the kernel (ported from kernel-4.6 project)
See the commits 05a8c4904699..16da528365de in
https://abf.io/kernels_stable/kernel-4.6.

Hightlights:
* New build model: everything in a single project.
* PAE by default on i586. No non-PAE flavours remain.
* SELinux is now built in (disabled by default).
* Dropped ndiswrapper (can be built separately if it is really needed).
2016-08-16 17:51:35 +03:00

20 lines
661 B
Diff

http://bugs.rosalinux.ru/show_bug.cgi?id=4791
It seems, many applications need max_user_watches to be at least 32768.
Let us set the default value of this parameter accordingly.
Signed-off-by: Eugene A. Shatokhin <eugene.shatokhin@rosalab.ru>
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c
index 78a2ca3..ecd1120 100644
--- a/fs/notify/inotify/inotify_user.c
+++ b/fs/notify/inotify/inotify_user.c
@@ -809,7 +809,7 @@ static int __init inotify_user_setup(void)
inotify_max_queued_events = 16384;
inotify_max_user_instances = 128;
- inotify_max_user_watches = 8192;
+ inotify_max_user_watches = 32768;
return 0;
}