Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: david.goulet@polymtl.ca (David Goulet)
Subject: [ltt-dev] [UST] BUG Ubuntu <= Karmic
Date: Thu, 16 Sep 2010 17:59:38 -0400	[thread overview]
Message-ID: <4C92934A.1040901@polymtl.ca> (raw)

Hi everyone,

A very _major_ bug, to say the least, was discover this afternoon in 
Ubuntu Karmic and below. The clock_gettime and gettimeofday function are 
syscalls and not VDSO as it suppose to be.

This makes UST go impressively slower because at each tracing event, you 
got a syscall in the fast path. We got at 2 times factor (per event 
speed) on Karmic and 5 times on Hardy.

We are currently waiting for feedback from Debian and Ubuntu to explain 
this changes in the glibc API. (If anybody knows why, please feel free 
to explain it on this list).

Here is a simple test to see if clock_gettime is in fact a syscall on 
your distribution (we've only tested Ubuntu distro) :

$ vim test.c

#include <sys/time.h>
#include <time.h>

int main(int argc, char **argv) {
	struct timespec ts;
	clock_gettime(CLOCK_MONOTONIC, &ts);
	return 0;
}

$ gcc -lrt test.c -o test
$ strace ./test

If you see this line in the strace output :
clock_gettime(CLOCK_MONOTONIC, ...)

it's a problem.

Thanks to all
-- 
David Goulet
LTTng project, DORSAL Lab.

PGP/GPG : 1024D/16BD8563
BE3C 672B 9331 9796 291A  14C6 4AF7 C14B 16BD 8563




             reply	other threads:[~2010-09-16 21:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 21:59 David Goulet [this message]
2010-09-16 22:58 ` David Goulet
2010-09-17  0:57   ` Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C92934A.1040901@polymtl.ca \
    --to=david.goulet@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox