I just ran mysqltuner on my server, using mariadb 10.1, and it gave me the following, which I don't totally understand as to what I should adjust / add.
My my.cnf looks like:
Code:
>> MySQLTuner 1.6.18 - Major Hayden <[email protected]>
>> Bug reports, feature requests, and downloads at MySQLTuner-perl by major
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 10.1.17-MariaDB
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
[--] Data in MyISAM tables: 536M (Tables: 840)
[--] Data in InnoDB tables: 3G (Tables: 418)
[--] Data in MEMORY tables: 1M (Tables: 11)
[OK] Total fragmented tables: 0
-------- Security Recommendations ------------------------------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[!!] There is no basic password file list!
-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined
-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 4h 53m 14s (1M q [108.469 qps], 95K conn, TX: 11G, RX: 946M)
[--] Reads / Writes: 74% / 26%
[--] Binary logging is disabled
[--] Physical Memory : 11.7G
[--] Max MySQL memory : 1.1G
[--] Other process memory: 526.4M
[--] Total buffers: 434.0M global + 2.9M per thread (250 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 521.2M (4.34% of installed RAM)
[OK] Maximum possible memory usage: 1.1G (9.66% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (1/1M)
[OK] Highest usage of available connections: 12% (30/250)
[OK] Aborted connections: 0.00% (0/95886)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[OK] Query cache efficiency: 37.4% (579K cached / 1M selects)
[!!] Query cache prunes per day: 314770
[OK] Sorts requiring temporary tables: 0% (1 temp sorts / 37K sorts)
[OK] No joins without indexes
[OK] Temporary tables created on disk: 22% (4K on disk / 20K total)
[OK] Thread cache hit rate: 83% (15K created / 95K connections)
[!!] Table cache hit rate: 3% (256 open / 6K opened)
[OK] Open file limit used: 1% (159/10K)
[OK] Table locks acquired immediately: 99% (983K immediate / 983K locks)
-------- Performance schema ------------------------------------------------------------------------
[--] Performance schema is disabled.
-------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is enabled.
[--] Thread Pool Size: 6 thread(s).
[--] Using default value is good enough for your version (10.1.17-MariaDB)
-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 19.9% (26M used / 134M cache)
[OK] Key buffer size / total MyISAM indexes: 128.0M/71.9M
[OK] Read Key buffer hit rate: 98.6% (1M cached / 19K reads)
[!!] Write Key buffer hit rate: 48.0% (176K cached / 91K writes)
-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/1B
[OK] Aria pagecache hit rate: 99.2% (546K cached / 4K reads)
-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 128.0M/3.6G
[!!] InnoDB buffer pool <= 1G and innodb_buffer_pool_instances(!=1).
[--] InnoDB Buffer Pool Chunk Size not used or defined in your version
[OK] InnoDB Read buffer efficiency: 99.06% (103447548 hits/ 104430221 total)
[!!] InnoDB Write Log efficiency: 84.23% (1081725 hits/ 1284181 total)
[OK] InnoDB log waits: 0.00% (0 waits / 202456 writes)
-------- TokuDB Metrics ----------------------------------------------------------------------------
[--] TokuDB is disabled.
-------- Galera Metrics ----------------------------------------------------------------------------
[--] Galera is disabled.
-------- Replication Metrics -----------------------------------------------------------------------
[--] Galera Synchronous replication: NO
[--] No replication slave(s) for this server.
[--] This is a standalone server.
-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
MySQL started within last 24 hours - recommendations may be inaccurate
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Increase table_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
Beware that open_files_limit (10000) variable
should be greater than table_open_cache ( 256)
Variables to adjust:
query_cache_size (> 10M)
table_open_cache (> 256)
innodb_buffer_pool_size (>= 3G) if possible.
innodb_buffer_pool_instances (=1)
[[email protected] ~]#
----------------------------------------------------------------------------------------------------
Code:
GNU nano 2.3.1 File: /etc/my.cnf
[mysqld]
bind-address=127.0.0.1
performance-schema=0
skip-networking
slow-query-log
local-infile = 0
max_connections=250
table_open_cache=256
max_delayed_threads=20
max_tmp_tables=32
query_cache_type=1
query_cache_size=10M
thread_cache_size=4
innodb_file_per_table=1
innodb_use_native_aio=0
default-storage-engine=MyISAM
max_allowed_packet=419430400
open_files_limit=10000
innodb_buffer_pool_size=134217728
Last edited by a moderator: