Avatar
🏃
1 results for Mariadb
  • J’utilise Mariadb sous Debian pour Humhub.

    Modification dans /etc/sysctl.conf

    vm.swappiness=1

    Et changement en direct :

    /usr/sbin/sysctl -w vm.swappiness=1

    Modification dans /etc/mysql/mariadb.conf.d/50-server.cnf avec :

    innodb_buffer_pool_size = 4G

    Avant le restart :

    mysql
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 52245
    Server version: 10.5.26-MariaDB-0+deb11u2 Debian 11
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]> select @@innodb_buffer_pool_size;
    +---------------------------+
    | @@innodb_buffer_pool_size |
    +---------------------------+
    |                 134217728 |
    +---------------------------+
    1 row in set (0,001 sec)
    
    MariaDB [(none)]> select @@innodb_buffer_pool_size/1024/1024/1024;
    +------------------------------------------+
    | @@innodb_buffer_pool_size/1024/1024/1024 |
    +------------------------------------------+
    |                           0.125000000000 |
    +------------------------------------------+
    1 row in set (0,001 sec)
    
    MariaDB [(none)]> show variables like 'innodb_buffer_pool%';
    +-------------------------------------+----------------+
    | Variable_name                       | Value          |
    +-------------------------------------+----------------+
    | innodb_buffer_pool_chunk_size       | 134217728      |
    | innodb_buffer_pool_dump_at_shutdown | ON             |
    | innodb_buffer_pool_dump_now         | OFF            |
    | innodb_buffer_pool_dump_pct         | 25             |
    | innodb_buffer_pool_filename         | ib_buffer_pool |
    | innodb_buffer_pool_instances        | 1              |
    | innodb_buffer_pool_load_abort       | OFF            |
    | innodb_buffer_pool_load_at_startup  | ON             |
    | innodb_buffer_pool_load_now         | OFF            |
    | innodb_buffer_pool_size             | 134217728      |
    +-------------------------------------+----------------+
    10 rows in set (0,003 sec)

    Après :

    mariadb Created Sun, 19 Jan 2025 00:00:00 +0000