Librenix
Ph: 722017200
Information for Linux System Administration 

VPS: Xen vs. OpenVZ

Up
vote
Down

This is a short overview of the key differences between OpenVZ and Xen that you might consider when choosing a VPS. Note that this article is based on my opinions and that you must do your own research to determine which, if either, technology is best for you and your application.

First, some terminology. OpenVZ isn't fully virtualized and could be more properly referred to as a 'container', not a VPS. That shouldn't affect your choice. It's the technical differences that matter.

Cheap VPS offers are everywhere lately, it seems. However, upon closer inspection I saw that almost all of the low-priced offers were for OpenVZ. While both Xen and OpenVZ offer their advantages, I chose Xen. So, there's my first bias, right up front. :)

OpenVZ advantages:

Efficient (fast)
OpenVZ disadvantages:
Shared kernel (no custom kernel) Shared memory with other users Vendor can easily oversell, killing performance
Xen advantages:
Dedicated memory fully virtualized (can run other kernels or even OS's) vendor more limited in overselling
Xen disadvantages
Less efficient (more overhead due to a kernel-per-VPS)

You'll notice I left price out of the above comparison. In theory, there should be a small price advantage for OpenVZ. I don't know how big it should be but it pertains to two things: 1) Xen uses more memory due to each VPS having its own kernel, and 2) Xen uses more CPU, also due to the additional software layer required to virtualize the kernel.

In practice, however, the price gap appears larger than the above technical differences suggest it should be. I think the remainder of OpenVZ's price advantage is based on 1) the ability for a vendor to easily oversell OpenVZ, and 2) The price competition that results from some vendors overselling OpenVZ.

OpenVZ doesn't encapsulate its containers into a fixed amount of memory, so it runs processes in the host environment to monitor memory usage and kill processes as a container allocates more than its assigned amount.

As a result of this difference, loading down an OpenVZ container is problematic. To partially offset this disadvantage, most OpenVZ vendors offer 'burst' memory in addition to 'dedicated' memory. That is, the monitor process is set to allow the container to use more than its allocated memory -- for a short period of time. This messy situation results in a potentially unreliable environment as some of your processes may be arbitrarily killed -- at the busiest times.

Xen, on the other hand, allows the use of a swap space and excess memory allocation results in (hopefully) idle segments being rolled out to the swap area. While this is good for the memory-hungry VPS user, it can consume significant I/O capacity when memory is overallocated to the point of busy segments getting swapped out. This is bad for everyone sharing the underlying hardware.

I see Xen as clearly the superior technology. A Xen VPS feels and behaves more like a dedicated server. However, I still would have purchased OpenVZ at some price difference. After a bit of research, however, I located Xen VPS's at practically the same price as the cheapest OpenVZ containers. That made my decision easy.

With that said, keep in mind that a bad hosting vendor can ruin either technology through various means. Both technologies share the disk drives and I/O paths as well as the processor cores. Hardware can be poorly configured and managed in any case. A reputable vendor is probably the single most important consideration in choosing a virtual server.

Lastly, carefully check the 'allowed use' policy. Make sure your application is allowed on the server you intend to purchase. Note that due to their different characteristics, the allowed use policy may differ between OpenVZ and Xen for the same host. Also, it's good to understand the memory usage characteristics of your applications. If you know how much memory/swap they require on a physical system, it'll probably work with that same amount of memory/swap on Xen.

[I'll post a review shortly of my current VPS vendor and I will then add a link to that article here.]

mail this link | permapage | score:9850 | -Ray, June 13, 2011

Up and coming programming languages

Up
vote
Down

Seven growing programming languages...
While the following seven niche languages offer features that can't be found in the dominant languages, many rely on the dominant languages to exist. Some run on top of the Java Virtual Machine, essentially taking advantage of the Java team's engineering. And when Microsoft built C#, it explicitly aimed to make the virtual machine open to other languages. That detail may help make deployment easier, but it doesn't matter much to the programmer at creation time.

Either way, these seven languages are quickly gaining converts in the enterprise. Perhaps it's time to start investigating their merits.
read more...
mail this link | permapage | score:9745 | -Ray, December 9, 2010

Expect Script Examples

Up
vote
Down

Expressions, if statements, for loops, and while loops examples are covered in this mini-tutorial:
This article explains the following in the expect scripting language.
Expressions – arithmetic operation
if construct in expect
looping constructs
read more...
permapage | score:9724 | -Ray, January 21, 2011

FreeBSD 8.0: First Look

Up
vote
Down

A look at the newest FreeBSD distribution...
The ZFS file system is included in FreeBSD 8.0 and from previous experience I've found it to work very well. However, my little server didn't really have the resources to properly experiment with it. For systems with enough RAM and disk to justify its use, I highly recommend taking a look at FreeBSD's ZFS implementation - for the snapshots feature, if nothing else. Being able to restore files without reaching for separate backup media can be a wonderful time saver.
read more...
mail this link | permapage | score:9700 | -Ray, December 8, 2009

Linux dominates Windows

Up
vote
Down

Linux dominates Windows -- and everything else -- on supercomputers in 2010. Microsoft's renowned engineering quality and down-to-earth pricing shows brilliantly in its capturing 1% of the top 500 supercomputer projects. Perhaps next year, utilizing all the organizational pressure they can bring to bear, they can retain 0.8%.

Formal Unix, now long dead*, controls 4.4%. Meanwhile, Linux is now installed on 91% of the remaining 95% of top systems. Add in the single BSD system and you have Unix-like systems (Unix+Linux+BSD) accounting for 95.6% of the top supercomputer projects. The remaining 3.4% of are 'mixed' systems and may also contain significant percentages of Unix and Linux.

There are many reasons for Linux' success. Among the top factors are surely these four, in no particular order:
Price (starting at free)
Quality (excellent code, Unix-based design)
Hardware Support (most all modern quality gear is supported)
Open Source (open to tinkering -- and redistributable)
Check my math on the top 500 systems here.

*Of course, counting functional Unix systems while ignoring the trademarked term, Unix is clearly not dead since Linux is one of the truest of the true Unix work-alike systems. Linux is, of course, the reason formal Unix has suffered such a precipitous decline. Many Unix users just switched flavors -- and Linux was a most appealing flavor.
mail this link | permapage | score:9656 | -Ray, June 2, 2010

Apple DIY Repair

Up
vote
Down

I won't be buying any more Apple products. Here's why:

I'm generally capable of repairing my own equipment and can recognize when self-repair has been deliberately undermined. I recently had to replace a hard drive in an early generation white Intel iMac. Innocently, I believed the interior was accessible and serviceable in the manner of the externally identical white PowerPC iMacs.

No such luck. Not only do you have to remove the LCD to get to the hard drive, but you must also remove shielding around the LCD -- mostly by tearing it to bits. No doubt it is attached this way so that an authorized Apple technician will be able to confidently void your warranty if you've ever worked on the system yourself.

You'll also need a #10 torx magnetic screwdriver. And, no, #10 torx bits just won't do due to the narrow and deeply recessed screw holes. Also, since most torx screwdrivers aren't magnetic, you'll probably need to tape the screws to the screwdriver to reattach the LCD. Good thing there's a hardware store near you.

Oh, and don't forget to pick up some rubber cement to 'properly' reattach the hard drive temperature sensor while you're out looking for magnetic torx screwdrivers.

Considering the logical design of its predecessor and the tamper-evident shielding, I'm certain that this machine has been deliberately designed to prevent the owner from performing DIY upgrades and repairs.

While that is all quite annoying, at least working on the system is possible for someone with experience and determination.

Now, Apple has improved their anti-customer techniques with the 'Pentalobe' screw. It doesn't solve any problem but one: it'll keep customers from even being able to open the case.

If you're curious about Apple's evil new invention, you can read its rap sheet and view its mug shot here.
mail this link | permapage | score:9648 | -Ray, January 25, 2011

Tutorial: MySQL Select statement

Up
vote
Down

An in-depth look at the syntax of the MySQL Select statement...
The SELECT statement is without question the most complex amongst MySQL’s data manipulation statements. Not surprising when you consider that the foremost purpose of structured query language (SQL) is to retrieve information from a relational database which adheres to a given criteria. Entire books have been written about how to construct a query to fetch the data that you’re after. That’s not the purpose of this article. Our goal will be to cover the syntax of the SELECT statement and gain an understanding of its many optional clauses. We’ll start at the beginning and work our way through them. When we’re done, you’ll understand which clauses to use for different purposes. We’ll leave the twenty table joins for another day.
read more...
mail this link | permapage | score:9639 | -Ray, August 31, 2010

perl1line.txt: A handy Perl script collection

Up
vote
Down

The ultimate goal of the Perl One-Liners Explained article series was to release the perl1line.txt file. Last week I finished the series and now I am happy to announce perl1line.txt - a collection of handy Perl one-liner scripts.

The perl1line.txt file contains over a hundred short Perl one-line scripts for various text processing tasks. The file processing tasks include: changing file spacing, numbering lines, doing calculations, creating strings and arrays, converting and substituting text, selective printing and deleting of certain lines and text filtering and modifications through regular expressions.

The latest version of perl1line.txt is always at:
http://www.catonmat.net/download/perl1line.txt

Enjoy! It took me over 3 years to write all the one-liners down. read more...
mail this link | permapage | score:9634 | -pkrumins, November 21, 2011

SSH Tips

Up
vote
Down

Six things your mom didn't tell you about ssh...
If you’ve ever seriously used a Linux system, you’re probably already familiar with at least the basics of ssh. But you’re hungry for more. In this post, we’ll show you six ssh tips that’ll help take you to the next level. (We’ve also found that they make for excellent cocktail party conversation talking points.)
read more...
permapage | score:9625 | -Ray, September 1, 2010

Python Client/Server Tutorial

Up
vote
Down

A tiny Python tutorial...
This application can easily be coded in Python with performance levels of thousands of transactions per second on a desktop PC. Simple sample programs for the server and client sides are listed below, with discussions following
read more...
permapage | score:9621 | -Ray, June 22, 2009

Review: DesktopBSD 1.6 Live CD

Up
vote
Down

BSD for the desktop will now run from a CD...
One of the first and most noticeable changes in version 1.6 is that it now contains a LiveCD option. While I wouldn't consider this to be a typical livecd, it certainly stacks up well against the large collection of other livecd's out there. Initially you're greeted with the standard Freebsd boot screen and bootup sequence. The first part of the livecd session starts out with a semi-graphical welcome screen that is keyboard driven.
read more...
mail this link | permapage | score:9596 | -Ray, January 25, 2008

Install Wine on Ubuntu 9.04

Up
vote
Down

Three approaches to putting Wine on your Ubuntu system...
decided to put up this guide which shows how to install the latest Wine release in Ubuntu 9.04 using 3 different methods. The default Jaunty repositories come with Wine 1.0.1, but the latest release is 1.1.24 and a new version is available every two weeks, so here is a tutorial which explains how to get the last Wine release in Ubuntu or Kubuntu Jaunty.
read more...
permapage | score:9587 | -Ray, June 22, 2009

Slitaz Linux

Up
vote
Down

An overview of Slitaz and a review of the latest distribution...
SliTaz GNU/Linux is a mini distribution and live CD designed to run speedily on hardware with 256 MB of RAM. SliTaz uses BusyBox, a recent Linux kernel and GNU software. It boots with Syslinux and provides more than 200 Linux commands, the lighttpd web server, SQLite database, rescue tools, IRC client, SSH client and server powered by Dropbear, X window system, JWM (Joe's Window Manager), gFTP, Geany IDE, Mozilla Firefox, AlsaPlayer, GParted, a sound file editor and more. The SliTaz ISO image fits on a less than 30 MB media and takes just 80 MB of hard disk space.
read more...
mail this link | permapage | score:9559 | -Ray, April 1, 2011

Benchmarks: FreeBSD 8.0 vs. Solaris vs. Linux

Up
vote
Down

FreeBSD 8.0 takes on Fedora 12 and Ubuntu 9.10 as well as OpenSolaris 2010.02 b127 in a performance free-for-all..
The hardware we are using for benchmarking this time was a Lenovo ThinkPad T61 notebook with an Intel Core 2 Duo T9300 processor, 2GB of system memory, a 100GB Hitachi HTS72201 7200RPM SATA HDD, and a NVIDIA Quadro NVS 140M graphics processor powering a 1680 x 1050 LVDS panel.
read more...
permapage | score:9539 | -Ray, December 1, 2009

Book Review: PHP 5 Recipes

Up
vote
Down

The price of these 200 PHP recipes is about $45, list.
Each of these recipes refers to a small element or aspect of PHP 5 and the presentations contain a brief overview of the topic, an explanation of how the code elements work, and where the code is applicable in projects. Overall, the book covers the whole range of PHP 5 functionality where each major element of PHP 5 is addressed in a recipe explaining and illuminating relevant code elements. You can easily get information about a specific PHP 5 element by going directly to the section of the book where it appears. Even better, the code snippets are designed to allow one to copy and paste them into your own applications...
read more...
mail this link | permapage | score:9532 | -Ray, December 8, 2005

I wrote my first programming e-book: Awk One-Liners Explained

Up
vote
Down

I really love writing about programming and Linux, and I just published my first e-book ever on Awk one-liners.

Awk one-liners are short Awk programs that fit on one line and do one particular task, such as numbering lines, double spacing lines, printing only lines that match a pattern, etc.

Here is an example. The following one-liner prints all users on the Linux system:

awk -F: '{ print $1 }' /etc/passwd

This one-liner works this way. The -F: command line argument specifies that the lines in the /etc/passwd file should be split into fields by the colon character. As we all know, the information in /etc/passwd file is colon separated, so the first field $1 gets set to the username, the second field $2 gets set to the password, the third field $3 gets set to user id, etc. This one-liner prints only the first field which is the username. Simple, isn't it?

In my 50 page long e-book I carefully explain 70 one-liners in similar way.

Here is the table of contents of the e-book:

Preface.
1. Introduction to Awk One-Liners.
2. Line Spacing.
3. Numbering and Calculations.
4. Text Conversion and Substitution.
5. Selective Printing and Deleting of Certain Lines.
6. String and Array Creation.
Appendix A: Awk Special Variables.
Appendix B: Idiomatic Awk.
Index.
read more...
mail this link | permapage | score:9531 | -pkrumins, June 24, 2011

Benchmarks: NFS v3 vs. NFS v4 Performance

Up
vote
Down

NFS3 vs. NFS4 file operations speed compared...
NFS version 4, published in April 2003, introduced stateful client-server interaction and "file delegation," which allows a client to gain temporary exclusive access to a file on a server. NFSv4 brings security improvements such as RPCSEC_GSS, the ability to send multiple operations to the server at once, new file attributes, replication, client side caching, and improved file locking. Although there are a number of improvements in NFSv4 over previous versions, this article investigates just one of them -- performance.
read more...
mail this link | permapage | score:9530 | -Ray, June 20, 2008

Reading MS Word .doc files in LInux

Up
vote
Down

It can be done without OOo with some simple command line tools. I read word doc files at work using 'strings' and 'pg' for years.
As a Linux user, there are times when you have to play nicely with users of Windows or Mac OS -- such as when they send you Microsoft Word files. When you receive a Word file, you can either follow Richard Stallman's advice and refuse it, or bite the bullet and work with it. Modern Linux word processors -- such as OpenOffice.org Writer, AbiWord, KWord, and TextMaker -- can deal with most Word files. But if you don't want to fire up a word processor in order to read or print the document, you can turn to the command line. A handful of small but powerful Linux command line utilities make viewing, printing, and even converting Word files to another format a breeze.
read more...
mail this link | permapage | score:9521 | -Ray, March 2, 2006

MultiSystem: Live USB MultiBoot

Up
vote
Down

Put more than one bootable Linux distribution on that big USB flash drive...
Installation instructions can be found at http://liveusb.info/dotclear/index.php?pages/install, where several install methods are available. After installing MultiSystem, open it, and follow the steps. I received an error message in French saying that Multiboot does not like spaces in the USB Stick's name. I renamed the stick and then logged out and back in to make it work. Below are screenshots of the whole process.
read more...
mail this link | permapage | score:9503 | -Ray, April 19, 2011

Comparison Review: FreeBSD vs. NetBSD

Up
vote
Down

A BSD user turns a critical eye to FreeBSD and NetBSD...
NetBSD with gcc 3.3.x doesn't compile as fast as FreeBSD, but NetBSD can compile itself easily for any platform NetBSD supports via build.sh. No such luck with FreeBSD; I had to boot FreeBSD to build FreeBSD. But with NetBSD, you can use the same framework to build under other OS's, even under Cygwin!
read more...
permapage | score:9499 | -Ray, February 25, 2005
More articles...
Abstract Art Prints by Ray Yeargin
Recent headlines

Tutorial: Run Simple Groupware on Nginx on Debian 6, Ubuntu 11.10

Tutorial: Secure your server with a free StartSSL Certificate

Tutorial: Make DuckDuckGo the default search engine in Chromium

Linux Mint 12 KDE review

Installing Webuzo Wordpress Stack

Detecting server file changes with AIDE

Tutorial: Install Apache2, PHP5, MySQL on CentOS 6.1 (LAMP)

Tutorial: Xen on CentOS 6.2

ownCloud 3 released with enhanced features

Relinux: Create a custom Ubuntu DVD

The Coming HTML 5 Revolution in Linux

Tutorial: Install Lighttpd, PHP5, MySQL on CentOS 6.0

Tutorial: Route VirtualBox traffic over the TOR network

Tutorial: Harden Postfix

Pear OS Linux Panther 3 screenshot preview

E-book: Perl One-Liners Explained

Debugging Shell Scripts

GhostBSD 2.5 review

Endian Firewall Community 2.5.1 released

VirtualBox 4.1 on Headless Ubuntu 11.10

Simple Linux Auditing

Pissed Off Penguins: A Free Game Project

Install Quick Access on Linux Mint 12 KDE

Linux Iptables Examples

Install Takeoff Launcher on Fedora 16 KDE

HDMI Dongle: Portable set-top box runs Android 4

Build a Firebird 2.5.1 and FreeBSD 9 database server

Dual-boot Windows 7 and Linux Mint 12

Fedora 16 KDE review

Tutorial: TYPO3 4.6 on Nginx on Debian 6/Ubuntu 11.10

Does disk encryption really protect your data?

Install Apache2, PHP5, MySQL on CentOS 5.7

Tutorial: Convert a VMware Image to a Physical Machine

webOS: The latest Linux distribution

Run Unity desktop on Linux Mint 12

RedHat Cluster Suite and Conga

How to set up Apache2 on Ubuntu

Tutorial: Install Cinnamon on Fedora 16

Add Video Streaming to C/C++ apps with Nex Gen Media Server API

Tutorial: Install Apache2, PHP5 and MySQL on Fedora 16

 

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin




You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser