Stop Sharing Your Kernel: Why KVM is the Future of High-Performance VPS in Norway
It is May 2011. We are seeing a shift in the hosting landscape that many providers are trying to ignore. If you have ever logged into your VPS during peak traffic hours, ran top, and saw your CPU usage spiking despite zero traffic on your site, you have been a victim of the "noisy neighbor" effect. This is the dirty secret of virtualization technologies like OpenVZ and Virtuozzo.
At CoolVDS, we take a different approach. We believe that when you pay for resources, you should actually get them. That is why we are betting the farm on KVM (Kernel-based Virtual Machine). For systems administrators and CTOs in Norway demanding stability, the days of container-based virtualization for production workloads are numbered.
The Architecture of Slowness: Containers vs. Hypervisors
To understand why your database query took 3 seconds instead of 0.03 seconds, you have to look at the kernel. In widely used container technologies (OpenVZ), every VPS on the physical node shares the same host kernel. If one neighbor decides to compile a massive C++ application or gets hit by a DDoS attack, the kernel locks up trying to manage those requests. Your MySQL process waits in line.
KVM is different. It turns the Linux kernel into a hypervisor. Each VPS gets its own isolated kernel, its own memory space, and virtualized hardware. It is as close to a dedicated server as you can get without the physical bulk.
War Story: The Magento Meltdown
Last month, we migrated a client running a heavy Magento e-commerce store. They were hosting with a generic US provider on a "Cloud VPS" (a marketing buzzword for oversold OpenVZ). Every day at 14:00 Oslo time, their checkout page timed out.
We ran vmstat 1 on their old box. The st (steal time) column was hovering around 40%. This means 40% of the CPU cycles the client paid for were being stolen by the hypervisor to serve other customers. We moved them to a CoolVDS KVM instance in our Oslo datacenter. The result? 0% steal time and page loads dropped from 4 seconds to 600ms. Same specs, different architecture.
Technical Deep Dive: Optimizing KVM for I/O
Because KVM presents virtual hardware to the OS, we can tune the guest operating system in ways impossible with containers. For high-performance storage, specifically with the new Solid State Drives (SSDs) we are deploying, the default I/O scheduler in CentOS 5 or Ubuntu 10.04 is often suboptimal (usually CFQ).
If you are running on our SSD-backed KVM instances, you should switch your scheduler to noop or deadline. This tells the kernel: "Don't try to reorder the disk requests, the storage array is fast enough to handle them raw."
Here is how you apply it instantly without a reboot:
# Check current scheduler
cat /sys/block/vda/queue/scheduler
[cfq] deadline noop
# Switch to noop for lower latency
echo noop > /sys/block/vda/queue/scheduler
Note: In KVM, your drive usually appears as /dev/vda thanks to the VirtIO drivers, which significantly reduce overhead compared to full hardware emulation.
Data Sovereignty and Local Latency
Performance isn't just about CPU cycles; it's about physics. Light speed is finite. Hosting your application in Frankfurt or Amsterdam adds 20-40ms of round-trip latency for your users in Trondheim or Bergen. Hosting in the US adds 100ms+.
By placing our infrastructure directly in Oslo, peering at NIX (Norwegian Internet Exchange), CoolVDS ensures that your packets take the shortest possible path. Furthermore, with the growing scrutiny from Datatilsynet regarding data privacy and the Patriot Act affecting US-hosted data, keeping your customer data on Norwegian soil is the only legally prudent choice for 2011.
Pro Tip for Database Admins: When running MySQL 5.1 or 5.5 on KVM, ensure you configureinnodb_flush_method=O_DIRECTin yourmy.cnf. This prevents double-buffering between the OS cache and MySQL's buffer pool, freeing up RAM and stabilizing performance on virtualized storage.
The Verdict
OpenVZ is fine for a personal VPN or a low-traffic blog. But if your business relies on uptime and consistent throughput, you need the isolation of KVM. You need full control over your kernel modules (yes, you can finally run iptables with complex distinct modules).
Don't let legacy virtualization tax your growth. Experience the difference of dedicated kernel resources and local SSD storage.
Ready to eliminate steal time? Deploy a KVM instance with CoolVDS today and get direct connectivity to the NIX backbone.