<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Josh Cogan&#039;s Projects &#187; Uncategorized</title>
	<atom:link href="http://joshcogan.com/wp/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshcogan.com/wp</link>
	<description>Fun stuff Josh works on</description>
	<lastBuildDate>Tue, 19 Aug 2014 16:30:41 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Server Farm Dynamic Feedback</title>
		<link>http://joshcogan.com/wp/2013/03/server-farm-dynamic-feedback/</link>
		<comments>http://joshcogan.com/wp/2013/03/server-farm-dynamic-feedback/#comments</comments>
		<pubDate>Tue, 26 Mar 2013 01:36:01 +0000</pubDate>
		<dc:creator><![CDATA[Josh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[distributed computing]]></category>
		<category><![CDATA[farm]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[numerical computing]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://joshcogan.com/wp/?p=153</guid>
		<description><![CDATA[This project, lovingly knowns as the Online Beamspot Determination, was the coding project that received the lion&#8217;s share of my graduate coding hours.  And after many many grueling code-compile-test-redeploy cycles, all we got was this beautiful diagram.  Well, OK.  We<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://joshcogan.com/wp/2013/03/server-farm-dynamic-feedback/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>This project, lovingly knowns as the <strong>Online Beamspot Determination</strong>, was the coding project that received the lion&#8217;s share of my graduate coding hours.  And after many many grueling code-compile-test-redeploy cycles, all we got was this beautiful diagram.  Well, OK.  We also got a pretty damn cool tool.</p>
<p>Mostly this post is about &#8220;ooooh aaaaah pretty diagram&#8221;.  But below I&#8217;ll try to explain what we are doing using a web-server analogy.</p>
<p><![if !IE]><iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fjoshcogan.com%2Fwp%2Fwp-content%2Fuploads%2F2013%2F03%2Fonline_bst_sct.pdf&amp;embedded=true" class="pdf" frameborder="0" style="height:500px;width:600px;border:0" width="600" height="500"></iframe><![endif]><!--[if IE]><object width="600" height="500" type="application/pdf" data="http://joshcogan.com/wp/wp-content/uploads/2013/03/online_bst_sct.pdf" class="pdf ie"><!-- wpnl --> <div style="width:600;height:500;text-align:center;background:#fff;color:#000;margin:0;border:0;padding:0">Unable to display PDF<br /><a href="http://joshcogan.com/wp/wp-content/uploads/2013/03/online_bst_sct.pdf">Click here to download</a></div>
 <!-- wpnl --></object><![endif]--></p>
<h2>The Analogy:</h2>
<p>Imagine a farm of Google search servers: the waving wheat, the moo-ing cows.  Idyllic.  No but seriously, these server processes are getting <em>pounded</em> by search requests.  For the sake of discussion let&#8217;s make a few assumptions. First suppose that most requests were identical to others that occurred within the last few minutes.  For example, ever time Kobe Bryant scores a basket, a million people Google &#8220;Kobe&#8221; (and not the beef).</p>
<p>In such a universe, you might want to detect the onset of these correlated search waves and respond very quickly by updating a set of cached results the servers in the Western US use.  This is a tricky problem because you have thousands of machines who each see a slight uptick of &#8220;Kobe&#8221; searches and you need to make a decision to update caches that will affect those same machines, even though not one of them sees the whole picture.  And they&#8217;re all acting asynchronously.  Bummer, dude.</p>
<h2>The Limits of the Analogy and our Solution:</h2>
<p>Our problem, which is part of the ATLAS Trigger and Data Acquisition system, has two big differences.  Firstly, our system is partly synchronous.  This means that we have a single point, called the Central Trigger Processor, that is guaranteed to control the flow of data downstream of it (which is then asynchronously processed).  Secondly, our system really really needs the parallel processes to cooperate.  In the Kobe example you might argue that if the wave of searches was so damn big, each individual process would notice it.  Yea perhaps, its just an analogy!  In our system it takes thousands of processes working across dozens of racks to accumulate enough statistics to accurately measure these parameters of physical (and technical) interest called the<strong></strong> <em>Luminous Region</em><strong></strong>.</p>
<p>We accomplished the N:N communication problem by a <strong>big fan-in and fan-out</strong>, which uses a hierarchical data-collection and -distribution.  So we aggregate all the data across the processes for about ten minutes, crunch thousands and thousands of fits on them, then make a decision.  Have the parameters we&#8217;re measuring, changed so much that we need to inform the farm?  If so we push our values to an accessible location and trigger an update.  Then WHAMO!  Those exact same processes go fetch the fruits of their collective labor.  Many hands make light work =).</p>
<p>In this way, we were able to coordinate so many processes without ever letting them know about each other.  And when they all do go update their values (as close to synchronicity as the farm ever gets) it still induces &lt; 10ms of dead time on the system.  Not to shabby at all!</p>
<p>&nbsp;</p>
<p>Well that&#8217;s all I had on the diagram.  Like I said, just an overview.  Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshcogan.com/wp/2013/03/server-farm-dynamic-feedback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infinite Volume Simulations</title>
		<link>http://joshcogan.com/wp/2013/03/infinite-volume-simulations/</link>
		<comments>http://joshcogan.com/wp/2013/03/infinite-volume-simulations/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 06:08:31 +0000</pubDate>
		<dc:creator><![CDATA[Josh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://joshcogan.com/wp/?p=123</guid>
		<description><![CDATA[Hi Team, So here&#8217;s a puzzler for today:  How can you numerically simulate two planets interacting via gravity, in a universe with infinite volume?  Of course you only have standard computing architecture available.  Once you have a guess, make gravity repulsive<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://joshcogan.com/wp/2013/03/infinite-volume-simulations/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>Hi Team,</p>
<p>So here&#8217;s a puzzler for today:  How can you numerically simulate two planets interacting via gravity, in a universe with <strong>infinite volume</strong>?  Of course you only have standard computing architecture available.  Once you have a guess, make gravity repulsive and see if your solution still works.</p>
<p>&nbsp;</p>
<p>And since I&#8217;m totally an evil T.A., discuss when and how your numerical error grows &#8220;too large&#8221;.  Good hunting!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshcogan.com/wp/2013/03/infinite-volume-simulations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://joshcogan.com/wp/2013/03/hello-world/</link>
		<comments>http://joshcogan.com/wp/2013/03/hello-world/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 02:18:39 +0000</pubDate>
		<dc:creator><![CDATA[Josh]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://joshcogan.com/wp/?p=1</guid>
		<description><![CDATA[print &#8220;Hello, World!&#8221; I&#8217;m trying to throw up this site quickly, so there will almost certainly be bugs/spelling mistakes/swearing in posts as I go.  Be patient, and lemme know what I&#8217;ve screwed up so it can get fixed pronto. &#160;<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://joshcogan.com/wp/2013/03/hello-world/">Read more &#8250;</a></div><!-- end of .read-more -->]]></description>
				<content:encoded><![CDATA[<p>print &#8220;Hello, World!&#8221;</p>
<p>I&#8217;m trying to throw up this site quickly, so there will almost certainly be bugs/spelling mistakes/swearing in posts as I go.  Be patient, and lemme know what I&#8217;ve screwed up so it can get fixed pronto.</p>
<p>&nbsp;</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshcogan.com/wp/2013/03/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
