Find the answer to your Linux question:
Results 1 to 4 of 4
Hi i am new member, i have 2 pcs and i want to see the number of cores. So, for the 1st pc i type Code: grep cores /proc/cpuinfo and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    2

    Question number of cores cpu


    Hi i am new member,

    i have 2 pcs and i want to see the number of cores. So, for the 1st pc i type
    Code:
    grep cores /proc/cpuinfo
    and i receive:

    cpu cores : 2
    cpu cores : 2
    cpu cores : 2
    cpu cores : 2

    and for the second pc i type
    Code:
    grep cores /proc/cpuinfo
    and receive:

    cpu cores : 1
    cpu cores : 1
    cpu cores : 1
    cpu cores : 1

    So, the numbers of cores for my 1st pc is 8 cores and for the 2nd 4 cores

    Actually, i cannot understand why when i type for the 1st pc
    Code:
    grep "core id" /proc/cpuinfo
    i receive:

    core id : 3
    core id : 3
    core id : 0
    core id : 0

    and for the 2nd pc i receive :

    core id : 0
    core id : 1
    core id : 1
    core id : 0

    So, do i have 8 cores for the 1st pc and 4 cores for the second OR 4 cores for both pcs

    If i have 8 cores for the 1st and 4 for the 2nd, why i dont receive 8 core ids for the 1st pc

    Thanks.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello and welcome!

    Check this thread for more details and info on getting a cpu core count:

    http://www.linuxforums.org/forum/red...ount-rhel.html

    What are the make and model numbers of your processors?
    oz

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    55
    1-st PC has 2 CPU cores.
    2-nd PC has 1 CPU core.
    Open /proc/cpuinfo with no grep - it is human readable.
    Additionally, you might want to mind the hyper-threading, that distinguishes between core and (hardware) thread.

  4. #4
    Just Joined!
    Join Date
    Jul 2011
    Posts
    2
    Quote Originally Posted by white_hound View Post
    1-st PC has 2 CPU cores.
    2-nd PC has 1 CPU core.
    Open /proc/cpuinfo with no grep - it is human readable.
    Additionally, you might want to mind the hyper-threading, that distinguishes between core and (hardware) thread.
    Both pcs have 4 processors. So, the 2nd has 4 cores and the 1st 8 cores

Posting Permissions

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