Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170569

How to count sockets for pve subscriptions?

$
0
0
Hi,

I tried to count my CPU-sockets to plan a budget for subscription,

my system has:
Code:

root@pve2:~# lshw | grep -i cpu
    *-cpu:0
          description: CPU
          product: Intel(R) Xeon(R) CPU          E5520  @ 2.27GHz
          bus info: cpu@0
          version: Intel(R) Xeon(R) CPU          E5520  @ 2.27GHz
    *-cpu:1
          description: CPU
          product: Intel(R) Xeon(R) CPU          E5520  @ 2.27GHz
          bus info: cpu@1
          version: Intel(R) Xeon(R) CPU          E5520  @ 2.27GHz

so I guess the cpu-socket is 2.

I've searched on the web and also found this page which ends up with


  • to count cpu-sockets: "#cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l"
    • this on my system gives 2

  • to count cpu-cores: "#cat /proc/cpuinfo | egrep "core id|physical id" | tr -d "\n" | sed s/physical/\\nphysical/g | grep -v ^$ | sort | uniq | wc -l"
    • this on my system gives 8

  • to count cpu-threads: "#cat /proc/cpuinfo | grep processor | wc -l"
    • this on my system gives 16



Is it right, so 2 is my cpu-socket count?

Thanks, Marco

Viewing all articles
Browse latest Browse all 170569

Trending Articles