From: Mathieu Desnoyers Date: Tue, 12 Feb 2013 19:25:28 +0000 (-0500) Subject: Scalability fix: tracepoint.c hash table size increase X-Git-Tag: v2.2.0-rc1~85 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=814f7df1401ce02529847840edd84836c1ce646a;p=lttng-ust.git 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 --- 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];