Multiple Processor Group and >64 Processor Test
Note This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.
Type: Automated Test
This requirement applies to all Device Categories that can be Server Logo qualified. This test requires configuration of the system into multiple processor groups and a reboot, prior to running Windows Server 2008 R2 Device Logo qualification tests. DTM automatically checks that the system is correctly configured with multiple processor groups when tests are scheduled.
The processor group concept was introduced in Windows 7 and Windows Server 2008 R2 to support more than 64 logical processors. Any machine with more than 64 logical processors has more than one processor group by necessity. Drivers are expected to run properly in the multi-group context in anticipation of servers increasingly having more than 64 logical processors. This test limits the maximum group size to a small value, thereby forcing multiple groups on a machine that would normally have only one group. This test requires at least 2 logical processors to run, but because Windows Server 2008 R2 testing in general requires 4 logical processors, that is the minimum that the systems being used for testing must contain. The test requires ia64 or amd64 architectures; x86 does not apply. The test requires Windows Server 2008 R2.
The Multiple Processor Group test will not execute when Hyper-V is enabled, because Hyper-V limits the number of processor groups to 1. Please uninstall Hyper-V before you run this test.
The test determines whether BCD settings were manually set correctly before testing began. It does not directly perform any specific validation of the device or driver being tested. Rather, it ensures the BCD settings are correct for Windows Server 2008 R2 Device Logo qualification testing. Device category-specific and Driver Fundamentals tests execute in this multiple processor group configuration and environment.
The bcdedit command prompt utility is enhanced for Windows 7 and Windows Server 2008 R2 to include the groupsize setting. This setting specifies the maximum number of logical processors per processor group in the system. The default maximum number of logical processors per processor group is 64.
Testers must set the value for the processor group size for Windows Logo Kit testing of Windows Server 2008 R2 Device Drivers for Logo qualification. This is done by running bcdedit in an elevated Command Prompt window, using the /set option. For example:
The command lines for adding the group settings and rebooting:
bcdedit.exe /set groupsize 2
bcdedit.exe /set groupaware on
shutdown.exe -r -t 0 -f
The command lines for removing the group settings and rebooting:
bcdedit.exe /deletevalue groupsize
bcdedit.exe /deletevalue groupaware
shutdown.exe -r -t 0 -f
Vendors are encouraged to configure a system similar to what is required by the WLK/DTM to do their own testing in a multiple processor group configuration as detailed above. Vendors should test their drivers on systems that are configured to have multiple processor groups whether or not they call the group-aware Ex versions of device driver interfaces newly added for Server 2008 R2.
The processor group size must be a power of 2 between 1 and 64, inclusive.
By default, a system that has 64 or fewer active logical processors has one processor group. One must set the processor group size to forcibly configure such a system to have multiple processor groups. (Note that the group size setting is for testing and one should not configure shipping systems with this setting.) This setting allows one to test group-aware code on a system that has fewer than 64 logical processors. It also allows one to test legacy non-group-aware code.
We do not recommended that the processor group size be set to one, because this can limit concurrency of non-group-aware code. A processor group size of two avoids this problem while still allowing multiple processor groups on a system that has as few as four logical processors.
Windows 7 and Windows Server 2008 R2 support a maximum of four processor groups. If a system is configured with a processor group size that is less than one-fourth of the total number of logical processors in the system, some of the logical processors are not used.
Setting the processor group size can have ramifications. If the processor group size is set to a value that is less than the number of logical processors in a non- uniform memory access (NUMA) node or if the system is non-NUMA, this setting redefines the NUMA node size to be the same as the processor group size. In other words, NUMA nodes are split into multiple NUMA nodes that fit within the new group size and a non-NUMA system becomes a NUMA system.
To reset the maximum size of processor groups to the default value of 64, run bcdedit in an elevated Command Prompt window by using the /deletevalue option. For example:
bcdedit.exe /deletevalue groupsize
This removes the groupsize setting. By default, the groupsize setting is not set.
Consider a non-NUMA system that has one processor package (socket) that contains four processor cores and has hyperthreading enabled, for a total of eight logical processors. If one runs the following command to set the processor group size to two and then restarts the system, the system will be configured to have four processor groups where each group has two logical processors, one core, and one NUMA node. GetLogicalProcessorInformationEx reports 8 logical processors, four processor packages, 4 nodes, and 4 groups. Each group contains one node, one package, and 2 logical processors.
bcdedit.exe /set groupsize 2
If one runs the following command to set the processor group size to one and then restarts the system, the system will be configured to have four processor groups where each group has one logical processor, one core, one package, and one NUMA node. GetLogicalProcessorInformationEx reports 4 logical processors, four processor packages, 4 nodes, and 4 groups. Each group contains one node , one package, and one logical processor.
bcdedit.exe /set groupsize 1
In this situation, four of the logical processors in the system are started while the other four are not. (Four processor groups maximum) * (groupsize of one) = a maximum of four active logical processors in the system.
Note that in the above examples, Windows splits NUMA nodes and packages so as not to span group boundaries. Nodes can never span group boundaries. A non-NUMA machine becomes a NUMA machine to Windows when its single node is split into two or more nodes. Packages can span group boundaries one situation. If a system defines multiple NUMA nodes within a package, Windows may assign the nodes to different groups, in which case the package then spans group boundaries. This is an important corner case for software taking advantage of future multi-chip module (MCM) processor packages that contain multiple die, where each die has its own memory controller. Testing software in this scenario requires the system's Static Resource Affinity Table (SRAT) to define NUMA nodes to be subsets of processor packages.
Vendors whose drivers are expected to run on any system running Server 2008 R2 or later should validate their drivers in a multiple group environment with the groupaware BCD setting enabled. Backward compatibility is not seamless for all non-group-aware device driver interfaces (DDIs) running on Server 2008 R2 in the context of multiple processor groups. Both the multiple group configuration and the groupaware BCD setting help expose driver bugs that are probable and only manifest themselves on larger server class systems, which are expected to increase over time.
The groupaware setting causes several now legacy (non-group-aware) DDIs to behave incorrectly all the time when running in a multiple group configuration. This helps expose driver bugs that may otherwise be difficult to find. Non-group-aware DDIs like KeGetCurrentProcessorNumber and KeSetTargetProcessorDpc are not designed to run in a multiple group configuration because they do not accommodate the processor group number now required to fully qualify a processor number. This is also true for other now-legacy DDIs. They behave correctly on all single group machines, and perhaps sometimes on multi-group machines. Some legacy processor-related DDIs operate on group 0. The two APIs mentioned above use the group associated with the affinity of the calling thread. The driver does not control the affinity of all threads calling into it. Determining whether a thread is running on processor 1 and affinitizing a DPC to processor 0x4 are ambiguous operations without the proper group qualification, because the particular processors involved could be in any group.
Some bugs exposed via the groupaware BCD setting might otherwise only be exposed on a platform that chooses to associate a device with a particular NUMA node. A platform designer can choose to associate a device with a node by adding the optional _PXM (proximity domain) object to the ACPI namespace of the device or its parent. Several driver entry points, StartDevice for example, run on processors of the NUMA node where the device resides. Other driver entry points are not constrained and may run in a different group. This has the potential to wreak havoc with legacy non-group-aware driver code, because the driver does not realize DPCs are affinitized to processors in one group, while other code may run in any group.
The solution is to port the driver to be group-aware by replacing calls to legacy interfaces, such as KeGetCurrentProcessorNumber and KeSetTargetProcessorDpc, to their new group-aware counterparts (KeGetCurrentProcessorNumberEx to KeSetTargetProcessorDpcEx, respectively).
Drivers calling the new group-aware DDIs can opt into being able to run downlevel by including procgrp.h and linking against procgrp.lib included with the Server 2008 R2 or later DDK. A runtime check determines the actual DDIs called. Because downlevel operating systems by definition have exactly one group, the new group-aware DDI calls are routed to an alternate implementation that leverages the legacy non-group-aware DDIs.
The multi-group configuration this test imposes may cause a driver to function improperly, or the machine may fail to boot.
Follow these steps until your problem is resolved:
Disable the groupaware BCD setting as follows:
Bcdedit.exe /set groupaware off
Disable the groupsize BCD setting as follows:
Bcdedit.exe /deletevalue groupsize
If either of these corrects the problem, it is likely that a driver needs to call new processor group-aware APIs added for Windows 7 to function properly in a multi-group configuration. For more information, view the "Supporting Systems That Have More Than 64 Processors" whitepaper at https://www.microsoft.com/whdc/system/Sysinternals/MoreThan64proc.mspx.
Run Time: Depends on device category test time
Log File: None
System Restart Required: Yes
Test Category: Server-qualified Devices and Drivers
Supported operating systems for Logo or Signature testing:
Windows Server 2008 R2
Program: There is no test binary that exercises driver code or device. The test only checks that the manually configured BCD settings are correct. Booting into a multiple processor group configuration and the execution of Windows Server 2008 R2 Device Category-specific and Driver Fundamentals tests validates that a Server Logo-qualified driver will operate correctly in a multiple processor group environment.
The test tool requires the following software:
Supported operating system (see list above)
Software components included with the device that is being tested
The test tool requires the following hardware:
Device to be tested
Computer that meets the minimum software requirements
Two-button pointing device
Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
Hard drive with a minimum of 20 GB available on partition C:
The test tool runs on the following processor architectures:
Running Multiple Processor Group and >64 Processor Test
All test cases return PASS or FAIL. Review the test results in the log file for specific details about failures.
Must be run with Administrator privileges. Without any options, the command displays Windows Boot Manager and Windows Boot Loader options.
Sets the value that immediately follows.
Deletes the value that immediately follows.
Any number that is a power of 2, between 1 and 64, inclusive.
Changes the behavior of several now-legacy APIs to make multiple processor group testing more effective in finding code errors.
Build date: 9/14/2012