Reputation: 21
MySQL database is showing disk i/o utilization around 100% continuously. A database server is having 24 GB ram.
We tried to optimize queries but nothing worked much.
Please check the current configuration parameters shown below:
sort_buffer_size 8.38
read_buffer_size 8.38 MB
Please suggest if you find anything wrong in the current configuration.
Upvotes: 2
Views: 3113
Reputation: 142208
Swapping like mad!!
Do not blindly increase tunables. Go back to the defaults except for one:
innodb_buffer_pool_size
Set that to about 70% of available RAM.
Upvotes: 1
Reputation: 2343
Rate Per Second=RPS - Suggestions to consider for your my.cnf (or my.ini) [mysqld] section
query_cache_size=50M # from 268M to reduce CPU cycles used in management of QC
tmp_table_size=256M # from 40G for ~ 1% of RAM a reasonable limit
max_heap_table_size=256M # to match size of tmp_table_size, using 1% of RAM
sort_buffer_size=1M # from 8M allocated per connection - next 2 are per connect also
read_buffer_size=256K # from 8M to reduce volume of data retrieved by 95%
read_rnd_buffer_size=256K # from 8M to reduce volume of data retrieved by 95%
Apply all on 1 stop/start of your instance. Please post comments on positive/negative results after 24 hours of normal workday uptime.
Upvotes: 1