MySQL Forums
Forum List  »  Performance

Re: Recommended changes to my.cnf
Posted by: Rick James
Date: April 21, 2014 11:24PM

I suggest leaving max_allowed_packet at the default of 1M unless you get the error discussed here:
http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html
(Very few systems hit that problem.)

Before 5.1.24 setting read_buffer_size > max_allowed_packet could cause LOAD DATA INFILE to fail.

Here's an attempt at picking a good size for read_buffer_size:
http://www.mysqlperformanceblog.com/2007/09/17/mysql-what-read_buffer_size-value-is-optimal/
My summary: It does not matter much. However, since it is allocated for every connection that needs it, a large value can chew up RAM.
I like somewhere between 64K and 256K. (Note: that's K, not M.)

Options: ReplyQuote


Subject
Views
Written By
Posted
2124
W B
April 19, 2014 01:56PM
939
April 20, 2014 04:53PM
991
W B
April 20, 2014 05:01PM
Re: Recommended changes to my.cnf
888
April 21, 2014 11:24PM


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.