Scalability fix: tracepoint.c hash table size increase
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 12 Feb 2013 19:25:28 +0000 (14:25 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 12 Feb 2013 19:26:45 +0000 (14:26 -0500)
Speed up process startup for applications with large number of
tracepoints (e.g. 16k in J9 vm) by increasing the tracepoint.c hash
table size from 64 to 4096.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/tracepoint.c

index c803f8afda52d29c0066fcd47a3a1f83af5c346f..7de56ca0361dbbe5b55c0704cdcbe1eca44fb58a 100644 (file)
@@ -78,7 +78,7 @@ static CDS_LIST_HEAD(libs);
  * Tracepoint hash table, containing the active tracepoints.
  * Protected by tracepoint mutex.
  */
-#define TRACEPOINT_HASH_BITS 6
+#define TRACEPOINT_HASH_BITS 12
 #define TRACEPOINT_TABLE_SIZE (1 << TRACEPOINT_HASH_BITS)
 static struct cds_hlist_head tracepoint_table[TRACEPOINT_TABLE_SIZE];
 
This page took 0.025213 seconds and 4 git commands to generate.