kdbus: raise hard-coded limit of matches
PATCH 1/1 kdbus: raise hard-coded limit of matches
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 <[email protected]>
--- ipc/kdbus/limits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ipc/kdbus/limits.h +1 -1
@@ -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
Signature · 1 line
2.5.1