From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Tue, 28 Apr 2015 15:47:38 +0000 (UTC) Subject: [lttng-dev] UST performance In-Reply-To: <2d399e36-59c3-4648-8b13-53a4b36b68de@aliyun.com> References: <2d399e36-59c3-4648-8b13-53a4b36b68de@aliyun.com> Message-ID: <1778982370.39421.1430236058233.JavaMail.zimbra@efficios.com> Hi, Is your sched_getcpu() system call a vdso too ? This may explain the difference. Moreover, make sure you #define _LGPL_SOURCE in your benchmark program before including any lttng ust header. It will inline many functions associated with tracepoints. Then, you can try using "perf" to profile the runtime execution of your program traced by lttng-ust ? This should give us the information we need to investigate the performance profile. Thanks, Mathieu ----- Original Message ----- > Hi,dev > About a month ago,I asked a question about how to do time recording for ust > event when vdso_clock_gettime not availble on my platform?Glibc too > old?.Recently I implemented a lib to analyze vdso in memory and lookuped the > symbol vdso_clock_gettime successfully.With this vdso_clock_gettime > availble,I get a 16% improvement in time spending per ust event. I.E. I > measured the time taked by a event with 10 bytes string : > no vdso_clock_gettime : 0.642us > with vdso_clock_gettime?0.554us > However?Both the numbers are much higher than the following 0.28us(But closed > to 0.5us --W/O opt). So what's the difference between UST(0.28us) and UST > W/O OPT(0.5us)?? > PS:My hardware > 2 x Xeon E5-2430 2.20GHz 100MHz FSB (24 cores) 94.6GB / 96GB 1333MHz DDR3 == > 6 x 16GB, 6 x empty > Thanks > zhenyu.ren > _______________________________________________ > lttng-dev mailing list > lttng-dev at lists.lttng.org > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: temp4cj.png Type: image/png Size: 34762 bytes Desc: not available URL: