Skip to content

Commit 3e9fff9

Browse files
authored
Merge pull request #4074 from pmasl/patch-44
Update configure-the-min-memory-per-query-server-configuration-option.md
2 parents 47bfca0 + 5abf865 commit 3e9fff9

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

docs/database-engine/configure-windows/configure-the-min-memory-per-query-server-configuration-option.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Configure the min memory per query Server Configuration Option | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "03/02/2017"
4+
ms.date: "11/24/2017"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "database-engine"
77
ms.service: ""
@@ -27,7 +27,7 @@ ms.workload: "Inactive"
2727
# Configure the min memory per query Server Configuration Option
2828
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
2929

30-
This topic describes how to configure the **min memory per query** server configuration option in [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. The **min memory per query** option specifies the minimum amount of memory (in kilobytes) that will be allocated for the execution of a query. For example, if **min memory per query** is set to 2,048 KB, the query is guaranteed to get at least that much total memory. The default value is 1,024 KB. The minimum value 512 KB, and the maximum is 2,147,483,647 KB (2 GB).
30+
This topic describes how to configure the **min memory per query** server configuration option in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. The **min memory per query** option specifies the minimum amount of memory (in kilobytes) that will be allocated for the execution of a query. For example, if **min memory per query** is set to 2,048 KB, the query is guaranteed to get at least that much total memory. The default value is 1,024 KB. The minimum value 512 KB, and the maximum is 2,147,483,647 KB (2 GB).
3131

3232
**In This Topic**
3333

@@ -51,13 +51,15 @@ ms.workload: "Inactive"
5151

5252
### <a name="Restrictions"></a> Limitations and Restrictions
5353

54-
- The amount of min memory per query has precedence over the [index create memory Option](../../database-engine/configure-windows/configure-the-index-create-memory-server-configuration-option.md). If you modify both options and the index create memory is less than min memory per query, you receive a warning message, but the value is set. During query execution you receive another similar warning.
54+
- The amount of min memory per query has precedence over the [index create memory](../../database-engine/configure-windows/configure-the-index-create-memory-server-configuration-option.md) option. If you modify both options and the index create memory is less than min memory per query, you receive a warning message, but the value is set. During query execution you receive another similar warning.
5555

5656
### <a name="Recommendations"></a> Recommendations
5757

5858
- This option is an advanced option and should be changed only by an experienced database administrator or certified [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] technician.
5959

60-
- The [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] query processor tries to determine the optimal amount of memory to allocate to a query. The min memory per query option lets the administrator specify the minimum amount of memory any single query receives. Queries generally receive more memory than this if they have hash and sort operations on a large volume of data. Increasing the value of min memory per query may improve performance for some small to medium-sized queries, but doing so could lead to increased competition for memory resources. The min memory per query option includes memory allocated for sorting.
60+
- The [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] query processor tries to determine the optimal amount of memory to allocate to a query. The min memory per query option lets the administrator specify the minimum amount of memory any single query receives. Queries generally receive more memory than this if they have hash and sort operations on a large volume of data. Increasing the value of min memory per query may improve performance for some small to medium-sized queries, but doing so could lead to increased competition for memory resources. The min memory per query option includes memory allocated for sort operations.
61+
62+
- Do not set the min memory per query server configuration option too high, especially on very busy systems, because the query has to wait until it can secure the minimum memory requested or until the value specified in the query wait server configuration option is exceeded. If more memory is available than the specified minimum value required to execute the query, the query is allowed to make use of the additional memory, provided that the memory can be used effectively by the query.
6163

6264
### <a name="Security"></a> Security
6365

@@ -94,8 +96,7 @@ GO
9496
EXEC sp_configure 'min memory per query', 3500 ;
9597
GO
9698
RECONFIGURE;
97-
GO
98-
99+
GO
99100
```
100101

101102
## <a name="FollowUp"></a> Follow Up: After you configure the min memory per query option

0 commit comments

Comments
 (0)