What is “CPU usage”?

Our servers run programs for many websites, so your PHP scripts and other programs you install can’t use the full resources of a server all the time. That’s okay, though, because your website won’t need to run scripts all the time (it will be idle between visitors, using no resources while it waits for the next page request).

When you run a script, it uses the resources of one of the CPU “cores” of our servers for a certain amount of time.

Because the CPU resources are limited, we measure how much you use, and our hosting plans include different amounts of CPU power, just like they include different amounts of disk space and email mailboxes.

All our hosting plans include plenty of CPU power — in fact, your site can average 25% of a powerful server computer core on even our least expensive plan. In our experience, only very busy sites, or sites with very resource-intensive scripts, use more than that. Most of our customers use much less.

On this page:

So what’s a “CPU unit”?

CPU power is more abstract than disk space or email mailboxes, so it’s difficult to concisely describe how much you use. We use the phrase “CPU units” as a simple description.

We define a “CPU unit” as being equivalent to 1% of the available resources of one core of an Intel Xeon E5-2630 v3 processor running at 3.2 GHz. (You can see why we shortened the name!)

If you’re familiar with the concept of a Unix load average, 20 CPU units would be roughly equivalent to adding 0.2 to a server’s load all month long.

Looked at another way, 20 CPU units is enough power for an unmodified copy of WordPress to show 45,000 page views per hour, even without caching.

Do you measure CPU usage as an average, or by peak usage?

We measure CPU units as a monthly average (and we don’t count the three busiest days of CPU usage each month at all), allowing you to use more during busy periods without any penalty.

So if your site uses 1 CPU unit for 23 hours a day, then “bursts” up to 50 CPU units for one busy hour every day, your monthly average would still only be 3 CPU units, and you wouldn’t need to upgrade to a larger plan.

Even if your site had three busy days during the month where all 24 hours used 50 CPU units, those wouldn’t change the average (because we ignore the three busiest days).

We’ll notify you if your average CPU units are going to exceed the amount included in your plan (although that’s very rare) so you can avoid extra charges.

How can I see how many CPU units I’m using?

The usage page of our “My Account” control panel shows CPU usage graphs that are updated hourly.

If you make a technical change and you want to see how that affects your site, you should wait at least an hour and then review the graph. That way you can be sure that it shows a full hour of the changed usage.

How do CPU units compare to a “dedicated server”?

A modern single-core dedicated server that other companies might sell you can probably handle about 80 CPU units. If your site ever uses more than that — even for a short period of time — it would stop working properly if it was on that company’s dedicated server.

One of the advantages of using our “shared hosting” instead of a “dedicated server” is that we only charge you for the average usage, not the peak usage.

If your site uses 3 CPU units most of the time, but gets a huge number of visitors once every few months from a listing on a popular news site, that can be very expensive on a dedicated server. If your site needs, say, 280 CPU units to handle a traffic burst for three hours a month, then your dedicated server would need to be able to handle that worst case — you’d need a dedicated quad-core server that would cost much more than what we charge you. But of course, you won’t be using that power most of the time.

With our shared hosting, you don’t need to pay for the worst case. We can handle pretty big “spikes”, and as long as your average usage remains low, the average is what you’ll pay for.

(On the other hand, if your average baseline usage is consistently more than 75 CPU units, you should use a dedicated server instead. Very few sites use that much, though.)

Can you give me an example of exactly how you’d calculate CPU units?

Sure thing. It’s a little geeky, but we want to make sure it’s understandable. The way it works is that we:

  • Add up the exact amount of CPU time used by each program you run each day;
  • If your site isn’t on an Intel Xeon E5-2630v3 processor running at 3.2 GHz, adjust the number to match what it would have been (this makes sure the numbers are the same for all sites, even across servers of slightly different speeds);
  • Divide the total by the number of seconds in the day and multiply it by 100 to get the day’s CPU units;
  • Discard the three busiest days of CPU usage for the month;
  • Take the average (mean) of the rest and round down to the next whole number. That’s how many CPU units you used.

So let’s say you install WordPress, which is a script that uses the full power of a CPU for about .016 seconds each time it runs (adding plugins and themes makes it use more resources, but we’re considering the simplest case).

For the first 7 days of February, your site is busy and gets 500,000 page views per day. That’s 8,000 seconds per day of CPU time. There are 86,400 seconds in a day, so we divide 8,000 by 86,400 and calculate that you used 9.3 CPU units for each of those 7 days.

Then for the next 21 days, your site gets 150,000 page views per day. That’s 2,400 seconds of CPU time each day, or 2.8 CPU units each day.

To calculate the average CPU usage for the month, we discard the three busiest days (which were each 9.3 CPU units), add the rest together (4 days at 9.3 units, plus 21 days at 2.8 CPU units, equals 96 CPU units), then divide that by the number of days we’re considering (96 divided by 25 days equals 3.84).

We round that number down and calculate that you used 3 CPU units in February.

As you can see, even a busy site doesn’t use much CPU power compared to the 25 CPU units we include even on our Basic Hosting plan. And in most cases, a small amount of effort to improve the efficiency of your scripts can make things much better; for example, it’s possible to tweak WordPress to handle hundreds of thousands of page views every day, even with a reasonable amount of plugins installed, and still use less than 10 CPU units.