from Chips to Chips

computers

the beauty of virtualization – part 1 – introduction

by Jason on Mar.31, 2010, under Tech Stuffs, computers

many people in the IT industry should have heard about virtualization, and for the rest of the world… the closest thing they can think of is probably the movie – Avatar. uhm… not the same…

I’m talking about computer virtualization here. And so what the heck is it really about? To senior management, it’s a promise of lowering cost, faster ROI, better flexibility of the infrastructure, simpler management of IT infrastructure.

To the guys on the ground, it means, faster build and release to production, quick and easy back out plan for patch maintenance, fast cloning of production data for beta testing, no more hair ripping experience due to hardware refresh, and much much more.

Right, so these are some of the benefits that I just touched on. So, still what really is virtualization?

To virtualize a computer/server is simply just an extraction of the running system from a physical box, into just a bunch of files and processes. In a traditional approach of having 1 OS instance per physical box, we move into the realm of having multiple OS instances per physical box. No, this is not multiboot, this is having more than 1 OS instance running simultaneously in each physical box. Imagine, one box, be it a regular desktop or a high end server, running multiple OS at the same time. Each OS instance runs unaware of the other in the same box. They are independent of each other, they can work together, they can do anything just like how they will be as in the traditional model.

For example, you can have a Redhat Linux instance, Windows 2008,  Windows 2000 Server, all running as virtual machines (VM) in the same physical box. You can ssh into the Linux VM and do anything as you may as a regular Linux machine. You can RDP into the Windows VMs, check on running services, eventlogs ,etc… just like any other Windows servers.

To the un-initiated who logs into a VM, they will not know that it is a VM. I behaves just like any regular server.

So, since the VM does the same things as the physical counterparts… what’s the point?

Now, think about this for a moment. In nearly all data centers today, going with the 80-20 rule, we can easily find 80% of the servers running with very low utilization most of the time. Some probably only spike up once a week or month even. So, the rest of the days, it’s just there doing nothing much, and just sucking up power.

So, let’s say we take 10 of such servers, virtualized them and consolidate them all into just 1 box. If done correctly, you can expect the performance of these 10 servers to remain the same. And there you have it, 90% reduction!! Instead of buying 10 servers, you just need 1. Just 1 physical server to run, maintain and suck less power and utility. Lower up front cost, certainly less ongoing utility bills, and real estate cost. In real life examples, we can see conservative consolidations of over 20 servers into just 1 box!!

This is only the tip of the ice berg we have touched on here. Let me go on a little more before this introduction becomes too much.

One very powerful aspect of virtualization that some may take for granted, but makes all these wonderful concepts possible, is that virtualization creates a whole new hardware platform. I see it as a virtual hardware platform. The virtualization layer basically creates a whole new infrastructure, which only exists logically. What this means is that the hardware that the VM OS actually thinks it sees, are virtual. They do not exist, physically.The result is that we have essentially de-coupled VM from the real server it resides on. We can then take a copy of that VM, and allow it to run on any physical box that has the virtualization layer/engine/OS installed.

Such is not possible with OS running on physical machines. The closest thing we can probably do is pull out the harddisk from one server, transfer it to another server with the exact same hardware, CPU, RAM, NIC, HBA, etc… and then boot up. Even then, there are some differences, the NIC MAC and HBA addresses are different. If you transfer the harddisk to other boxes, but with different config. You’ll end up with some nightmare to reconfigure all the drivers, which most of the time is a very very risky maneuver.

If you are following my thoughts so far, you should now realize that virtualization transforms servers to be something portable. With the right setup, you can easily move VM from one physical box to another, even in different locations, and geography. Think server migration… you can even just copy a VM on to a 2.5″ portable harddisk, take it with you on the plane, fly half way round the planet, and load it up on to another box, and it’s up and running in minutes!!

Again, we are still only scratching the surface. The promise of what else can be done is tremendous, and I will write about them in my future posts.

For those who I’ve lost since “Avatar”, I’ll close off with a little tidbit to help you appreciate virtualization a little more. Some of you may have played old Nintento consoles, the Famicom, Super Famicom, Gameboy Advance, etc… There are emulators out there, which allows you to play these old school games on your computer, be it a Windows, Mac or even the iPhone. This in a way, is virtualization, the consoles have been virtualized so that you can play the games on other type of hardware. Though not exactly the same as server virtualization, I’m hoping it’s something more people can relate to.

Leave a Comment :, , , , , more...

DROPBOX – keep files in sync and have a backup copy in the cloud

by Jason on Mar.31, 2010, under Tech Stuffs, computers, iPhone

I’ve been using this nifty little tool for many months now, and it works like a charm!! I first got introduced to it watching Tekzilla, and I’m now hooked!!

What Dropbox does is that you identify a particular folder in your computer that you want to be kept in sync between computers. For me, this is my desktop, notebook & netbook. Everytime your computer is on the internet, it will keep all the files sync’d in this folder. So, no matter which machine you are on, you have access to all the files in that folder. Update the file any where, and the rest will get the updates too. To make it even more awesome, you can access these files on your iPhone or Android device.

Dropbox installs a small client on to your computer, and gives you 2GB of free space at the start. With some successful referrals, your free space goes up to 10GB!!

I use it to keep my frequently used files in sync between my computers. I’ve read other usage as to keep iTunes libraries in sync between computers, some others use it to keep emails sync’d between computers, and much more. The possibilities are endless.

So, wait no more!! give it a try and use my referral link here =)

Leave a Comment :, , , , , , , , , more...

softlinks (symbolic links) and hardlinks in Windows

by Jason on Feb.12, 2010, under Tech Stuffs, computers

for the die hard unix and linux fans out there who appreciate the use of symbolic links and hard links, there’s actually a Windows equivalent out there. (then again, if you a die hard fan… you may not use windows much… but for those who do… keep reading…)

All these years, I thought the closest thing to symbolic links in Windows will be the shortcuts. However, In Vista and Windows 7 there is actually a good support for symbolic links and hard links. The command line utility to create/manage these links are not there by default however. One will need to download a package from Microsoft.

Now, I’ve discovered that someone has actually developed a Windows explorer shell extension to create/manage symbolic/hard links. You can download the freeware here.

I’ve downloaded and installed the utility called Link Shell Extension (LSE in short), and it works nicely for me. Mind you, I strongly encourage you to read through the online manual to understand how to use it effectively. It also has a good coverage on the pitfalls in the earlier version of Windows.

For the benefits of you who do not know what are symbolic/hard links, these are references to files and directories in your computers. There are many usage for these links, and the most common scenario is this….

Imagine you have a file located in c:\users\hello\documents\download\section\blah\etc\here\thisfile.jpg

That is a very long reference to the file. To make things simple, you want the file to be available in c:\directory\thisfile.jpg but you need to keep a copy in the original location, and at the same time have c:\directory\thisfile.jpg as an exact copy. The traditional way is probably just to create a copy of the file, and anytime the original file is updated, we’ll just copy it again.

Now, imagine that we can create c:\directory\thisfile.jpg as a symbolic link to the original file. Access this symbolic link gives the exact same result as accessing the file directly. You can open, save, change the symbolic link just as if it’s a real file. And anytime the original file changes, you’ll get the update immediately. No need to copy the file over. In way, you save disk space as well, since there’s only one real copy of the file.

There’s a lot more to symbolic links and hard links, and you can easily find more information about them on the web.

Hope you’ll find this useful =)

Leave a Comment :, , , , , , , more...

how to make your Windows PC run faster?

by Jason on Oct.07, 2009, under computers

I don’t know anyone who has a Windows computer that doesn’t come to a crawl after using it for about a year. The computer takes 5-10 mins, and in worse cases 20mins to boot up to a usable state.

This happens for several reasons, and one of the biggest reason is due to file fragmentation. The performance hit gets worse if your paging file (swap file) is fragmented as well.

Since nearly 2 years ago, I found a nice, free defragmentation utility on the web. Back then, it was known as JKDefrag. The idea was good and it worked by calling native Windows APIs. This means that the programmer leveraged a lot on Microsoft’s native functions to do the work. His utility just provided the brain and coordinate the whole activity.

This is a good design that the utility will not do anything out of Microsoft’s comfort zone. Meaning, all moving of the bits and pieces of the file is executed as safe as it gets. JKDefrag did not have to re-invent anything.

Now, a newer version has been released and I’ve used it. The utility has been renamed as MyDefrag (mydefrag.com) and it has a new feature. This introduces a new dimension to what JKDefrag did. MyDefrag will now optimize the files, in addition to just defragmentation.

The new optimization idea is great! It basically re-orders the files on the harddisk into zones, and depending on the type of the file, the frequency of access of the file, the files are organized into each zone. I will not go into the specifics here, so if you like to understand in greater details what is done, you may read up from the website.

I’ve installed and optimized on my desktop and 2 netbooks. The end result is phenomenal! I can actually feel that the boot up time of these computers are shorter, and general usage experience of the computers have improved.

For anyone who wants to squeeze more out of their computers, I would recommend trying this utility out.

This utility is free, and you have the freedom to make a donation to the author of the utility if you wish to. I’m in no way affiliated to this author, and I’m writing this just to share with you out there this great utility I’ve discovered.

So, if you do try out the utility, what you need to do after installation is to run “slow optimize” the very first time you use it. That basically does the initial job to re-order the entire harddisk. Be warned though, this can take a very very long time… on one of my netbooks, it took 2 days, and the other took only 3 hours. So it depends how much work needs to be done.

So, go forth and unleash some renewed performance to your computer :)

Leave a Comment :, , , , , , , , , , , more...

Are you getting MSN SPAM?

by Jason on Sep.02, 2009, under computers

Have you ever received strange messages from your friends on MSN, but they are not really online?

The messages seems somewhat realistic, and often comes with a link for you to click on…. one example I received recently is as below

huhuhahahah thats YOU?!? LOL! :D :D:D http://xxxxx.My-Pictures–Downloads..com/?image=DSC07819.JPG

#1 rule – Don’t Click on It!!! never click on any URL you are not sure of. If you received a message with your friend being offline, it’s a really good chance it’s not from your friend. Clicking on it will likely get you into trouble with malware.

In fact, most of the times it’s actually a malware site that’s spamming you. So the question is, how did the spammer get hold of your friend’s account? There are at least 2 possible ways.

  1. your friend has a poor password used for the MSN account, a password which the spammers were able to “guess”. Most of the time this is true, not many people will have good passwords.
  2. your friend has used a computer that has a malware active, so when he/she logs in to MSN, the malware captures the password and sends it to the spammer

So, how do we combat this? Just a few simple tips should make these go away

  1. immediately advise your friend who’s account has been compromised to change the password to his/her MSN account
  2. if you know that your password is simple, change it as well (no it’s not that it’s now compromised, it’s to avoid it being compromised in a similar fashion)
  3. it’s good practice now to have passwords that mixes numbers and letters. To make it even better, throw in a punctuation. Of course the ultimate password will also contain the 3 components plus the letters are a mix of upper and lower cases, and the entire password is at least 8 characters long. So something like “BitE2mE89$” is great! and “coffeeforme” is really bad.
  4. make sure your computer has an up to date antivirus/malware installed. If you don’t want to pay for one, you can get a free version from AVG. Free, only if you are using it for personal use. For a business PC, you need to buy one.
  5. make sure your computer is patched (updated) regularly, if windows prompt you to update, run it. It often fix problems which antivirus/malware products cannot protect you from.
  6. Patching and having an antivirus/malware product complements each other, together they cover you better.

If you use facebook or twitter, earlier in August 2009, both these websites were hit badly. As a user to these sites, you’ll probably get strange looking webpages, or perhaps slow, or nothing worked. That is the consequence of hundreds of thousands of PCs not properly maintained and have malwares running on them. These PCs were under control via the malware to attack these services. So, for a good couple of weeks, facebook was not really usable. If all computers were properly maintained with the few simple steps above, we wouldn’t have any problem. It’ll be good for facebook and the rest of us.

If you have friends and family who you feel may not know these few basic and hugely important tips, do share these tips with them.

If you have any queries or comments, just drop in a message below or email me :)

Leave a Comment :, , , , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

this is a green website