From 814f7df1401ce02529847840edd84836c1ce646a Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 12 Feb 2013 14:25:28 -0500 Subject: [PATCH] Scalability fix: tracepoint.c hash table size increase 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 --- liblttng-ust/tracepoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust/tracepoint.c b/liblttng-ust/tracepoint.c index c803f8af..7de56ca0 100644 --- a/liblttng-ust/tracepoint.c +++ b/liblttng-ust/tracepoint.c @@ -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]; -- 2.34.1