<?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>assert(opinion)</title>
	<atom:link href="http://blog.schicks.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.schicks.net</link>
	<description></description>
	<lastBuildDate>Thu, 25 Feb 2010 06:20:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rackspace Cloud Servers vs Amazon EC2</title>
		<link>http://blog.schicks.net/2009/rackspace-vs-amazon/</link>
		<comments>http://blog.schicks.net/2009/rackspace-vs-amazon/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 21:00:47 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://blog.schicks.net/?p=3</guid>
		<description><![CDATA[Background
For many years I had servers running in my home office. They hosted a work-in-progress software project, a few low volume open source projects, and family websites. Mid 2008 I started testing Amazon&#8217;s EC2 service, and within a few weeks I had moved all of my home servers to EC2. Overall, my experience with EC2 [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>For many years I had servers running in my home office. They hosted a work-in-progress software project, a few low volume open source projects, and family websites. Mid 2008 I started testing Amazon&#8217;s <a href="http://aws.amazon.com/ec2/">EC2 service</a>, and within a few weeks I had moved all of my home servers to EC2. Overall, my experience with EC2 has been great. Very little down-time, good connectivity, extreme flexibility, and decent prices.</p>
<p>The primary benefit of on-demand servers is, of course, compute power (and cost) only when you need it. For my own software project I start and stop servers to run demos on a regular basis. When I am not giving a  demo, I turn off several servers and therefore stop paying for them.</p>
<h2>Alternatives</h2>
<p>Although I like EC2, I remain open to alternatives. I have looked into Linode, Slicehost (before being purchased), and others. Until recently, I have not felt compelled to try any of them. After reading Jay Kuri&#8217;s <a href="http://www.catalyzed.org/2009/07/cloud-servers-for-your-perl-app-amazons-ec2-vs-mosso.html">nice comparison</a> of Rackspace&#8217;s <a href="http://www.rackspacecloud.com/cloud_hosting_products/servers">Cloud Servers</a> (CS) and Amazon&#8217;s EC2, however, I decided to give CS a try. I tested CS for several days, and this is what I&#8217;ve concluded:</p>
<h2>CS Positives</h2>
<p><strong>1.</strong> <a href="http://www.catalyzed.org/2009/07/cloud-servers-for-your-perl-app-amazons-ec2-vs-mosso.html">Jay&#8217;s</a> assessment of the price/performance lead for CS seemed right-on. I launched several <em>1024MB / 40GB </em>instances running the same OS and version as my EC2 <em>small </em>instances (different kernels however). For about half the hourly cost, the Rackspace instances performed nearly twice as fast in most tests. Granted, my tests were not exhaustive and the CS instances could have landed on under utilized hardware several times (where they are allowed to burst above the guaranteed minimums). But even on busy hardware, the performance of non memory constrained CS <em>1024MB / 40GB</em> instances seems likely to be as good or better than EC2 <em>small</em> instance. For half the cash.</p>
<p><strong>2.</strong> Rackspace&#8217;s CS service is very simple to use. By comparison EC2 is far more complex (AMIs, AKIs, and ARIs! Oh my!). If you don&#8217;t need all of EC2&#8217;s features, the clean design of CS is great. With CS you select a distro by name and click a button. In a few seconds you have a running instance with a public static IP address, a private static IP address, and persistent local storage. No volumes to mount, IP addresses to assign, security groups to tweak, or keypairs to generate. Once running, creating a full instance backup and launching additional copies from that backup is extremely easy. No documentation needed.</p>
<p><strong>3.</strong> Rackspace lets you configure reverse DNS for public IP addresses. This makes sending email from CS instances workable. If you try sending email from EC2 instances you will quickly learn that some ISPs just block it as spam; due in-part to the lack of configurable reverse DNS for elastic IP addresses.</p>
<p><strong>4.</strong> I actually chatted on-line with a human service rep. who was knowledgeable and friendly. With EC2 you must pay extra for that kind of service. Without paid support, you will post to an Amazon forum and wait for a response. Rackspace CS support seems to be just like their full hosting service&#8217;s support. This is great for now, although I do wonder if they will be able to maintain that level of support in what I&#8217;d assume is a lower margin business.</p>
<h2>CS Negatives</h2>
<p><strong>1.</strong> There is no mountable persistent storage like Amazon&#8217;s EBS. The lack of mountable storage makes it more challenging to add and remove stateful servers on demand. For example, I have a database server that only runs when I am giving demos of my project. When the server isn&#8217;t running, the database state still persists on an inexpensive EBS volume.</p>
<p>Rackspace highlights the fact that their instances have persistent local storage by default. This does simplify initial configuration a bit, but their implementation has a major drawback: Once you allocate an instance on CS &#8212; and start paying for it &#8212; you can&#8217;t turn it off without losing its &#8220;persistent&#8221; storage. Sure you can &#8220;shutdown -h now&#8221; the OS, but as far as Rackspace is concerned the instance remains active and can be rebooted. You continue paying for the instance because they don&#8217;t release its resources.</p>
<p>If you want to stop paying for an instance, you must fully delete it. When you delete a CS  instance, say goodbye to its persistent storage and all &#8220;backups&#8221; you&#8217;ve made of that instance. <strong>Yes, they automatically delete your backups!</strong> What Rackspace calls a backup is probably just a VM snapshot that is bound to the VM itself.</p>
<p>There are workarounds. One could backup an instance&#8217;s data to Rackspace Cloud Files before deleting it, use a mounted NFS drive from another instance that will remain active,  find a fuse filesystem to mount Cloud File drives, etc. I looked into most of those options in the pre-EBS days at Amazon and decided to pass. The situation is a bit nicer under CS since you always control when the storage goes away, but in the end I&#8217;d prefer to keep full backups for disaster recovery rather than starting and stopping  instances.</p>
<p>Another big problem caused by the lack of mountable storage is that you can only obtain more disk space by allocating larger more expensive instances. If you need more disk space, you must pay for additional RAM, computing power, and a fixed size disk upgrade. For example, if you need 81GB of storage you must pay for a rather large instance that also has 4GB of RAM and costs  <strong>twice as much</strong> to run as an instance with 80GB of storage.</p>
<p><strong>2.</strong> No public server images. If you don&#8217;t like the OS choices that CS offers, you are out of luck. Even if you just want to start with a tweaked version of a stock OS, you are out of luck. Under EC2, for example, I really like the work <a href="http://alestic.com/">Alestic</a> has done in creating customized Debian and Ubuntu images that everyone can use.</p>
<p><strong>3.</strong> The Rackspace CS user community is either much smaller or less active than EC2&#8217;s. The online forums are empty in comparison to the EC2 user forums. If Rackspace does eventually enable public images, I&#8217;m fairly sure there will be far fewer choices than on Amazon. At least for a while.</p>
<p><strong>4.</strong> Rackspace is lacking many other supporting features and services that Amazon provides. I don&#8217;t yet need most of these myself, so this is not a strong negative. But I may eventually take advantage of security groups, load balancing, hadoop, or the queuing service. You can install similar software packages on CS instances manually, but that&#8217;s more work and the Amazon prices are generally good.</p>
<h2>Summary</h2>
<p>Amazon EC2 is a deeper, more flexible, and complex service. EC2&#8217;s unique features and design leads me to believe that Amazon invented everything from scratch short of the hypervisor and operating systems. Rackspace CS gives you more computing power per penny and is easier to use. The simple but limited CS feature set gives the impression that Rackspace/Slicehost put a nice web UI atop Citrix XenServer.</p>
<p>I will be sticking with EC2. For my needs, the lack of mountable storage under CS is a deal-breaker. Rackspace&#8217;s local storage is primarily a convenience for situations where the underlying physical hardware crashes irrecoverably. Without mountable storage, CS is best suited for either replacing physical machines that are never turned off or for stateless nodes.</p>
<p>But Rackspace looks to be catching up with Amazon. If they grow a few key features I would reconsider using CS. It is hard to ignore the cost and performance advantages of the smaller CS instances that I tested.</p>
<p>NOTE: I chatted with a Rackspace rep. who said you&#8217;d eventually be able to store backups within Rackspace Cloud Files  independent from instances. The rep. didn&#8217;t know when that would happen. While that will be an improvement, the backups will remain copies of the entire instance; state, OS, apps, and all. There will still be no direct way to  preserve your state and OS logic separately, and still no way to add storage capacity incrementally.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schicks.net/2009/rackspace-vs-amazon/feed/</wfw:commentRss>
		<slash:comments>102</slash:comments>
		</item>
		<item>
		<title>AVR Bootloader FAQ</title>
		<link>http://blog.schicks.net/2009/avr-bootloader-faq/</link>
		<comments>http://blog.schicks.net/2009/avr-bootloader-faq/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 22:08:17 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[avr]]></category>
		<category><![CDATA[electronics]]></category>

		<guid isPermaLink="false">http://blog.schicks.net/?p=13</guid>
		<description><![CDATA[I have done a lot work with Atmel AVR microcontrollers over the past year. My most recent effect was creating a custom bootloader, and I decided to write down what I learned in the form of a FAQ. Most of the concepts covered within are not discussed thoroughly in datasheets, and various tips for designing [...]]]></description>
			<content:encoded><![CDATA[<p>I have done a lot work with Atmel AVR microcontrollers over the past year. My most recent effect was creating a custom bootloader, and I decided to write down what I learned in the form of a FAQ. Most of the concepts covered within are not discussed thoroughly in datasheets, and various tips for designing a robust bootloader are provided.</p>
<p><a href="http://blog.schicks.net/wp-content/uploads/2009/09/bootloader_faq.pdf">AVR Bootloader Faq</a></p>
<h2>Table of Contents</h2>
<p>1. How do I get started?<br />
2. What are the NRWW and RWW regions?<br />
3. How does the bootloader update the application?<br />
4. Can a bootloader update fuses?<br />
5. What is BOOTLOADER_SECTION in &lt;avr/boot.h&gt; for?<br />
6. How do I program the bootloader to the MCU?<br />
7. How do I program both the application and the bootloader?<br />
8. Can a bootloader use interrupts?<br />
9. Should the bootloader or the application run first?<br />
10. How does the bootloader know when to start the application?<br />
11. How does the bootloader start the application?<br />
12. How can the bootloader be sure the application is intact?<br />
13. Can the bootloader use code built into the application?<br />
14. Can the application use code built into the bootloader?<br />
15. Why can&#8217;t global variables be accessed from shared functions?<br />
16. Can the application use an IRS built into the bootloader?<br />
17. How can a shared ISR access global data?<br />
18. Can I save space in a bootloader with few or no ISRs?</p>
<p>This FAQ was also posted as a <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=79206">tutorial on avrfreaks.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schicks.net/2009/avr-bootloader-faq/feed/</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
	</channel>
</rss>

