From 0a69b80205129541fed58544f19a6b6912970b74 Mon Sep 17 00:00:00 2001 From: Allen Zhou Date: Fri, 3 Oct 2025 13:28:11 -0400 Subject: [PATCH] set memory partition mode --- content/en/database_monitoring/guide/sql_deadlock.md | 3 +++ content/en/database_monitoring/guide/sql_extended_events.md | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/content/en/database_monitoring/guide/sql_deadlock.md b/content/en/database_monitoring/guide/sql_deadlock.md index 36bec447a23c2..31b953a6e5847 100644 --- a/content/en/database_monitoring/guide/sql_deadlock.md +++ b/content/en/database_monitoring/guide/sql_deadlock.md @@ -46,6 +46,7 @@ Supported Agent versions MAX_MEMORY = 1024 KB, EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS, MAX_DISPATCH_LATENCY = 30 SECONDS, + MEMORY_PARTITION_MODE = PER_NODE, -- improves performance on multi-core systems (not supported on RDS) STARTUP_STATE = ON ); GO @@ -54,6 +55,8 @@ Supported Agent versions GO ``` + **Note**: If you're using Amazon RDS for SQL Server, remove the `MEMORY_PARTITION_MODE = PER_NODE` line from the session configuration, as this option is not supported on RDS instances. + 2. In the Datadog Agent, enable deadlocks in `sqlserver.d/conf.yaml`. ```yaml deadlocks_collection: diff --git a/content/en/database_monitoring/guide/sql_extended_events.md b/content/en/database_monitoring/guide/sql_extended_events.md index 6b09c1da91834..7c1ca8503978a 100644 --- a/content/en/database_monitoring/guide/sql_extended_events.md +++ b/content/en/database_monitoring/guide/sql_extended_events.md @@ -111,6 +111,7 @@ WITH ( TRACK_CAUSALITY = ON, -- allows datadog to correlate related events across activity ID EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS, MAX_DISPATCH_LATENCY = 30 SECONDS, + MEMORY_PARTITION_MODE = PER_NODE, -- improves performance on multi-core systems (not supported on RDS) STARTUP_STATE = ON ); @@ -156,6 +157,7 @@ WITH ( MAX_MEMORY = 1024 KB, -- do not change, setting this larger than 1 MB may result in data loss due to SQLServer internals EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS, MAX_DISPATCH_LATENCY = 30 SECONDS, + MEMORY_PARTITION_MODE = PER_NODE, -- improves performance on multi-core systems (not supported on RDS) STARTUP_STATE = ON ); @@ -163,6 +165,8 @@ ALTER EVENT SESSION datadog_query_errors ON SERVER STATE = START; GO ``` + **Note**: If you're using Amazon RDS for SQL Server, remove the `MEMORY_PARTITION_MODE = PER_NODE` line from both session configurations, as this option is not supported on RDS instances. + 2. In the Datadog Agent configuration, enable `xe_collection` in `sqlserver.d/conf.yaml`. See the [sample conf.yaml.example][3] for all available configuration options. ```yaml @@ -253,6 +257,7 @@ WITH ( TRACK_CAUSALITY = ON, -- allows datadog to correlate related events across activity ID EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS, MAX_DISPATCH_LATENCY = 30 SECONDS, + MEMORY_PARTITION_MODE = PER_NODE, -- improves performance on multi-core systems STARTUP_STATE = ON ); @@ -298,6 +303,7 @@ WITH ( MAX_MEMORY = 1024 KB, -- do not change, setting this larger than 1 MB may result in data loss due to SQLServer internals EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS, MAX_DISPATCH_LATENCY = 30 SECONDS, + MEMORY_PARTITION_MODE = PER_NODE, -- improves performance on multi-core systems STARTUP_STATE = ON );