From MAILER-DAEMON Fri Jul 06 22:34:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SnKqd-0003rG-No
	for mharc-dmidecode-devel@gnu.org; Fri, 06 Jul 2012 22:34:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40232)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsawhill@redhat.com>) id 1SnKqb-0003rA-4e
	for dmidecode-devel@nongnu.org; Fri, 06 Jul 2012 22:34:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rsawhill@redhat.com>) id 1SnKqZ-0000ET-HU
	for dmidecode-devel@nongnu.org; Fri, 06 Jul 2012 22:34:12 -0400
Received: from mx1.redhat.com ([209.132.183.28]:53033)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsawhill@redhat.com>) id 1SnKqZ-0000EG-9k
	for dmidecode-devel@nongnu.org; Fri, 06 Jul 2012 22:34:11 -0400
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q672Y9Jc022527
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <dmidecode-devel@nongnu.org>; Fri, 6 Jul 2012 22:34:09 -0400
Received: from [10.12.66.116] (dhcp-66-116.rdu2.redhat.com [10.12.66.116])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id q672Y80k013618
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <dmidecode-devel@nongnu.org>; Fri, 6 Jul 2012 22:34:08 -0400
Message-ID: <4FF7A020.3080802@redhat.com>
Date: Fri, 06 Jul 2012 22:34:08 -0400
From: Ryan Sawhill <rsawhill@redhat.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
To: dmidecode-devel@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Subject: [dmidecode] does dmidecode accurately report empty cpu sockets?
X-BeenThere: dmidecode-devel@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: dmidecode-devel@nongnu.org
List-Id: <dmidecode-devel.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/dmidecode-devel>, 
	<mailto:dmidecode-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/dmidecode-devel>
List-Post: <mailto:dmidecode-devel@nongnu.org>
List-Help: <mailto:dmidecode-devel-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/dmidecode-devel>,
	<mailto:dmidecode-devel-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Jul 2012 02:34:14 -0000

I've found conflicting information about this online and thought I'd 
post a quick question here before I begin deciphering the source.

Obviously if I had a system with at least 1 unfilled cpu socket I would 
know the answer, but alas, I don't at the moment.

So again, the question is: would the following give me an accurate 
representation of the number of sockets, whether their filled with a cpu 
or not?

# dmidecode -t4 | grep "Socket Designation:" | wc -l


Regards.


From MAILER-DAEMON Sat Jul 07 03:06:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SnP5w-00008o-Sz
	for mharc-dmidecode-devel@gnu.org; Sat, 07 Jul 2012 03:06:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58574)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <khali@linux-fr.org>) id 1SnP5u-00008h-Oz
	for dmidecode-devel@nongnu.org; Sat, 07 Jul 2012 03:06:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <khali@linux-fr.org>) id 1SnP5t-0001H4-2y
	for dmidecode-devel@nongnu.org; Sat, 07 Jul 2012 03:06:18 -0400
Received: from zonex.gcu-squad.org ([194.213.125.0]:29807
	helo=services.gcu-squad.org) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <khali@linux-fr.org>) id 1SnP5s-0001FW-ST
	for dmidecode-devel@nongnu.org; Sat, 07 Jul 2012 03:06:16 -0400
Received: from jdelvare.pck.nerim.net ([62.212.121.182] helo=endymion.delvare)
	by services.gcu-squad.org (GCU Mailer Daemon) with esmtpsa id
	1SnP5j-00039D-K5 (TLSv1:AES128-SHA:128)
	(envelope-from <khali@linux-fr.org>)
	; Sat, 07 Jul 2012 09:06:07 +0200
Date: Sat, 7 Jul 2012 09:06:02 +0200
From: Jean Delvare <khali@linux-fr.org>
To: Ryan Sawhill <rsawhill@redhat.com>
Message-ID: <20120707090602.18d39081@endymion.delvare>
In-Reply-To: <4FF7A020.3080802@redhat.com>
References: <4FF7A020.3080802@redhat.com>
X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.7; x86_64-suse-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 194.213.125.0
Cc: dmidecode-devel@nongnu.org
Subject: Re: [dmidecode] does dmidecode accurately report empty cpu sockets?
X-BeenThere: dmidecode-devel@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: dmidecode-devel@nongnu.org
List-Id: <dmidecode-devel.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/dmidecode-devel>, 
	<mailto:dmidecode-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/dmidecode-devel>
List-Post: <mailto:dmidecode-devel@nongnu.org>
List-Help: <mailto:dmidecode-devel-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/dmidecode-devel>,
	<mailto:dmidecode-devel-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Jul 2012 07:06:20 -0000

Hi Ryan,

On Fri, 06 Jul 2012 22:34:08 -0400, Ryan Sawhill wrote:
> I've found conflicting information about this online and thought I'd 
> post a quick question here before I begin deciphering the source.
> 
> Obviously if I had a system with at least 1 unfilled cpu socket I would 
> know the answer, but alas, I don't at the moment.
> 
> So again, the question is: would the following give me an accurate 
> representation of the number of sockets, whether their filled with a cpu 
> or not?
> 
> # dmidecode -t4 | grep "Socket Designation:" | wc -l

I am running exactly this at the moment: a dual-CPU board with only one
CPU socket filled. And the above command returns "2", as you expected.
So, it works.

If you want the detail of filled vs. empty sockets, you can use:

# dmidecode -t4 | grep "Status: "
	Status: Populated, Enabled
	Status: Unpopulated
# 

That being, said, please keep in mind that on a given system, dmidecode
is only as accurate as its BIOS. If the BIOS fills the DMI table
incorrectly, then the information reported by dmidecode will be
incorrect too.

-- 
Jean Delvare


From MAILER-DAEMON Sun Jul 08 01:51:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SnkOa-000381-49
	for mharc-dmidecode-devel@gnu.org; Sun, 08 Jul 2012 01:51:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52897)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsawhill@redhat.com>) id 1SnkOX-00037t-IO
	for dmidecode-devel@nongnu.org; Sun, 08 Jul 2012 01:50:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rsawhill@redhat.com>) id 1SnkOV-0000op-Up
	for dmidecode-devel@nongnu.org; Sun, 08 Jul 2012 01:50:57 -0400
Received: from mx1.redhat.com ([209.132.183.28]:48976)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsawhill@redhat.com>) id 1SnkOV-0000oh-Mt
	for dmidecode-devel@nongnu.org; Sun, 08 Jul 2012 01:50:55 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q685opr6016877
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <dmidecode-devel@nongnu.org>; Sun, 8 Jul 2012 01:50:52 -0400
Received: from [10.11.8.44] (vpn-8-44.rdu.redhat.com [10.11.8.44])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q685onts026559
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO)
	for <dmidecode-devel@nongnu.org>; Sun, 8 Jul 2012 01:50:51 -0400
Message-ID: <4FF91FB9.5010101@redhat.com>
Date: Sun, 08 Jul 2012 01:50:49 -0400
From: Ryan Sawhill <rsawhill@redhat.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
To: dmidecode-devel@nongnu.org
References: <4FF7A020.3080802@redhat.com>
	<20120707090602.18d39081@endymion.delvare>
In-Reply-To: <20120707090602.18d39081@endymion.delvare>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Subject: Re: [dmidecode] does dmidecode accurately report empty cpu sockets?
X-BeenThere: dmidecode-devel@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: dmidecode-devel@nongnu.org
List-Id: <dmidecode-devel.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/dmidecode-devel>, 
	<mailto:dmidecode-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/dmidecode-devel>
List-Post: <mailto:dmidecode-devel@nongnu.org>
List-Help: <mailto:dmidecode-devel-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/dmidecode-devel>,
	<mailto:dmidecode-devel-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Jul 2012 05:50:58 -0000

Thanks so much for taking the time to give me that confirmation Jean.
I can also appreciate the warning about bunky DMI tables ... I've 
definitely seen that. :)


