CPU minutes

From DreamHost
(Redirected from CPU Minutes FAQ)
Jump to: navigation, search

Overview

DreamHost measures server resource consumption in CPU minutes. This number indicates how much time a processor spends working for your username. You can use as much as you would like as long as you do not affect the server or other customers' sites. If you are able to optimize your site correctly, you can use up to 300+ CPU minutes without causing any issues, though if your services are not optimized or just very inefficient you can easily bring down a server's performance with very little CPU usage.

Average shared hosting customers normally use less than 5 CPU minutes per day for their account, so you may want to gauge this with your usage to give you an idea of how much you are using.

Note2 icon.png Note: Bandwidth and CPU usage are very different and do not measure the same resource.


Explanation

Anything run by your user on the server uses CPU time. The more efficient your coding and databases are, the less CPU time is used to do the calculations needed to run your site. For example, loading a static image will take little time on the CPU. On the other hand, searching for a single comment in a database full of comment spam could take considerably longer, and therefore use more CPU time.

A WordPress blog with many plugins, uptime robots, and a theme with a lot of widgets can take entire minutes of CPU time each day. To insure performance, you will want to keep CPU time to a minimum.

Enabling CPU reporting

  1. Navigate to the (Panel > ‘Users’ > ‘Manage Users’) page.
  2. To the right of your username, click the Edit button.
    01 CPU minutes.fw.png
  3. On the user’s edit page, check the checkbox next to ‘CPU Reporting’.
  4. Click the Save Changes button to save.

Viewing CPU usage

Once a day, CPU usage is calculated, and you will be able to access that log via SSH or SFTP in the following directory:

/home/username/logs/resources.log