Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Total No.of CPU cores when Hyper threading enabled on linux servers


    Can any one please let me know how to caluculate the total number of CPU cores(Physical and Logical) when HT is enabled on any linux servers.


  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    With HT enabled, total "virtual" cores == physical cores x 2. If you have a 4 core cpu, HT will give you 8 virtual cores. FWIW, this is only useful for multi-threaded applications, such as Java. You still only have 4 cores, but there are additional registers that are used to support more threads efficiently. However, HT does NOT give you more processing power - just more registers to squeeze out the last bit of performance available.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    have a look at these commands:
    cat /proc/cpuinfo|grep core\ id
    cat /proc/cpuinfo|grep processor
    cat /proc/cpuinfo|grep physical\ id
    on my Dual-Core, Hyperthreaded D510 processor (4 "virtual" CPUs), i get:
    core id         : 0
    core id         : 1
    core id         : 0
    core id         : 1
    processor       : 0
    processor       : 1
    processor       : 2
    processor       : 3
    physical id     : 0
    physical id     : 0
    physical id     : 0
    physical id     : 0

  4. $spacer_open
  5. #4
    Thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts