MySQL Forums
Forum List  »  Performance

Re: CPU usage too low
Posted by: A R
Date: September 25, 2012 05:35PM

Solved.

The issue was the default innodb_flush_log_at_trx_commit = 1.

I solved by adding the following line in my /etc/mysql/my.cnf file in the InnoDB part:

innodb_flush_log_at_trx_commit=2


Then restarted my server and the script works nice and fast!


I read in the reference manual that

"For the greatest possible durability and consistency in a replication setup using InnoDB with transactions, use innodb_flush_log_at_trx_commit=1 and sync_binlog=1 in your master server my.cnf file."


Since I am using this database for scientfic research, should I worry about replicability or is "replication" a technical term unrelated to scientific replicability in the context of RDBMS?


Thanks a lot for your help.
AR

Options: ReplyQuote


Subject
Views
Written By
Posted
13189
A R
September 02, 2012 04:52PM
4625
September 03, 2012 01:33PM
3290
A R
September 05, 2012 12:22AM
2857
September 05, 2012 03:35AM
2820
September 05, 2012 08:12AM
2515
A R
September 25, 2012 05:20PM
Re: CPU usage too low
3216
A R
September 25, 2012 05:35PM
2830
October 01, 2012 11:49PM


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.