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

    Explain CPU counting and linux counting?

    i see cpu has 4 cores and 8 threads on above page,
    but when i do cat /etc/cpu* in linux,

    i count 16

    so im not sure how to read that numbers?

    I thought i will multiply cores against threads, but it results 32, so its not true..?

  2. #2
    Linux Engineer
    Join Date
    Jan 2005
    Saint Paul, MN
    Cores is a hardware term that describes the number of independent central processing units in a single computing component (die or chip).

    A Thread, or thread of execution, is a software term for the basic ordered sequence of instructions that can be passed through or processed by a single CPU core.
    The numbers are what you see when looking at the socket-level (4 cores with hyper threading which yields 8 threads).

  3. #3
    i dont understand this explanation.

  4. $spacer_open
  5. #4
    Linux Engineer
    Join Date
    Jan 2005
    Saint Paul, MN
    At the socket level (plugs into a socket or or is soldered on the motherboard), this "chip" has 4 cores. Each core has "hyper threading" (which allow for 2 threads per core).
    In math equation:
    4 cores     2 threads      8 threads
    -------- * -----------  =  ------------
    1 socket    1 core          1 socket
    To get 16 threads, you would need to have 2 chips!

  6. #5
    So when says:
    # of Cores 4
    # of Threads 8

    and i want to discover total of cores(incl- virtual) i do: Threads / Cores (8 / 4) = 2. Then i multiply result by number of threads? (2x8 = 16)?

    So when there is this cpu - ARK | Intel® Xeon® Processor L5638 (12M Cache, 2.00 GHz, 5.86 GT/s Intel® QPI)
    # of Cores 6
    # of Threads 12

    I do again threads/cores:12/6=2. 2x12=24 (threads)


    So if i have:
    E3-1230 4 cores, 8 threads.

    Im getting 8/4=2 ; 2x8=16 threads. 16x3,2Ghz=51.2Ghz

    And second:
    L5638 6 cores, 12 threads

    Im getting 12/6=2 ; 2x12=24 threads. 24x2Ghz=48Ghz

    surprisingly, more threads CPU is weaker..?
    Last edited by postcd; 06-06-2014 at 01:33 PM.

Posting Permissions

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