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 ...
- 07-20-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
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 typeand i receive:Code:grep cores /proc/cpuinfo
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
and for the second pc i typeand receive:Code:grep cores /proc/cpuinfo
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
i receive:Code:grep "core id" /proc/cpuinfo
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.
- 07-20-2011 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,095
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
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 07-21-2011 #3Just Joined!
- Join Date
- Jun 2006
- Posts
- 47
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.
- 07-21-2011 #4Just Joined!
- Join Date
- Jul 2011
- Posts
- 2


Reply With Quote
