MSSQL 2014: 記憶體最佳化資料記憶體回收填滿因數 (\%)

Microsoft.SQLServer.2014.CollectionRule.DBFileGroupFx.GarbageCollectionFillFactor (Rule)

收集記憶體最佳化資料檔案群組的記憶體回收填滿因數 (記憶體內資料檔案中的使用中資料列所使用的空間量,以資料檔案大小的百分比表示)。

Knowledge Base article:

摘要

此規則會收集記憶體最佳化資料檔案群組的記憶體回收填滿因數 (記憶體內資料檔案內使用中資料列所使用的空間量,以資料檔案大小的百分比表示)。

記憶體回收填滿因數是一種衡量標準,顯示所有含已插入/刪除資料列之使用中資料/差異檔案的平均填滿因數。如果此衡量標準低於 50%,即表示自動合併落後。只要 CFP (檢查點檔案配對) 數目低於 8000,而且您有大量儲存體可用記憶體內最佳化檔案群組,這就不會立即造成問題。

您可以在<sys.dm_db_xtp_checkpoint_files (Transact-SQL)>文件中找到詳細資訊

http://msdn.microsoft.com/library/dn133201%28v=sql.120%29.aspx

<記憶體回收運作方式>一節位於<建立及管理記憶體最佳化物件的儲存體>主題下

http://msdn.microsoft.com/library/dn133174%28v=sql.120%29.aspx

可覆寫的參數

名稱

描述

預設值

已啟用

 

產生警示

 

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

900

指令碼延遲 (毫秒)

此參數可設定工作流程所執行的連續 T-SQL 查詢之間的延遲。這可能有助於減少工作流程在有大量目標物件時,所產生的磁碟使用量。請先取得 Microsoft 支援服務的建議,再變更此參數。

0

同步處理時間

使用 24 小時制指定的同步處理時間。將會忽略。

 

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2014.DBFileGroupFx
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2014.DataSource.DBFileGroupFx.GarbageCollectionPerf Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2014.CollectionRule.DBFileGroupFx.GarbageCollectionFillFactor" Target="SQL2014Core!Microsoft.SQLServer.2014.DBFileGroupFx" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.DataSource.DBFileGroupFx.GarbageCollectionPerf">
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<ServerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ServerName>
<SqlInstanceName>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</SqlInstanceName>
<ObjectName>In-Memory OLTP File Group</ObjectName>
<CounterName>Memory Optimized Data Garbage Collection Fill Factor (%)</CounterName>
<InstanceName/>
<DatabaseName>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$</DatabaseName>
<Value>$Data/Property[@Name='StorageUsageFillFactor']$</Value>
<TimeoutSeconds>300</TimeoutSeconds>
<ScriptDelayMsec>0</ScriptDelayMsec>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>