From 5fea529f461f6a5f9157751b32dbdaf260863924 Mon Sep 17 00:00:00 2001 From: bms8197 Date: Fri, 18 Feb 2022 00:16:39 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to dnf run --- clamd.conf | 2 +- my.cnf.d/server.cnf | 4 ++++ sysctl.conf | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clamd.conf b/clamd.conf index ebdb4bd..017402c 100644 --- a/clamd.conf +++ b/clamd.conf @@ -123,7 +123,7 @@ StreamMaxLength 10M # Maximum number of threads running at the same time. # Default: 10 -MaxThreads 5 +MaxThreads 2 # Waiting for data from a client socket will timeout after this time (seconds). # Default: 120 diff --git a/my.cnf.d/server.cnf b/my.cnf.d/server.cnf index aaffe5d..d24d3cf 100644 --- a/my.cnf.d/server.cnf +++ b/my.cnf.d/server.cnf @@ -8,6 +8,10 @@ # this is read by the standalone daemon and embedded servers [server] +max_connections = 25 + +table_definition_cache = 512 + # this is only for the mysqld standalone daemon [mysqld] diff --git a/sysctl.conf b/sysctl.conf index c7dc34e..3a53001 100644 --- a/sysctl.conf +++ b/sysctl.conf @@ -106,7 +106,7 @@ net.ipv4.ip_local_port_range = 1024 65023 fs.file-max = 2097152 # do less swapping -vm.swappiness = 10 +vm.swappiness = 25 vm.dirty_background_ratio = 1 vm.dirty_ratio = 1 vm.dirty_background_bytes = 5