MySQL Forums
Forum List  »  Performance

InnoDB CPU Spikes
Posted by: Sabari girish Viswanathan
Date: March 18, 2009 02:43AM

We are facing CPU utilization to increase when a select query is fired against a table having approximately 100million records (on average). This table has InnoDB as its engine. The select query is executed to generate MIS reports.

The cpu utilization of mysqld increases from 1.5% to about 50% till the completion of the query. Being a audit log table the transactions are written to continuously to this table at a rate of 200TPS.

The load average on this machine is 0.3 - 0.6 but when the reports are generated it peaks to 2 - 3.

The reports are generated everyday and have the date in the where clause. Even with an index on the table the cpu utilization does not seem to have major changes.


Hardware
# uname -a
SunOS GATEWAY-SUN2 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V490

8GB RAM



My.cnf
# cat my.cnf
[mysqld]
innodb_flush_log_at_trx_commit=2
innodb_doublewrite=0
innodb_buffer_pool_size=1G
innodb_max_dirty_pages_pct=90
datadir=/gateway/mysql/data_dir


Table Defn
mysql> desc tblAuditLog;
+--------------------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------------------+-------------+------+-----+---------+----------------+
| pkAuditLogId | bigint(20) | NO | PRI | NULL | auto_increment |
| fldInvokeId | varchar(6) | YES | | NULL | |
| fldCreatedDate | datetime | YES | | NULL | |
| fldDialogId | varchar(6) | YES | | NULL | |
| fldExternalSystemInfo | varchar(80) | YES | | NULL | |
| fldShortCode | varchar(10) | YES | | NULL | |
| fldRequestTimestamp | datetime | YES | | NULL | |
| fldResponseTimestamp | datetime | YES | | NULL | |
| fldMsisdnnumber | varchar(14) | YES | | NULL | |
| fldESRequesttimestamp | datetime | YES | | NULL | |
| fldESResponsetimestamp | datetime | YES | | NULL | |
| fldEngineName | varchar(10) | YES | | NULL | |
| fldExternalSystem | varchar(50) | YES | | NULL | |
| fldRegionName | varchar(10) | YES | | NULL | |
| fldResponsetype | tinyint(1) | YES | | NULL | |
+--------------------------+-------------+------+-----+---------+----------------+
15 rows in set (0.01 sec)


Any guidance / pointers will be very helpful for me to get out of this problem.

Thanks in advance!

Options: ReplyQuote


Subject
Views
Written By
Posted
InnoDB CPU Spikes
6598
March 18, 2009 02:43AM
2485
March 18, 2009 03:08AM
2404
March 18, 2009 08:29PM
2279
March 19, 2009 04:48AM
2435
March 19, 2009 10:46AM
2247
March 19, 2009 03:47AM
2360
March 19, 2009 03:55AM
2198
March 19, 2009 04:49AM
2260
March 19, 2009 10:20AM
1956
March 30, 2009 01:25AM
2052
March 30, 2009 07:13PM
2073
March 31, 2009 02:31AM
2177
March 31, 2009 08:12AM
1981
April 01, 2009 03:27AM
1982
April 01, 2009 10:01AM
2043
April 01, 2009 10:22AM
2007
April 01, 2009 03:45AM
2134
April 01, 2009 11:57PM
2093
April 06, 2009 01:23AM
2080
April 06, 2009 08:01PM
1929
April 07, 2009 12:14AM
2021
April 08, 2009 04:36PM
2072
April 16, 2009 07:02AM


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.