LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-14-2010, 08:49 PM   #1
DropHit
Member
 
Registered: Oct 2003
Posts: 95

Rep: Reputation: 15
mySQL my.cnf question..


Fast my.cnf
max_connections = 3000
sort_buffer_size = 64K
join_buffer_size = 1M
query_cache_size = 0
thread_stack = 196K
innodb_data_file_path = ibdata1:100M:autoextend
innodb_file_per_table = 1
innodb_status_file = 0
max_prepared_stmt_count = 1000000
skip_grant_tables
skip_locking
innodb_thread_concurrency = 0
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 8M


Slow my.cnf 300x diff
max_connections = 1000
sort_buffer_size = 8M
join_buffer_size = 8M
query_cache_size = 64M
thread_stack = 192K
innodb_data_file_path = ibdata1:4G:autoextend
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 256M


Machine has 8gigs of memory running 2 Intel(R) Xeon(R) CPU 5130 @ 2.00GHz , 4 cores

INSERT INTO 1_subscribers (email, name, lastName, idGroup, dateSubscribed, confirmed, prefersHtml, subPassword) VALUES ('email@domain.47123', 'first47123', 'last47123', 1, '2010-04-14 15:16:16', -1, -1, '2492')

The diff in an insert query of 100k records was 74secs. Vs 21 mins!

Any thoughts?
 
Old 04-15-2010, 01:56 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
I guess innodb_flush_log_at_trx_commit is key. flush to disk is slow operation.
 
Old 04-15-2010, 02:16 PM   #3
DropHit
Member
 
Registered: Oct 2003
Posts: 95

Original Poster
Rep: Reputation: 15
Ok... what about the change at

sort_buffer_size = 8M
join_buffer_size = 8M

we dropped those down a ton - could prob bring those back up? Any suggestions would be great
 
  


Reply

Tags
configurations


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing my.cnf after installing mysql 5.1.35 jdnow09 Linux - General 3 06-18-2009 11:10 PM
MySQL startup process and my.cnf lord-fu *BSD 4 07-11-2007 07:44 AM
Setting up the my.cnf for MySQL Server wbuik Linux - Software 1 09-24-2005 04:33 PM
how to config the mysql my.cnf? treotan Linux - General 1 09-14-2005 11:05 AM
MySQL server & my.cnf hct224 Linux - Newbie 0 04-02-2004 01:03 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration