mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Love <rml@novell.com>
To: John McCutchan <ttb@tentacle.dhs.org>
Cc: linux-kernel@vger.kernel.org
Subject: [patch] inotify: change default number of queued events
Date: Mon, 01 Nov 2004 15:53:52 -0500	[thread overview]
Message-ID: <1099342432.31022.54.camel@betsy.boston.ximian.com> (raw)
In-Reply-To: <1099330316.12182.2.camel@vertex>

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]);



      parent reply	other threads:[~2004-11-01 22:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-01 17:31 [RFC][PATCH] inotify 0.15 John McCutchan
2004-11-01 20:07 ` Robert Love
2004-11-01 20:10 ` [patch] inotify: fix dnotify compile Robert Love
2004-11-01 20:28 ` [patch] inotify: idr stuff Robert Love
2004-11-03  2:52   ` Gene Heskett
2004-11-01 20:42 ` [patch] inotify: misc. style cleanup Robert Love
2004-11-01 20:53 ` Robert Love [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1099342432.31022.54.camel@betsy.boston.ximian.com \
    --to=rml@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ttb@tentacle.dhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®