2

For Oracle licensing topics I need to identify how many sockets and cpus are actually installed on the hardware. On windows this information can be found by the cmd command “systeminfo”.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
r0tt
  • 385

1 Answers1

3

You can find out it from cpuinfo file.

Run below mentioned command to find number of cpu socket.

grep "physical id"  /proc/cpuinfo | sort -u | wc -l
Archemar
  • 31,554
sssdexp
  • 102
  • Notes to self: a) sort -u deduplicates (each CPU thread - not just physical core - has a separate entry in cpuinfo file), b) wc -l counts the lines (here: reporting the number of rows with "physical id") – mirekphd Jun 17 '22 at 10:39