On Thu, Jan 5, 2012 at 20:09, Colin McCabe <cmccabe@xxxxxxxxxxxxxx> wrote: > Getting the system time is a surprisingly expensive operation, and > this poses a problem for logging system designers. You can use the > rdtsc CPU instruction, but unfortunately on some architectures CPU > frequency scaling makes it very inaccurate. Even when it is accurate, > it's not synchronized between multiple CPUs. Google leads me to http://pastebin.com/9csWfDvx which is a simple benchmark that happily does a gettimeofday call in about 28 nanoseconds on my Macbook Air. This is not where the bottleneck is. -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html