mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Herrmann <dh.herrmann@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Greg KH <gregkh@linuxfoundation.org>,
	Daniel Mack <daniel@zonque.org>,
	tixxdz@opendz.org, David Herrmann <dh.herrmann@gmail.com>
Subject: [PATCH] kdbus: raise hard-coded limit of matches
Date: Fri,  4 Sep 2015 11:02:35 +0200	[thread overview]
Message-ID: <1441357355-17619-1-git-send-email-dh.herrmann@gmail.com> (raw)

The current MATCH limit is far too low. We allow more bus-connections per
user than peers to install matches. Raise the limit to a reasonable
default of 4096. The current limit is exactly enough to run Gnome, but
can be easily exceeded by starting some additional service providers.
With the raised limit, we should be fine for the near future.

Some day, we might decide to make those limits dynamically configurable.
However, that needs some more benchmarking, until we can figure out
perfect defaults.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
---
 ipc/kdbus/limits.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipc/kdbus/limits.h b/ipc/kdbus/limits.h
index c54925a..bd47119 100644
--- a/ipc/kdbus/limits.h
+++ b/ipc/kdbus/limits.h
@@ -41,7 +41,7 @@
 #define KDBUS_SYSNAME_MAX_LEN			63
 
 /* maximum number of matches per connection */
-#define KDBUS_MATCH_MAX				256
+#define KDBUS_MATCH_MAX				4096
 
 /* maximum number of queued messages from the same individual user */
 #define KDBUS_CONN_MAX_MSGS			256
-- 
2.5.1


                 reply	other threads:[~2015-09-04  9:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1441357355-17619-1-git-send-email-dh.herrmann@gmail.com \
    --to=dh.herrmann@gmail.com \
    --cc=daniel@zonque.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tixxdz@opendz.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®