Mysql optimization

The following is my.cnf config for MySQL 5.5.16.
I have 16 gb ram on a Linux CentOS server.
Can someone suggest tweaks to my file please?
I see I have a mix of InnoDB and MyISAM tables.  I have some pretty big tables mixed in with some smaller.  Biggest is over a million records.
I'm sure I need improvements.

tmpdir = /run/mysqld

key_buffer = 819M
max_allowed_packet = 16M
table_cache = 512
sort_buffer_size = 16M
read_buffer_size = 8M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
#innodb_buffer_pool_size = 384M
#innodb_flush_log_at_trx_commit = 1

thread_concurrency = 8



log_slow_queries       = /var/log/mysql/mysql-slow.log
long_query_time = 2

server-id	= 1

max_allowed_packet = 16M


key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M


Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Difficult to say without knowing your application but ...
try to set innodb_buffer_pool_size=3072M if you can afford or 2048M if you cant. Also set innodb_thread_concurrency=16 (verify this with your processor cores possibility)
which is the main thing you can do.
Also key_buffer could be larger maybe try 1024M


also check if you could need :
bulk_insert_buffer_size=???? (64M)
myisam_sort_buffer_size=???? (128M)

Try to see if you get better performances by applying things 1 by 1.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
I guess my first question would be "why do you think you need to make changes?"  Usually there would be a symptom that would trigger a concern.  Are there web script files that are running too slowly or other indicators that might be helpful?
Gabriel7Author Commented:
Well, I have had too many users for one...then I've had some large queries create issues so I wanted to verify the config first.  As a first step.
Ray PaseurCommented:
some large queries create issues
There's an article from one of our colleagues here at E-E that may be helpful.  I think I would look at the queries as the first step, since the standard installation works pretty well for most people.
Gabriel7Author Commented:
This helped, though it wasn't the resolution.  It did lead to the answer though.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.