hardware.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. sockets - how many individual cpus (physical cpus)
  2. cores - how many cpu cores
  3. threads - how many number of threads per each core
  4. # physical cpu cores vs logical cpu cores
  5. (https://unix.stackexchange.com/questions/88283/
  6. so-what-are-logical-cpu-cores-as-opposed-to-physical-cpu-cores)
  7. $ lscpu
  8. Architecture: i686
  9. CPU op-mode(s): 32-bit, 64-bit
  10. Byte Order: Little Endian
  11. Address sizes: 36 bits physical, 48 bits virtual
  12. CPU(s): 2
  13. On-line CPU(s) list: 0,1
  14. Thread(s) per core: 1
  15. Core(s) per socket: 2
  16. Socket(s): 1
  17. Vendor ID: GenuineIntel
  18. CPU family: 6
  19. Model: 42
  20. Model name: Intel(R) Pentium(R) CPU B950 @ 2.10GHz
  21. Stepping: 7
  22. CPU MHz: 798.120
  23. CPU max MHz: 2100.0000
  24. CPU min MHz: 800.0000
  25. BogoMIPS: 4190.20
  26. L1d cache: 64 KiB
  27. L1i cache: 64 KiB
  28. L2 cache: 512 KiB
  29. L3 cache: 2 MiB
  30. * In the above Intel(R) Pentium(R) laptop has 2 "CPUs" in total.
  31. CPU(s): 2
  32. * Of which there are 2 physical cores (1 socket x 2 cores/socket = 2 cores)
  33. Core(s) per socket: 2
  34. Socket(s): 1
  35. * Of which each can run upto 1 threads
  36. Thread(s) per core: 1
  37. at the same time. These threads are the core's logical capabilities.
  38. $ sudo dmidecode | egrep "Socket Designation: Proc|((Thread|Core) Count)"
  39. Socket Designation: Proc 1
  40. Core Count: 14
  41. Thread Count: 28
  42. Socket Designation: Proc 2
  43. Core Count: 14
  44. Thread Count: 28
  45. * Two sockets.
  46. * Each socket has 14 physical cores.
  47. * Each core has two threads (28/14).
  48. * Total number of logical "cpus" or logical processing units is 56.
  49. (that's what top and some other commands would show you as number of "cpus")