MySQL Forums
Forum List  »  Performance

Re: MySQL server configuration for a 8 cpu+20gb RAM server
Posted by: Rick James
Date: July 25, 2010 11:26PM

If you have 100 queries running at the same time (or even 10 queries), the they are probably poorly optimized. The solution (usually) involves improving the query, not the tunables, etc. Please identify the slow queries (look at SHOW PROCESSLIST and/or look in the slowlog); then provide
* SHOW CREATE TABLE tbl\G -- engine, indexes
* SHOW TABLE STATUS LIKE 'tbl'\G -- sizes
* EXPLAIN SELECT ...\G -- clues of inefficiencies
* SHOW VARIABLES LIKE '%buffer%'; -- cache size
and surround them with [ code ] and [ / code ]

If you are entirely InnoDB, and using 32GB of RAM, then
innodb_buffer_pool_size=8192M
should probably be changed to more like 20G.

Does this
Size of MySQL Database : 4 GB
mean that the sum total of all data and indexes is only 4GB? Of so, my comment above won't make any difference (since that is < 8192M).

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL server configuration for a 8 cpu+20gb RAM server
2038
July 25, 2010 11:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.