Skip to content

Instantly share code, notes, and snippets.

@beachandbytes
Created June 4, 2014 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beachandbytes/8757b752c8394a6c85bc to your computer and use it in GitHub Desktop.
Save beachandbytes/8757b752c8394a6c85bc to your computer and use it in GitHub Desktop.
USE MASTER
DECLARE @MemoryDenominator INT
SET @MemoryDenominator = 1048576
select
cpu_count [CPUs]
,hyperthread_ratio [Hyperthread Ratio]
,physical_memory_in_bytes / @MemoryDenominator as [Memory (MB)]
,virtual_memory_in_bytes / @MemoryDenominator as [Virtual Memory (MB)]
,max_workers_count [Max Worker Count]
,os_error_mode [OS Error Mode]
,os_priority_class [OS Priority Class]
from sys.dm_os_sys_info
--Results--
CPUs, Hyperthread Ratio, Memory (MB), Virtual Memory (MB), Max Worker Count, OS Error Mode, OS Priority Class
2 1 4095 8388607 512 5 32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment