linux count how many cores a server has

You can see how many cores (virtual) that a server has:

# grep -c ^core /proc/cpuinfo

This physical machine has 8 cores, but the kernel sees 16 because of hyperthreading hardware setting.

Leave a Reply

Your email address will not be published. Required fields are marked *