Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

what is CPU ? Physical or logical ? Expand / Collapse
Posted Sunday, August 26, 2012 2:16 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Sunday, November 22, 2015 12:08 AM
Points: 564, Visits: 377
When SQL Server runs on a computer with more than one microprocessor or CPU, it detects the best degree of parallelism, that is, the number of processors employed to run a single statement, for each parallel plan execution.

We have a box with 2 CPUs 4 Cores showing 8 logical processors, so , i am not sure how many CPUs for this box, 2 or 8 ?

Post #1350095
Posted Sunday, August 26, 2012 4:38 AM



Group: General Forum Members
Last Login: Today @ 2:07 AM
Points: 43,436, Visits: 40,560
8. It's the number visible in task manager in Windows (unless you've configured SQL to use fewer processors)

Gail Shaw
Microsoft Certified Master: SQL Server, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1350101
Posted Thursday, August 30, 2012 2:51 PM



Group: General Forum Members
Last Login: Friday, November 20, 2015 5:28 PM
Points: 7,288, Visits: 13,148
2 physical, 8 logical. We can tell the # of each from SQL...

-- cpu overview
SELECT osi.cpu_count AS LogicalCpuCount,
osi.hyperthread_ratio AS HyperthreadCoreRatio,
osi.cpu_count / osi.hyperthread_ratio AS PhysicalCpuCount,
FROM sys.dm_os_schedulers
WHERE scheduler_id < osi.cpu_count
AND is_online = 1
) AS LogicalCpuOnline
FROM sys.dm_os_sys_info osi;

...however not whether the logical CPUs are from multiple cores or from Hyperthreading. In your case you have 2 physical CPUs with 4 cores each and all SQL Server cares about is the logical CPUs when it comes to parallelizing queries, i.e. 8.

There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1352505
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse