<?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>All Things IT Blog &#187; CUDA</title>
	<atom:link href="http://www.enusbaum.com/blog/tag/cuda/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.enusbaum.com/blog</link>
	<description>My little nerded out corner of the Internets!</description>
	<lastBuildDate>Tue, 18 Oct 2011 20:22:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>On the subject of Bitcoin and creating free Money</title>
		<link>http://www.enusbaum.com/blog/2011/08/on-the-subject-of-bitcoin-and-creating-free-money/</link>
		<comments>http://www.enusbaum.com/blog/2011/08/on-the-subject-of-bitcoin-and-creating-free-money/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 03:06:20 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Bitcoin]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[ATI]]></category>
		<category><![CDATA[Bitcoin Mining]]></category>
		<category><![CDATA[CUDA]]></category>
		<category><![CDATA[nVidia]]></category>
		<category><![CDATA[OpenCL]]></category>

		<guid isPermaLink="false">http://www.enusbaum.com/blog/?p=454</guid>
		<description><![CDATA[I don&#8217;t want this blog entry to be about explaining Bitcoin (BTC), so I&#8217;ll point you folks looking for more information over to Wikipedia where they have a very in-depth article on the topic. What I will talk about in this post is a story of my involvement in the whole Bitcoin shenanigans that are [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_455" class="wp-caption alignright" style="width: 190px"><a href="http://www.enusbaum.com/blog/wp-content/uploads/2011/08/Bitcoin.png"><img class="size-medium wp-image-455 " title="The All-MIghty Bitcoin (BTC)" src="http://www.enusbaum.com/blog/wp-content/uploads/2011/08/Bitcoin-300x297.png" alt="The All-MIghty Bitcoin (BTC)" width="180" height="178" /></a><p class="wp-caption-text">The All-MIghty Bitcoin (BTC)</p></div>
<p>I don&#8217;t want this blog entry to be about explaining Bitcoin (BTC), so I&#8217;ll point you folks looking for more information over to Wikipedia where they have a very in-depth <a title="Wikipedia - Bitcoin" href="http://en.wikipedia.org/wiki/Bitcoin" target="_blank">article on the topic</a>. What I will talk about in this post is a story of my involvement in the whole Bitcoin shenanigans that are happening on the net and where I think I&#8217;ll go with, or leave it.</p>
<p>In early June of this year I caught wind of Bitcoin really taking off through a friend who had started experimenting with solo mining using his CPU. At the time, I had thought nothing much of it and brushed it off as just another distributed project along the lines of SETI@Home or Folding@Home.</p>
<p>Over the course of a week or two, through bloggers and twitter feeds the whispers in the wind of Bitcoin had turned into a full on fog horn! Bitcoin was a modern day gold rush and if you weren&#8217;t in on it, you were missing out! The numbers at the time were ridiculous and it sounded like you&#8217;d be stupid not to get in on it. Earnings for miners being upwards of $2000 per month, people investing thousands of dollars in new hardware and obviously the news media coverage of the less glamorous use of Bitcoin&#8230; that of the drug trade through the Silk Road.</p>
<p>I didn&#8217;t want to be the last person to the party, so I jumped in.</p>
<p><span id="more-454"></span></p>
<h1>Stranger in a strange land</h1>
<p>I started off like most, running Bitcoin mining clients on any bit of hardware I could get my hands on. My home CPU (Intel Q6600, about 12Mhash/sec),  GPU (nVidia GTX295, 64Mhash/sec) and&#8230; other computers I had access to at the time. The most powerful being a 24-core Xeon 2.4Ghz (62Mhash/sec). I was on my way, spooling up the printing presses and waiting for the money to start rolling in.</p>
<p>Obviously as the days passed, I spent more time on the <a title="Link - Bitcoin Talk (forums)" href="http://bitcointalk.org/" target="_blank">Bitcoin Forums</a> (now bitcointalk.org) researching how I could squeeze more power out of my small cluster of machines. At the time, people were crazy with mining and were buying up applicable hardware left and right. I&#8217;ve been an nVidia owner for the better part of 15 years and spit nothing but hateful vitriol when talking about ATI (they really burned me with their shitty drivers for my ATI All-In-Wonder back when Windows 2000 came out). When I read that the REAL money is to made in GPU mining and the only cards that can do this right were ATI/AMD Radeon based cards&#8230; I was a bit taken aback. Was I really going to have to put my (albeit, probably dated and baseless) biases aside for the sake of getting on the internet bandwagon?</p>
<p>After a day or two of thorough research of topics such as OpenGL, CUDA, AMD APP Engine and the architectural differences between AMD/ATI based video cards and nVidia, I was able to sell myself on the <a title="Bitcoin Wiki - AMD vs. nVidia for GPU Mining" href="https://en.bitcoin.it/wiki/Why_a_GPU_mines_faster_than_a_CPU#Why_are_AMD_GPUs_faster_than_Nvidia_GPUs.3F" target="_blank">technical merit</a> for the requirement and made the investment. My first card was a Gigabyte 6870, which wasn&#8217;t the OPTIMAL mining card, but at the time, my plan was to replace my desktop card which would give me the ability to still game when I wanted to and mine with the spare cycles and downtime.</p>
<p>Within a couple days, I had generated my first Bitcoin!</p>
<p>&#8230;and a couple days later, something happened that I wasn&#8217;t ready for: The Epic Difficulty increase of 2011.</p>
<p>See, without getting too technical, the Bitcoin network has a way to adjust how frequently Bitcoins are generated. As the computing power of the network skyrocketed, it adjusted to keep the rate of generation steady (which is roughly 5.5-6 blocks per hour). The difficulty doubled, meaning that my earning rate was cut in half.  The difficulty continued to increase 40-50% per week as people kept joining up and throwing their computing power into the fray.</p>
<p>During all this, another notable event in Bitcoin history occurred: The bubble burst.</p>
<p>Bitcoin peaked at around $35 per BTC and within a matter of a couple days, came crashing down to almost half the previous price. Between the difficulty increases and the price crash, I had to come to reality that my get rich quick scheme wasn&#8217;t as full proof as I had thought.</p>
<p>I decided to go all in for the long haul and invested in additional hardware to setup a dedicated &#8220;mining rig&#8221; (computer dedicated to mining for Bitcoins). My final choice was to run two ATI 6870&#8242;s and overclock them, which gave me a total computational power of about 600 Mhash/sec. The decision to run two 6870&#8242;s wasn&#8217;t the smarted in terms of Bitcoining as the cost/performance ratio wasn&#8217;t the highest, but I already had one 6870 and at the time they were still readily available.</p>
<p>So it was at this point I settled in for the long haul an let the mining rig work day and night.</p>
<h1>Understandig</h1>
<p>A month passed and over that period, I spent a lot of time doing research on Bitcoin. Research on both the technical operation of mining for Bitcoins and the financial side of things (profitability and economics). I had amassed my first 10 BTC and was ready to cash in my first haul. After transaction fees, I was able to bring in a little over $200 from my first month. This more than paid off the first video card and put me on the path to paying off the second. Additionally though, it really brought me back down to earth as far as MY future with Bitcoin.</p>
<p>Due primarily to market instability, I decided to cash out every 1 BTC as I created them. My goal being that I needed to pay off the initial investment first and foremost before speculating. Over the next 30-45 days, I witnessed Bitcoin priced sliding slowly week over week from $20 to as low as $6.50 at points.</p>
<p>Mining is all about profitability, and keeping profitable means running efficiently. The primary drawback to mining is energy cost, being that you&#8217;re paying for the electricity that is being used to generate Bitcoins. Living in Texas, I have a flat rate of $0.091 per kw/h and at current difficulties, I could still turn a (albeit small) profit as long as exchange rates for Bitcoin stay above $3.50 per BTC. So being efficient meant no longer CPU mining and cutting back as much power usage from the mining rig as possible (minimal case fans, underclock the CPU and other energy saving measures).</p>
<p>All these points brought Bitcoin mining down from the altars of genius money making schemes to almost QuickBook like accounting of business operation and profitability. It sucked the fun out of it, but the number still didn&#8217;t lie: I was making money.</p>
<h1>Looking Forward</h1>
<p>So here I am two moths (to the day) after I first started down this rabbit hole that is Bitcoin and Bitcoin mining. I&#8217;ve learned a couple important lessons from reading about other users and also my own personal experience:</p>
<ol>
<li>Bitcoin Mining will not make you rich &#8211; It just won&#8217;t. Your goal for Bitcoin mining should be to recover you initial investment and just enjoy anything after that. Because of the network adjustments for difficulty, your hardware value depreciates over time. When I first started, at sky high values and low difficulties, it would take WEEKS to pay off the cost of a mining rig. These days, you could expect two to three months to pay off a mid-sized rig and even then, you&#8217;re at the mercy of how many people are in the pool.</li>
<li>Don&#8217;t go all in &#8211; I&#8217;ve read many threads about people who&#8217;ve spent -thousands- of dollars in hardware to mine for Bitcoins. The days of being able to make your money back on hardware investments like that is long, long gone. Barring a doubling in market price, it&#8217;s just not something I would invest large amounts of money in, as it could take YEARS to see returns (now THAT&#8217;S speculating).</li>
<li>The volatility of the market place wreaks havoc on mining profits, but is the speculative traders wet dream &#8211; Literally, the opportunity exists almost daily for traders to make a 30-40% profit based on price swings. A buy/sell order of 200,000BTC can swing the market literally by a couple dollars, meaning those sitting on fiat currency have an opportunity DAILY to buy low sell high.</li>
</ol>
<p>Where am I at? Well, to date I&#8217;ve made back the money I invested on the video cards. So I&#8217;ll consider myself lucky on that front.</p>
<p>I&#8217;ve decided from this point in, I&#8217;m going to just sit on my Bitcoins as they&#8217;re generated to see what happens. My risk from this would be possibly missing out on current prices ($9.50/BTC at the time of writing this), but at the same time I also gamble on the reward of Bitcoins eventually going up in value. So risking a possible &#8220;loss&#8221; of $0 since I&#8217;m already paid off (well, less energy cost which is negligible) for a potential profit of more than $0. I&#8217;ll take them odds.</p>
<p>So, I&#8217;m glad I got in when I did because I think if I had got in any later, I would be writing a much more frustrated post on the topic. My wife would probably be chiming in as well <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Do I wish I got in earlier? Of course! But that&#8217;s the story on investments, isn&#8217;t it? <em>SHOULD HAVE DONE XYZ WHEN I HAD THE CHANCE!</em></p>
<p>Do I think people should get in/out? That&#8217;s a decision that needs to be made on a person to person basis due to the number of variables that are involved (start-up cost, energy costs, market conditions, etc., etc). I will say that I think it&#8217;s a much higher risk these days due to the continued slide in price paired with the high difficulties.</p>
<p>Personally, I hope more people throw in the towel. Bigger piece of the pie for me <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers!</p>
<div class="su-linkbox" id="post-454-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.enusbaum.com/blog/2011/08/on-the-subject-of-bitcoin-and-creating-free-money/&quot;&gt;On the subject of Bitcoin and creating free Money&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.enusbaum.com/blog/2011/08/on-the-subject-of-bitcoin-and-creating-free-money/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with nVidia cooling over long term?</title>
		<link>http://www.enusbaum.com/blog/2009/06/problems-with-nvidia-cooling-over-long-term/</link>
		<comments>http://www.enusbaum.com/blog/2009/06/problems-with-nvidia-cooling-over-long-term/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 23:00:28 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[CUDA]]></category>
		<category><![CDATA[GeForce 8800GTX]]></category>
		<category><![CDATA[nVidia]]></category>
		<category><![CDATA[Overheating]]></category>
		<category><![CDATA[Quadro FX 4600]]></category>
		<category><![CDATA[SETI@home]]></category>

		<guid isPermaLink="false">http://www.enusbaum.com/blog/?p=316</guid>
		<description><![CDATA[I&#8217;m an avid SETI@home cruncher have been for years. My bragging note is that I recently passed 3,000,000 credits on SETI@home and part of that is thanks to the SETI@home CUDA enabled client they released which enables GPU crunching of SETI@home work units! I&#8217;m currently running the CUDA client on two machines that have video [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an avid SETI@home cruncher have been for years. My bragging note is that I recently passed 3,000,000 credits on SETI@home and part of that is thanks to the <a title="Link -- SETI@home CUDA FAQ" href="http://setiathome.berkeley.edu/cuda_faq.php" target="_blank">SETI@home CUDA</a> enabled client they released which enables GPU crunching of SETI@home work units!</p>
<p>I&#8217;m currently running the CUDA client on two machines that have video cards that support the <a title="Link -- nVidia CUDA API" href="http://www.nvidia.com/object/cuda_home.html" target="_blank">CUDA API</a>. My home <a title="Link -- nVidia GeForce 8800 Series" href="http://www.nvidia.com/page/geforce_8800.html" target="_blank">GeForce 8800GTX</a> and my work <a title="Link -- nVidia Quadro FX 4600 Series" href="http://www.nvidia.com/object/quadro_fx_5600_4600.html" target="_blank">Quadro FX 4600</a>. From what I&#8217;ve read in specs and reviews, they&#8217;re basically the same card. So although this issue isn&#8217;t TECHNICALLY apples to apples, there might be a connection.</p>
<p>I noticed after a month or so of running the CUDA client on my home GeForce 8800GTX, my Vista machine started to become unstable. Blue Screening (BSOD) or rebooting randomly. It struck me as odd because I had not changed anything and for the most part, the system had just been sitting idle crunching work units.</p>
<div id="attachment_317" class="wp-caption aligncenter" style="width: 500px"><a href="http://www.enusbaum.com/blog/wp-content/uploads/2009/06/gpu-burn.jpg"><img class="size-full wp-image-317" title="Your GPU running SETI@home CUDA Client" src="http://www.enusbaum.com/blog/wp-content/uploads/2009/06/gpu-burn.jpg" alt="Your GPU running SETI@home CUDA Client" width="490" height="304" /></a><p class="wp-caption-text">Your GPU running SETI@home CUDA Client</p></div>
<p>After some basic trouble shooting I was able to determine that the instability was due to my video card overheating! This struck me as strange, because I know nVidia uses variable speed fans on the 8800GTX, so you&#8217;d think that if the system was reaching an unsafe operating level, that the fan would kick on, right? Wrong.</p>
<p><span id="more-316"></span></p>
<p>I ended up downloading <a title="Link -- RivaTuner Homepage" href="http://www.guru3d.com/index.php?page=rivatuner" target="_blank">RivaTuner</a> which allows you to access low level functions (such as overclocking, and FAN CONTROL). Using RivaTuner, I manually setting my GPU fan to 100%. This keeps the average temp of my 8800GTX around 67-70C.</p>
<p>Which brings us to today when my work machine started showing the same symptoms. When I booted my machine, within 5 minutes of being on (with SETI@home running), it gave me a BSOD (with dxgkrnl.sys as the culprit). The system wouldn&#8217;t boot for a few minutes (returning BIOS beep codes) until the Quadro FX 4600 cooled down and the system booted again.</p>
<p>This time I disabled SETI@home as soon as I logged in and the system appeared stable. I installed <a title="Link -- SpeedFan Homepage" href="http://www.almico.com/speedfan.php" target="_blank">SpeedFan</a> to double check I was seeing the same issue. Low and behold, I start SETI@home and my GPU temp almost gets to 80 degrees Celsius before my system blue screens and reboots.</p>
<p>Repeating the same steps as with my home system, I use RivaTuner to force the Quadro FX 4600 to always keep the fan speed at 100% and this seems to fix the issue. My GPU temp currently sits at 67 degrees Celsius and my system appears to be stable (for the time being <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<p>I&#8217;m curious if anyone else out there has had the same heat related issues when running CUDA applications on nVidia video cards. It seems that their automatic fan controls have logic issues when not running a 3D game (because when running one of those, it&#8217;ll hit leaf blower speeds).</p>
<p>It would seem to me that although the video cards had no issue keeping up with cooling over a short period of time, but over an extended period of time with the GPU being used 24-hours a day, the cooling solutions appears to fall behind. Is this caused by a physical change due to the constant heat/stress? Who knows!</p>
<p>Cheers! <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_321" class="wp-caption aligncenter" style="width: 335px"><a href="http://www.enusbaum.com/blog/wp-content/uploads/2009/06/user_83.gif"><img class="size-full wp-image-321" title="My BOINC Stats" src="http://www.enusbaum.com/blog/wp-content/uploads/2009/06/user_83.gif" alt="My BOINC Stats" width="325" height="140" /></a><p class="wp-caption-text">My BOINC Stats</p></div>
<div class="su-linkbox" id="post-316-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://www.enusbaum.com/blog/2009/06/problems-with-nvidia-cooling-over-long-term/&quot;&gt;Problems with nVidia cooling over long term?&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.enusbaum.com/blog/2009/06/problems-with-nvidia-cooling-over-long-term/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

