Need help with MySQL memory allocation

I have a Linode 1536 dedicated database server running MySQL 5.0.51a-24+lenny4 (Debian)

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

Hi taron,

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

If the only thing this system does is run MySQL, you probably want to start with my-large.cnf (/usr/share/doc/mysql-server-5.0/examples/my-huge.cnf.gz or some similar directory)

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct