From 805abb425d1c4dcf039ccb12f66d674539e0e083 Mon Sep 17 00:00:00 2001 From: Feng Liyuan Date: Sun, 31 May 2020 15:41:10 +0800 Subject: [PATCH 1/3] tidb-configuration-file: change the meaning of max-memory back --- tidb-configuration-file.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 16d18bd14e6d..9ff77e23a827 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -274,9 +274,9 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/ ### `max-memory` -+ TiDB 最大使用内存,单位为字节 ++ Prepare cache LRU 使用的最大内存限制,超过 performance.max-memory * (1 - prepared-plan-cache.memory-guard-ratio) 会剔除 LRU 中的元素。 + 默认值:0 -+ 默认值 0 表示不受限制 ++ 这个配置只有在 prepared-plan-cache.enabled 为 true 的情况才会生效。在 LRU 的 size 大于 prepared-plan-cache.capacity 的情况下,也会剔除 LRU 中的元素。 ### `txn-total-size-limit` From 6f1d894f1d0efad8790fd98817036a913e5d0c0f Mon Sep 17 00:00:00 2001 From: Feng Liyuan Date: Mon, 1 Jun 2020 14:28:01 +0800 Subject: [PATCH 2/3] Update tidb-configuration-file.md Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com> --- tidb-configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 9ff77e23a827..f117d9da03fe 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -276,7 +276,7 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/ + Prepare cache LRU 使用的最大内存限制,超过 performance.max-memory * (1 - prepared-plan-cache.memory-guard-ratio) 会剔除 LRU 中的元素。 + 默认值:0 -+ 这个配置只有在 prepared-plan-cache.enabled 为 true 的情况才会生效。在 LRU 的 size 大于 prepared-plan-cache.capacity 的情况下,也会剔除 LRU 中的元素。 ++ 这个配置只有在 `prepared-plan-cache.enabled` 为 `true` 的情况才会生效。当 LRU 的 size 大于 `prepared-plan-cache.capacity` 时,也会剔除 LRU 中的元素。 ### `txn-total-size-limit` From be2c5a27957ccbd29c62acc2ef2a81b20f1cc19c Mon Sep 17 00:00:00 2001 From: Feng Liyuan Date: Tue, 2 Jun 2020 17:34:47 +0800 Subject: [PATCH 3/3] Update tidb-configuration-file.md Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com> --- tidb-configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index f117d9da03fe..da51be25c597 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -274,7 +274,7 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/ ### `max-memory` -+ Prepare cache LRU 使用的最大内存限制,超过 performance.max-memory * (1 - prepared-plan-cache.memory-guard-ratio) 会剔除 LRU 中的元素。 ++ Prepare cache LRU 使用的最大内存限制。当 Prepare cache LRU 的内存使用超过 `performance.max-memory * (1 - prepared-plan-cache.memory-guard-ratio)` 时,会剔除 LRU 中的元素。 + 默认值:0 + 这个配置只有在 `prepared-plan-cache.enabled` 为 `true` 的情况才会生效。当 LRU 的 size 大于 `prepared-plan-cache.capacity` 时,也会剔除 LRU 中的元素。