Skip to content

Commit

Permalink
[PATCH] inotify: change default limits
Browse files Browse the repository at this point in the history
Change default inotify limits: Maximum instances per user to 128 and
maximum events per queue to 16k.  The max instances used to be 128; the
change to 8 was a mistake.  Memory consumption is fine.

Signed-off-by: Robert Love <[email protected]>
Signed-off-by: John McCutchan <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Robert Love authored and Linus Torvalds committed Jul 26, 2005
1 parent 5eb22cb commit 1b2ccf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/inotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,8 @@ static int __init inotify_setup(void)
register_filesystem(&inotify_fs_type);
inotify_mnt = kern_mount(&inotify_fs_type);

inotify_max_queued_events = 8192;
inotify_max_user_instances = 8;
inotify_max_queued_events = 16384;
inotify_max_user_instances = 128;
inotify_max_user_watches = 8192;

atomic_set(&inotify_cookie, 0);
Expand Down

0 comments on commit 1b2ccf0

Please sign in to comment.