[patch] inotify: change default number of queued events

From: Robert Love
Date: Mon Nov 01 2004 - 17:52:49 EST


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@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/