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
  • 55,929
  • 26
  • 146
  • 227
r0tt
  • 385
  • 1
  • 3
  • 10

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,183
  • 18
  • 69
  • 104
sssdexp
  • 102
  • 3
  • 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