Need help with MySQL memory allocation
What should I set my.cnf values to?
> # * Fine Tuning
#
key_buffer = 16M
maxallowedpacket = 16M
thread_stack = 128K
threadcachesize = 8
This replaces the startup script and checks MyISAM tables if needed
the first time they are touched
myisam-recover = BACKUP
max_connections = 100
table_cache = 64
thread_concurrency = 10
#
* Query Cache Configuration
#
querycachelimit = 1M
querycachesize = 16M
The database server is for a vBulletin forum
2 Replies
There are a number of factors involved in determining the optimal MySQL memory settings.
For a quick guide, though, I'd recommend checking out the MySQL tuning primer script:
https://launchpad.net/mysql-tuning-primer
Regards,
Jankball
While I haven't worked on a very high load site in some time, I find that generally I get good enough performance by picking the appropriate pre-fab mysql config file, so I spend my time elsewhere.