What is CPU ?
The CPU stands for central processing unit it is the brain part of the system. Every computation, execution of every file is done at this part of the system. The number of cores involved in the configuration and the frequency of it can be considered as the factors to differentiate its power. In the area of hosting the power requirement of the CPU is chosen depending on what kind of files it has to run.
CPU stands for Central Processing Unit where all the process takes place for a system.
Some computers have dual or multiple processors. These consist of two or more separate physical CPUs located side-by-side on the same board or on separate boards. Each CPU has an independent interface, separate cache, and individual paths to the system front-side bus. Multiple processors are ideal for intensive parallel tasks requiring multitasking. All our shared web hosting is powered by dual proc and 16 core processors.
How Does CPU affect on sites hosted on the servers?
When multiple requests are made to the CPU simultaneously, the requests will be queued and handled in turn. Each request will receive a fraction of a second processing time before the next request is handled, just as when you run multiple processes on your local computer.
Our Shared Servers allows a maximum of 25% CPU usage limit on our shared and reseller servers. If a hosting account exceeds this limit for longer than 90 seconds, resource restrictions will be placed on the account . The account would be on a frozen state until the CPU allocated to the user is freed.
On VPS, Cloud servers you can use 100 % of your CPU resources. You can even choose number of cores that you require for your server on buying the product. If you see that you have more process to be run on your system, then CPU cores can be upgraded at any point of time.
How to check the CPU usage Details on your server?
Here the load average it shows as “zero” that means the server is Idle and does not have any process running currently.
The below are the rest of the Parameters shown in the column %Cpu(s)
us - Time spent in user space
sy - Time spent in kernel space
ni - Time spent on low priority processes
id - Time spent in idle operations
wa - Time spent on waiting on IO peripherals (eg. disk)
hi - Time spent handling hardware interrupt routines
si - Time spent handling software interrupt routines
st - Time in spent on involuntary waits by virtual cpu while hypervisor is servicing another processor (stolen from a virtual machine)
When do you need to upgrade your CPU core?
Use the below command to check how much percentage of CPU resource has been used by what process.
ps aux k-pcpu | head -6
head -6 will show only the maximum top 6 process used by the CPU.
The result will be something as below.
By this you would be able to guess how much percentage of CPU does each process take by checking the 3rd column.
When a single core system is using 100% of CPU, Then there will be no space for the next process to be processed and that would take the system to a frozen state. And note that this is not only the parameter for the system to be on a frozen state, RAM and Load due to apache hits will also count on the server loads causing the system to be frozen.
To be on the safer side, keep track of number of CPU resources being used and always have an extra CPU core than the normal usage on your servers so that there will be no downtime on your servers.
If you want to buy shared hosting, Please visit our shared hosting page.
If you want to buy Virtual Server, Please visit our VPS page.