One of the first things that may concern you is that whether your web hosting company has equipped enough CPUs or Processors on your server as they have allegedly done. Or you are on shared plans and are simply curious whether your web hosting provider is overselling by overloading your server a lot.
First make sure you have SSH access to your hosting server which majority of hosting businesses are now providing. Then create an SSH account and log it in to the server.
A rather simple linux bash command will help you determine how many CPUs your host has on your server:
cat /proc/cpuinfo | grep processor | wc -l
This combination of pipeline command extracts server processors information from /proc/cpuinfo that contains CPU details each per line, returning a plain number which will usually be 1, 2, 4 or even more.
There you go. Now find out whether your host is cheating on you with this tip in addition to checking your server load! 😉
You can find plenty of other useful and interesting information about your hosting server and OS release at /proc. For example, for some RAM stats:
For total seconds since the last reboot:
For Linux release and versions:
And much more. Just ‘ls /proc’ and try for yourself.
Pingback: Check for Hosting Server Load with Linux (SSH) Command ‘uptime’
Pingback: How to know whether your host is overselling?
Pingback: How to know if your hosting provider is overselling on your server?
Pingback: How to find out the Linux distro release and the version number of your server?
grep can get filenames, so this can be better:
grep processor /proc/cpuinfo | wc -l
Why you’re all abusing wc and cat ?
it can be as simple as
# grep -c processor /proc/cpuinfo