30.06.2013 Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• cpu_count – number of logical processors on the computer.<br />

289<br />

Chapter 7: OS and Hardware Interaction<br />

• hyperthread_ratio – ratio of logical to physical processors (cores). For example,<br />

on a dual-core processor <strong>with</strong> hyper-threading turned off, this value would be 2. If<br />

hyper-threading were enabled, the value would be 4. Note that this ratio value does not<br />

discern between hyper-threading and multi-core (e.g. a quad-core processor <strong>with</strong> no<br />

hyper-threading would also return a value of 4).<br />

• physical_memory_in_bytes – total amount of physical RAM installed on the<br />

computer or, at least, the amount of RAM that the OS believes it has available (a<br />

distinction that is particularly relevant when dealing <strong>with</strong> virtual environments).<br />

• virtual_memory_in_bytes – amount of virtual RAM available to the process in<br />

user mode. This can differ depending on the OS. On a 32-bit OS, variations can be<br />

based on the 3-GB switch or, in Vista and later, the IncreaseUserVa switch (set using<br />

the bcdedit utility).<br />

• max_workers_count – maximum number of workers that can be created. Workers<br />

do the work for <strong>SQL</strong> <strong>Server</strong> and are generally equivalent to threads, unless running in<br />

"lightweight pooling" server configuration, in which case it corresponds to a fiber<br />

(for a deeper understanding, go to http://msdn.microsoft.com/en-us/library/<br />

ms189267.aspx).<br />

• scheduler_total_count – total number of schedulers configured, including the<br />

system schedulers, such as the one that handles Dedicated Administrator Connection<br />

(DAC) connections (corresponds to the result of: select count(*) from sys.<br />

dm_os_schedulers).<br />

• scheduler_count – current number of schedulers that are visible to user processes<br />

(corresponds to the result of select count(*) from sys.dm_os_schedulers<br />

where status = 'VISIBLE ONLINE').<br />

• os_priority_class – Windows scheduling priority for the <strong>SQL</strong> <strong>Server</strong> process.<br />

Essentially, a high value will allow <strong>SQL</strong> <strong>Server</strong> to use a higher than normal allocation<br />

of OS resources. Domain: 64 (low), 16384 (below normal), 32 (normal), 32768 (above<br />

normal), 256 (real-time), 128 (high). The default is "normal," unless the priority boost

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!