Review: Joyent Cloud is built for speed


Become An Insider

Sign up now and get free access to hundreds of Insider articles, guides, reviews, interviews, blogs, and other premium content from the best tech brands on the Internet: CIO, CSO, Computerworld, InfoWorld, IT World and Network World Learn more.

Joyent's very smart SmartOS proves that some cloud servers are better than others

The sales pitch for servers in the cloud has always leaned on the word "commodity." You push a button, and voilà, a root password is yours within minutes. The machines in the cloud may not be exactly what you would order if you were filling out a P.O. for your own metal box, but they're probably close enough. The number of options may not be great, but you can choose among enough standard sizes and enough standard operating systems to get approach the ideal. In return for limiting your options, you can click a few buttons and run a machine in less than 180 seconds.

Joyent is a commodity cloud provider, but with a twist. Joyent Cloud offers many of the same basic machine options and standard distro choices you'll find on Amazon and other clouds, but you can also try what Joyent has waiting behind door number two. In addition to Linux and Windows VMs, the company builds custom machines with not-as-common operating systems and calls them appliances. If you decide to go with Joyent's machines, you might find they can be dramatically faster than the commodity server next door, at least when performing standard tasks like answering requests for basic Web pages or data from a database.

[ From Amazon to Windows Azure, see how the elite 8 public clouds compare in InfoWorld Test Center's review. | Move over, Amazon -- IaaS providers are elbowing into the cloud | Stay on top of the cloud with InfoWorld's "Cloud Computing Deep Dive" special report and Cloud Computing Report newsletter. ]

The not-so-secret sauce that Joyent is pitching is called SmartOS. You may know it as Illumos or more likely as Solaris, its most prominent name. Around the time that Sun merged with Oracle, a number of engineers from the Solaris team decamped for Joyent. They forked some code from the OpenSolaris project, called it SmartOS, and began renting cloud servers running the new operating system. The name changes aren't sticking very well because the SmartOS documentation will occasionally refer to the operating system as Solaris. But it's not worth getting caught up in the name. If you liked Solaris and mourned the death of Sun, this is your chance to keep the flame for just a few cents an hour. Nostalgia has never been cheaper.

But the reasons for choosing SmartOS have little to do with your fond memories of the '90s and the heady days of Sparc chips. Many continue to believe that Solaris is a great choice for an enterprise server, especially one with multiple cores. The file system, ZFS, offers a better transactional system that only locks in the disk changes when the data is completely written. The OS also offers a feature to segregate users, called "zones," that dramatically lowers the resource requirements behind the good fences that make good neighbors.

Virtual bare-metal performance
Joyent crows that its machines often perform better than others because of the thinness of the virtualization layer, which it calls "bare-metal performance." The company suggests it's especially useful when systems are running virtual machines such as Java, PHP, and Node.

To test this out, I created a low-end, 512MB machine at both Joyent and Rackspace. Joyent charges 3 cents per hour for such a machine, while Rackspace charges 2.2 cents. I ran a number of DaCapo benchmarks for Java. The SmartOS came with Java 1.6 already installed. I had to install OpenJDK 1.6 on the CentOS box I built at Rackspace.

Most of the benchmarks ran between two and three times faster on the Joyent box. Some that used a heavy amount of IO -- such as the luindex benchmark that builds a Lucene index -- ran slightly more than three times faster. The avrora benchmark that simulates microcontrollers ran at about the same speed on both servers.

At the beginning, the Joyent box was often slower than the Rackspace box on the multithreaded benchmarks because it created 24 threads. Why? SmartOS poked around in the machine and decided it could run 24 threads because it was running on a 24-processor machine. When I limited the benchmark to one thread, the Joyent machine sped up dramatically (see table below). Even for the multithreaded tests, the Linux-based Rackspace machine automatically chose one thread. 

These results show that for all of the talk about commodity servers, there are plenty of differences between the off-the-shelf machines. It pays to spend some time testing your particular application, then tuning it -- the operating system, the level of disk access, and the level of network access can affect the speeds dramatically. What may be good for one application may not benefit another.

Fast ride in a Web machine
Joyent is not relying on SmartOS alone. The company also offers pre-loaded "appliances." When you click through the options for your brand-new box, you'll see a number of machines that come ready to run packages such as Node.js, Percona, Riak, and MongoDB. You push the button and get a machine with all of the files in the right places, so you can start running the services immediately. These can certainly save you time starting up, but they're not as simple as they could be. After you push the start button for a Node box, for instance, you still get to log in and do everything with the command line.

Joyent is pushing Node.js with as much fervor as it's pushing SmartOS. The company cites the incredible performance that some folks see with putting lightweight jobs in the hands of the JavaScript server. A basic Node appliance can easily handle thousands of clients because well-written Node code can juggle the incoming requests with little overhead.

You don't need to run Node.js and SmartOS to want to use Joyent. Joyent Cloud offers all the standard distros at prices that seem, on the face, to be 15 to 25 percent cheaper than Amazon Web Services. On paper, at least, the machines appear to be basically the same with equivalent specs.

But as the simple tests above show, the same basic box with the same specs can perform wildly better or worse depending upon how it interacts with the hypervisor. The amount of RAM, the number of CPUs, and the amount of disk space can't capture the effect of using SmartOS as a virtualization layer. Joyent's engineers claim their machines will run some software dramatically faster. They even like to claim they run Windows faster than Windows. Of course you should test your code before you believe.

Like some other clouds, Joyent offers open source to assuage the worries of the IT manager who fears being locked into the technology. You can download SmartOS and Node.js if you want to move your servers from the Joyent Cloud. Joyent will also host a "private cloud" for you in its data center. Joyent does the hosting and the provisioning of the SmartOS. You write the checks.

To continue reading, please begin the free registration process or sign in to your Insider account by entering your email address:
From CIO: 8 Free Online Courses to Grow Your Tech Skills
View Comments
You Might Like
Join the discussion
Be the first to comment on this article. Our Commenting Policies