0a9e416
From 2d554ab4874943a6b73132ba84835586011f2b45 Mon Sep 17 00:00:00 2001
0a9e416
From: Adam Jackson <ajax@redhat.com>
0a9e416
Date: Fri, 30 Nov 2012 13:50:40 -0500
0a9e416
Subject: [PATCH] mieq: Bump default queue size to 512
0a9e416
0a9e416
Based on some bugzilla scraping just now.  Of xserver bugs with
0a9e416
attachments, the distribution looks like:
0a9e416
0a9e416
String                      | Matches
0a9e416
-------------------------------------
0a9e416
Increasing EQ size to 512   | 460
0a9e416
Increasing EQ size to 1024  | 52
0a9e416
Increasing EQ size to 2048  | 6
0a9e416
Increasing EQ size to 4096  | 0
0a9e416
0a9e416
Most of the "512" ones appear to be mostly harmless, some relatively
0a9e416
expensive path in either rendering or resource destruction simply taking
0a9e416
too long due to external pressures like paging or CPU contention.  So
0a9e416
let's raise the initial queue size, both to reduce the number of
0a9e416
spurious abrt reports and to drop fewer events in all but the most
0a9e416
pathological cases.
0a9e416
0a9e416
Signed-off-by: Adam Jackson <ajax@redhat.com>
0a9e416
---
0a9e416
 mi/mieq.c | 2 +-
0a9e416
 1 file changed, 1 insertion(+), 1 deletion(-)
0a9e416
0a9e416
diff --git a/mi/mieq.c b/mi/mieq.c
0a9e416
index b2c7769..c1d845b 100644
0a9e416
--- a/mi/mieq.c
0a9e416
+++ b/mi/mieq.c
0a9e416
@@ -60,7 +60,7 @@ in this Software without prior written authorization from The Open Group.
0a9e416
 #endif
0a9e416
 
0a9e416
 /* Maximum size should be initial size multiplied by a power of 2 */
0a9e416
-#define QUEUE_INITIAL_SIZE                 256
0a9e416
+#define QUEUE_INITIAL_SIZE                 512
0a9e416
 #define QUEUE_RESERVED_SIZE                 64
0a9e416
 #define QUEUE_MAXIMUM_SIZE                4096
0a9e416
 #define QUEUE_DROP_BACKTRACE_FREQUENCY     100
0a9e416
-- 
0a9e416
1.7.11.7
0a9e416