Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread Matthew J. Roth
Gianluca Cecchi wrote: > b) Do you think there is any way to enumerate the number of physical > sockets of a system based only on values in cpuinfo and not using > dmidecode command? Gianluca, There is a Red Hat Knowledgebase article titled "How do I determine if my x86-compatible Intel system i

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread Rick Stevens
On 01/28/2010 03:30 AM, John Aldrich wrote: > On Thursday 28 January 2010, Gianluca Cecchi wrote: >> Hello, >> after digging around different systems (Fedora, RHEL) and mailing >> lists suggestions I arrived at this script about identifying on a >> system: >> - number of sockets >> - number of core

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread John Aldrich
On Thursday 28 January 2010, fred smith wrote: > > I seem to have missed the earlier postings in this thread,... where can > I find a copy of this script? > Check the list archives. Might be able to get it there. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscr

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread fred smith
On Thu, Jan 28, 2010 at 09:09:50AM -0500, John Aldrich wrote: > On Thursday 28 January 2010, Gianluca Cecchi wrote: > > Hello, > > after digging around different systems (Fedora, RHEL) and mailing > > lists suggestions I arrived at this script about identifying on a > > system: > > - number of sock

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread John Aldrich
On Thursday 28 January 2010, Gianluca Cecchi wrote: > Hello, > after digging around different systems (Fedora, RHEL) and mailing > lists suggestions I arrived at this script about identifying on a > system: > - number of sockets > - number of cores per socket > - number of logical processors (so co

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread Gianluca Cecchi
On Thu Jan 28 13:18:20 UTC 2010 John Aldrich wrote: > Here's the output of the command run using sudo: Ok, so if you change inside the script NSOCKETS=$(dmidecode | grep -c "Central Processor") with NSOCKETS=$(sudo /usr/sbin/dmidecode | grep -c "Central Processor") and put in sudoers the permiss

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread John Aldrich
On Thursday 28 January 2010, Gianluca Cecchi wrote: > On Thu Jan 28 11:30:31 UTC 2010 John Aldrich wrote: > > /dev/mem: Permission denied > > I thought that if run by root, it should not give this permission > denied problem strange > > I didn't mention in general that on RH EL based systems,

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread John Aldrich
On Thursday 28 January 2010, Gianluca Cecchi wrote: > On Thu Jan 28 11:30:31 UTC 2010 John Aldrich wrote: > > /dev/mem: Permission denied > > I thought that if run by root, it should not give this permission > denied problem strange > > I didn't mention in general that on RH EL based systems,

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread Gianluca Cecchi
On Thu Jan 28 11:30:31 UTC 2010 John Aldrich wrote: > /dev/mem: Permission denied I thought that if run by root, it should not give this permission denied problem strange I didn't mention in general that on RH EL based systems, the dmidecode rpm is needed and that the binary is in /usr/sbin (I

Re: RFC about socket/cores numbers and HT info

2010-01-28 Thread John Aldrich
On Thursday 28 January 2010, Gianluca Cecchi wrote: > Hello, > after digging around different systems (Fedora, RHEL) and mailing > lists suggestions I arrived at this script about identifying on a > system: > - number of sockets > - number of cores per socket > - number of logical processors (so co

RFC about socket/cores numbers and HT info

2010-01-28 Thread Gianluca Cecchi
Hello, after digging around different systems (Fedora, RHEL) and mailing lists suggestions I arrived at this script about identifying on a system: - number of sockets - number of cores per socket - number of logical processors (so computational units) seen by OS - info about presence/enablement of