lkml.org 
[lkml]   [2004]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch] inotify: change default number of queued events
From
Date
Hola, John.

The default of 16384 maximum queued events is way too high. That is a
lot of physical memory that the user can pin.

Attached patch takes it to 512.

Robert Love


change the default number of queued events down from 16384 to 512

Signed-Off-By: Robert Love <rml@novell.com>

drivers/char/inotify.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -urN linux-2.6.10-rc1-inotify/drivers/char/inotify.c linux/drivers/char/inotify.c
--- linux-2.6.10-rc1-inotify/drivers/char/inotify.c 2004-11-01 15:50:36.163496688 -0500
+++ linux/drivers/char/inotify.c 2004-11-01 15:48:15.380898896 -0500
@@ -921,7 +921,7 @@
if (ret)
return ret;

- sysfs_attrib_max_queued_events = 16384;
+ sysfs_attrib_max_queued_events = 512;

for (i = 0;inotify_device_attrs[i];i++)
device_create_file(inotify_device.dev, inotify_device_attrs[i]);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.058 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site