I’ve deployed the 2 vCPU 4GB RAM droplet, and while setting some configuration I’ve noticed that it still only has 1 core through ‘cpuinfo’.
What is the difference between the 1 vCPU and 2 vCPU if both only have 1 core?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
1 vCPU = access to 1 core, 2 vCPUs = access to 2 cores, etc…
At least on Ubuntu/Debian, the
/proc/cpuinfohas a separate entry for each CPU core. So when you scan through the file you might see
cpu cores: 1but there is a separate entry for each core. For example:
Knowing that, some commandline-fu to output the number of cores is:
cat /proc/cpuinfo | grep processor | wc -l
which is just finding the number of lines in cpuinfo with
processor. Here’s an even more thorough answer: https://askubuntu.com/questions/724228/how-to-find-the-number-of-cpu-cores-including-virtual