Apr 13

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! ;)

Extra Tips

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:

cat /proc/meminfo

For total seconds since the last reboot:

cat /proc/uptime

For Linux release and versions:

cat /proc/version

And much more. Just ‘ls /proc’ and try for yourself.

5 Responses to “Simple SSH (Linux) Command to Display the Number of CPUs (Processors) of Your Hosting Server”

  1. Check for Hosting Server Load with Linux (SSH) Command ‘uptime’ Says:

    [...] Simple SSH (Linux) Command to Display the Number of CPUs (Processors) of Your Hosting Server Apr [...]

  2. How to know whether your host is overselling? Says:

    [...] Check for the number of server processors or CPUs [...]

  3. How to know if your hosting provider is overselling on your server? Says:

    [...] /proc/cpuinfo | grep processor | wc -l Which will usually return the number of the CPUs of the current server: 2 Then, display the server load by uptime Which outputs a single line of [...]

  4. How to find out the Linux distro release and the version number of your server? Says:

    [...] may also be interested in some other useful things to see within /proc. Related PostsSimple SSH (Linux) Command to Display the Number of CPUs (Processors) of Your Hosting [...]

  5. someone Says:

    grep can get filenames, so this can be better:
    grep processor /proc/cpuinfo | wc -l

Leave a Reply