<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to subtract in SQL over samples that wrap</title>
	<link>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/</link>
	<description>Stay curious!</description>
	<pubDate>Thu, 24 Jul 2008 00:17:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Bill Minton</title>
		<link>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4224</link>
		<author>Bill Minton</author>
		<pubDate>Tue, 20 Feb 2007 21:08:28 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4224</guid>
		<description>&lt;p&gt;Oh ok, you're sampling it.  I was trying to figure out why it would write out a value lower than it's threshold.

Now I'll have to re-read the article with a little better understanding. :)&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Oh ok, you&#8217;re sampling it.  I was trying to figure out why it would write out a value lower than it&#8217;s threshold.</p>
<p>Now I&#8217;ll have to re-read the article with a little better understanding. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4223</link>
		<author>Xaprb</author>
		<pubDate>Tue, 20 Feb 2007 20:48:47 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4223</guid>
		<description>&lt;p&gt;Bill, thanks for writing in.  It absolutely could wrap more than once.  However, in real life, most things I know of (like traffic through a network interface) wrap at some large number, such as the size of an unsigned integer.  If you sample it often enough, you should be able to get a fairly smooth curve and very low probability of two wraps in one.  For example, if you know your counter increases at 1000 per second and you sample every second, there's no way two wraps could sneak past you.&lt;/p&gt;

&lt;p&gt;The value didn't wrap at 900; I sampled it at 900, it increased to 1000 and back to 230 before I sampled it again.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Bill, thanks for writing in.  It absolutely could wrap more than once.  However, in real life, most things I know of (like traffic through a network interface) wrap at some large number, such as the size of an unsigned integer.  If you sample it often enough, you should be able to get a fairly smooth curve and very low probability of two wraps in one.  For example, if you know your counter increases at 1000 per second and you sample every second, there&#8217;s no way two wraps could sneak past you.</p>
<p>The value didn&#8217;t wrap at 900; I sampled it at 900, it increased to 1000 and back to 230 before I sampled it again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Minton</title>
		<link>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4203</link>
		<author>Bill Minton</author>
		<pubDate>Tue, 20 Feb 2007 14:30:44 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4203</guid>
		<description>&lt;p&gt;I don't guess I'm really getting this.  What's to say a value can't be wrapped more than once?  Also, what would cause it to wrap at 900 when the upper limit is 1000?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I don&#8217;t guess I&#8217;m really getting this.  What&#8217;s to say a value can&#8217;t be wrapped more than once?  Also, what would cause it to wrap at 900 when the upper limit is 1000?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4194</link>
		<author>Sheeri</author>
		<pubDate>Mon, 19 Feb 2007 22:19:50 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/02/19/how-to-subtract-in-sql-over-samples-that-wrap/#comment-4194</guid>
		<description>&lt;p&gt;This is particularly useful for me, as I take some OS and MySQL statistics every 5 minutes, and MySQL has counters that reset upon restart as well as roll over when they pass a certain number.  So it's useful to be able to have this -- in case anyone is wondering, "why would I use this"?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>This is particularly useful for me, as I take some OS and MySQL statistics every 5 minutes, and MySQL has counters that reset upon restart as well as roll over when they pass a certain number.  So it&#8217;s useful to be able to have this &#8212; in case anyone is wondering, &#8220;why would I use this&#8221;?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
