MySQL Forums
Forum List  »  Performance

Re: MySQL Performance Tuning Help
Posted by: Rick James
Date: October 04, 2010 08:27AM

Some of the numbers I gave are on the low side -- because of only 1GB (1.7?).

table_cache (table_open_cache) -- It was recently discovered (and proven with benchmarks) that a high value can be slower. The cache is scanned linearly. Very recently, a patch was put in so that the cache is looked up via a hash. The scripts you ran assume that bigger was better. I do not have a feel for the 'right value'.

open_files_limit -- that limit comes from the OS. The only reason to worry about it is because it imposes a limit on table_cache. (No problem with 3250, regardless of the table_cache discussion.)

thread_cache_size = 8 -- fine.

Each live connection (toward max_connections) (Sleeping, or not) takes 200KB, maybe more. It becomes a tradeoff between saving memory and refusing connections. wait_timeout is a way to kick out naughty connections.

You have tuned enough. Finding and fixing slow queries is your next best target.

Options: ReplyQuote


Subject
Views
Written By
Posted
14031
October 02, 2010 12:28AM
3359
October 03, 2010 11:59AM
2416
October 04, 2010 01:00AM
Re: MySQL Performance Tuning Help
2359
October 04, 2010 08:27AM
2109
October 05, 2010 01:50PM
2103
October 05, 2010 07:31PM
1975
October 05, 2010 07:40PM


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.