From: Rick James Date: May 23 2012 4:28pm Subject: RE: Need help for performance tuning with Mysql List-Archive: http://lists.mysql.com/mysql/227519 Message-Id: <2E7DD7ADE53B044C8C8BCD9C5829E1EB148724ECA5@SP2-EX07VS01.ds.corp.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 100% CPU --> A slow query. Tuning will not help. Period. 1. There are only a few things worth tuning -- see http://mysql.rjweb.org/d= oc.php/memory (they don't include the ones you tried) 2. Instead INDEXes and schema design must be studied. Please provide: SHOW CREATE TABLE SHOW TABLE SIZE EXPLAIN SELECT ... =20 > -----Original Message----- > From: Yu Watanabe [mailto:yu.watanabe@stripped] > Sent: Tuesday, May 22, 2012 7:07 PM > To: mysql@stripped > Subject: Need help for performance tuning with Mysql >=20 > Hello all. >=20 > I would like to ask for advice with performance tuning with MySQL. >=20 > Following are some data for my server. >=20 > CPU : Xeon(TM) 2.8GHz (2CPUs - 8core total) > Memory : 8GB > OS : RHEL 4.4 x86_64 > MySQL : MySQL 5.0.50sp1-enterprise >=20 > Attached file > # my.cnf.txt : my.cnf information > # mysqlext_20120522131034.log : variable and status information from > mysqladmin >=20 > I have 2 database working with high load. >=20 > I wanted to speed up my select and update queries not by optimizing the > query itself but tuning the my.cnf. >=20 > I have referred to following site, > http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html >=20 > and read "Hiperformance Mysql vol.2" , > and increased the following values, >=20 > table_cache > thread_cache_size > tmp_table_size > max_heap_table_size >=20 > but made not much difference. >=20 > According to the ps and sar result >=20 > *1 PS result > Date Time CPU% RSS VSZ > 2012/5/22 21:00:39 109 294752 540028 >=20 > *2 SAR > Average CPU user 25% > sys 5% > io 3% >=20 > I assume that MySQL can work more but currently not. >=20 > I am considersing to off load 1 high load database to seperate process > and make MySQL work in multiple process. >=20 > It would be a great help if people in this forum can give us an adivice > for the tuning. >=20 > Best Regards, > Yu Watanabe