_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › SQLServerMemoryConfiguration/DeterminingMemToLeaveSettings

Contents

1 谿瑚
2 谿瑚襭


1 谿瑚 #

WITH VAS_Summary
AS ( 
SELECT 
	Size = VAS_Dump.Size,
	Reserved = SUM(
		CASE (CONVERT(INT, VAS_Dump.Base) ^ 0)
			WHEN 0 THEN 0
			ELSE 1
	END),
	Free = SUM(
		CASE (CONVERT(INT, VAS_Dump.Base) ^ 0)
			WHEN 0 THEN 1
			ELSE 0
		END)
FROM
(
	SELECT 
		CONVERT(VARBINARY, SUM(region_size_in_bytes)) [Size],
		region_allocation_base_address [Base]
	FROM   sys.dm_os_virtual_address_dump
	WHERE  region_allocation_base_address <> 0x0
	GROUP  BY region_allocation_base_address
	UNION
	SELECT 
		CONVERT(VARBINARY, region_size_in_bytes) [Size],
		region_allocation_base_address [Base]
	FROM   sys.dm_os_virtual_address_dump
	WHERE  region_allocation_base_address = 0x0
) AS VAS_Dump
GROUP BY Size
)
SELECT SUM(CONVERT(BIGINT, Size) * Free) / 1024 AS [Total avail mem, KB],
CAST(MAX(Size) AS BIGINT) / 1024 AS [Max free size, KB]
FROM VAS_Summary
WHERE Free <> 0

蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

蟲 覈詩 讌襷 蟲 讌 蟆 . 蠏碁 讌ろ 襴れ 覓伎螻朱 覦蠖 給. 讌 蟆語願 れ 蠍一. 覈詞朱 覿讌 蟆 讌朱 蟇伎ろる 企 蟆 螳誤 給. 螳 一渚 讌 朱 螳 襦 覈旧 覲 螻 襷 給.