From e3fefa301cad00daca307f5e87cc507efb58076d Mon Sep 17 00:00:00 2001 From: whirigoyen Date: Fri, 15 Dec 2023 09:58:08 +0100 Subject: [PATCH] =?UTF-8?q?Calcul=20m=C3=A9moire=20en=20multilignes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index f1767b5f..6dba5421 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -297,7 +297,9 @@ Il faut ensuite penser à ajuster aussi la valeur de `innodb_buffer_pool_size` d Voici la commande pour calculer la mémoire théorique qui sera utilisée (théorique car ça ne prend pas en compte les fuites mémoire) : ~~~ -MariaDB [(none)]> SELECT ( @@key_buffer_size + @@query_cache_size + @@tmp_table_size + @@innodb_buffer_pool_size + @@innodb_log_buffer_size + @@max_connections * ( @@read_buffer_size + @@read_rnd_buffer_size + @@sort_buffer_size + @@join_buffer_size + @@binlog_cache_size + @@thread_stack ) ) / (1024 * 1024 * 1024) AS MAX_MEMORY_GB; +MariaDB [(none)]> SELECT ( @@key_buffer_size + @@query_cache_size + @@tmp_table_size + @@innodb_buffer_pool_size ++ @@innodb_log_buffer_size + @@max_connections * ( @@read_buffer_size + @@read_rnd_buffer_size + @@sort_buffer_size ++ @@join_buffer_size + @@binlog_cache_size + @@thread_stack ) ) / (1024 * 1024 * 1024) AS MAX_MEMORY_GB; ~~~ Pour aller plus loin :