<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: What time 18446744073709550.000 means</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tim Bunce</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-707520</link>
		<dc:creator>Tim Bunce</dc:creator>
		<pubDate>Sat, 09 Jan 2010 22:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-707520</guid>
		<description>That clock_gettime man page says &quot;The CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clocks are realized on many platforms using timers from the CPUs (TSC on i386, AR.ITC on Itanium). These registers may differ between CPUs and as a consequence these clocks may return bogus results if a process is migrated to another CPU&quot;

I think &quot;may return bogus results&quot; means that CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID can appear to &#039;go backwards&#039; if a process is migrated to a different cpu.</description>
		<content:encoded><![CDATA[<p>That clock_gettime man page says &#8220;The CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clocks are realized on many platforms using timers from the CPUs (TSC on i386, AR.ITC on Itanium). These registers may differ between CPUs and as a consequence these clocks may return bogus results if a process is migrated to another CPU&#8221;</p>
<p>I think &#8220;may return bogus results&#8221; means that CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID can appear to &#8216;go backwards&#8217; if a process is migrated to a different cpu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-707107</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Sat, 09 Jan 2010 00:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-707107</guid>
		<description>And this describes the broken behavior in CLOCK_THREAD_CPUTIME_ID and CLOCK_PROCESS_CPUTIME_ID -- http://linux.die.net/man/3/clock_gettime. I have no idea what values are returned by them, but CPU time can&#039;t go backwards.</description>
		<content:encoded><![CDATA[<p>And this describes the broken behavior in CLOCK_THREAD_CPUTIME_ID and CLOCK_PROCESS_CPUTIME_ID &#8212; <a href="http://linux.die.net/man/3/clock_gettime" rel="nofollow">http://linux.die.net/man/3/clock_gettime</a>. I have no idea what values are returned by them, but CPU time can&#8217;t go backwards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-707105</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Sat, 09 Jan 2010 00:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-707105</guid>
		<description>Why would CLOCK_THREAD_CPUTIME_ID go backwards? It isn&#039;t a wall clock timer, CLOCK_REALTIME and CLOCK_MONOTONIC do that. Ticks/nanoseconds/useconds of CPU time consumed by a process or thread should never go backwards. I think this is a bug in glibc or the Linux kernel.</description>
		<content:encoded><![CDATA[<p>Why would CLOCK_THREAD_CPUTIME_ID go backwards? It isn&#8217;t a wall clock timer, CLOCK_REALTIME and CLOCK_MONOTONIC do that. Ticks/nanoseconds/useconds of CPU time consumed by a process or thread should never go backwards. I think this is a bug in glibc or the Linux kernel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-564153</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 20 May 2009 16:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-564153</guid>
		<description>Vadmin - do you know why Google patches do not use monotonic clock in their patches for wall clock timing ?</description>
		<content:encoded><![CDATA[<p>Vadmin &#8211; do you know why Google patches do not use monotonic clock in their patches for wall clock timing ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-564152</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 20 May 2009 16:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-564152</guid>
		<description>Tim,

I think math wise you&#039;re right. However on the practical measures dealing with the huge values (not small negative values) is quite inconvenient.  We also mainly use this for things like query execution time etc where the gain of accuracy by using negative values is not worth loss of convenience.</description>
		<content:encoded><![CDATA[<p>Tim,</p>
<p>I think math wise you&#8217;re right. However on the practical measures dealing with the huge values (not small negative values) is quite inconvenient.  We also mainly use this for things like query execution time etc where the gain of accuracy by using negative values is not worth loss of convenience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foo</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-563723</link>
		<dc:creator>foo</dc:creator>
		<pubDate>Tue, 19 May 2009 22:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-563723</guid>
		<description>peter,

a monotonic clock won&#039;t go backwards and it probably provides equal or better performance when compared to the other clocks supported by clock_gettime.</description>
		<content:encoded><![CDATA[<p>peter,</p>
<p>a monotonic clock won&#8217;t go backwards and it probably provides equal or better performance when compared to the other clocks supported by clock_gettime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://blog.timbunce.org/</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-563663</link>
		<dc:creator>http://blog.timbunce.org/</dc:creator>
		<pubDate>Tue, 19 May 2009 21:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-563663</guid>
		<description>Vadim. I believe the clocks are synchronized, just not as frequently as we&#039;d like so they drift slightly. I had a link that, as I recall, explained that, but it doesn&#039;t work now (http://webnews.giga.net.tw/article/mailing.freebsd.performance/710).

Re your analogy, imagine you have two watches (2 cpus) and each time you measure an interval you pick a watch at random (thread switched to different cpu). Over thousands of measurements you&#039;ll get a more accurate total if you don&#039;t discard negative durations.</description>
		<content:encoded><![CDATA[<p>Vadim. I believe the clocks are synchronized, just not as frequently as we&#8217;d like so they drift slightly. I had a link that, as I recall, explained that, but it doesn&#8217;t work now (<a href="http://webnews.giga.net.tw/article/mailing.freebsd.performance/710" rel="nofollow">http://webnews.giga.net.tw/article/mailing.freebsd.performance/710</a>).</p>
<p>Re your analogy, imagine you have two watches (2 cpus) and each time you measure an interval you pick a watch at random (thread switched to different cpu). Over thousands of measurements you&#8217;ll get a more accurate total if you don&#8217;t discard negative durations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-563625</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Tue, 19 May 2009 17:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-563625</guid>
		<description>TimBunce,

It is two different timers. They are not synchronized. If we get negative time from two different clocks I do not see why we should add this time to total time, it has no good information.
It&#039;s like you measure time for runner and measure start time by your watches and measure finish time by your friend&#039;s watches, and difference between both watches is unknown.
It may happen your  friend&#039;s watches is slower by XYZ sec. And by your watches runner started at 10:54 and by your friend&#039;s watches he finished at 10:37.
By subtracting you get -0:17, but does it really have any sense ?</description>
		<content:encoded><![CDATA[<p>TimBunce,</p>
<p>It is two different timers. They are not synchronized. If we get negative time from two different clocks I do not see why we should add this time to total time, it has no good information.<br />
It&#8217;s like you measure time for runner and measure start time by your watches and measure finish time by your friend&#8217;s watches, and difference between both watches is unknown.<br />
It may happen your  friend&#8217;s watches is slower by XYZ sec. And by your watches runner started at 10:54 and by your friend&#8217;s watches he finished at 10:37.<br />
By subtracting you get -0:17, but does it really have any sense ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-563623</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Tue, 19 May 2009 17:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-563623</guid>
		<description>@Guillaume - thanks!</description>
		<content:encoded><![CDATA[<p>@Guillaume &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://blog.timbunce.org/</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/17/what-time-18446744073709550000-means/comment-page-1/#comment-563621</link>
		<dc:creator>http://blog.timbunce.org/</dc:creator>
		<pubDate>Tue, 19 May 2009 16:51:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=690#comment-563621</guid>
		<description>Barron, I was referring to the underlying negative values that could arise from the clock_gettime() calls in the original article. The fact they&#039;re presented as a huge positive my mysqld is obviously a bug.</description>
		<content:encoded><![CDATA[<p>Barron, I was referring to the underlying negative values that could arise from the clock_gettime() calls in the original article. The fact they&#8217;re presented as a huge positive my mysqld is obviously a bug.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

