70-450 · Question #35
You are a professional level SQL Sever 2008 Database Administrator. It is on a four-processor, quad-core server. CPU pressure is regularly experienced by the server. An extremely large…
The correct answer is B. You should utilize max degree of parallelism. 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. You can use the max degree of parallelism option to…
Question
You are a professional level SQL Sever 2008 Database Administrator. It is on a four-processor, quad-core server. CPU pressure is regularly experienced by the server. An extremely large mission-critical database is consisted by the instance, and it is utilized constantly. The online index rebuilds should not occupy all available CPU cycles. From the following four configurations, which one should you utilize?
Options
- AYou should utilize affinity mask.
- BYou should utilize max degree of parallelism.
- CYou should utilize affinity I/O mask.
- DYou should utilize optimize for ad hoc workloads.
How the community answered
(68 responses)- A18% (12)
- B71% (48)
- C3% (2)
- D9% (6)
Explanation
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. You can use the max degree of parallelism option to limit the number of processors to use in parallel plan execution. The default value of 0 uses all available processors. Set max degree of parallelism to 1 to suppress parallel plan generation. Set the value to a number greater than 1 (up to a maximum of 64) to restrict the maximum number of processors used by a single query execution. lf a value greater than the number of available processors is specified, the actual number of available processors is used. If the computer has only one processor, the max degree of parallelism value is ignored, Overriding max degree of parallelism SQL Server will consider parallel execution plans tor queries, index data definition language (DDL) operations, and static and keyset-driven cursor population. For more information about parallel execution, see Degree of Parallelism. You can override the max degree of parallelism value in queries by specifying the MAXDOP query hint in the query statement. For more information, see Query Hints (Transact-SQL). Index operations that create or rebuild an index, or that drop a clustered index, can be resource intensive. You can override the max degree of parallelism value for index operations by specifying the MAXDOP index option in the index statement. The MAXDOP value is applied to the statement at execution time and is not stored in the index metadata. For more information, see Configuring Parallel Index Operations. In addition to queries and index operations, this option also controls the parallelism of DBCC CHECKTABLE, DBCC CHECKDB, and DBCC CHECKFILEG ROU P. You can disable parallel execution plans for these statements by using trace flag 2528. For more information, see Trace Flags (Transact-SQL). ll the affinity mask option is not set to the default, lt may restrict the number of processors available to SQL Server on symmetric multiprocessing (SMP) system@
Topics
Community Discussion
No community discussion yet for this question.