Home » Performance » MySQL » How to Increase MYSQL performance
How to Increase MYSQL performance [message #3660] Mon, 27 October 2008 13:39 Go to next message
thehawk
Messages: 3
Registered: October 2008
Junior Member
Hello All,

I'm currently running mysql 5 on a server with 6GB of RAM and dual Xeon processors and I wish to take full advantage of the box's horse power.
Right now mysql runs fairly slow and it only occupies about 1GB of the total 6GB memory. I wish to increase its utilization so that some queries run faster (in memory).
Can someone suggest what changes I can make to have mysql utilize more server resources?

(a lot of the queries are Join queries)

I currently have the following lines in my.cfg file:
[mysqld]
key_buffer_size=256M
query_cache_limit=32M
query_cache_size=256M
thread_cache_size=256M
join_buffer=64M
max_allowed_packet=16M
table_cache=2048
sort_buffer_size=16M
read_buffer_size=4M
myisam_sort_buffer_size =64M

[isamchk]
key_buffer=128M
sort_buffer=128M
read_buffer=32M
write_buffer=32M

[myisamchk]
key_buffer=128M
sort_buffer=128M
read_buffer=32M
write_buffer=32M

Anything I can tweak better?
Thanks
TheHawk
Re: How to Increase MYSQL performance [message #3662 is a reply to message #3660 ] Tue, 28 October 2008 02:00 Go to previous messageGo to next message
debug  is currently offline debug
Messages: 128
Registered: March 2008
Senior Member

What storage engine do you mostly use? MyISAM or InnoDB?


Mikhail Solovyev, MySQL Performance Expert
MySQL Performance Blog
MySQL Consulting
Re: How to Increase MYSQL performance [message #3670 is a reply to message #3662 ] Tue, 28 October 2008 16:11 Go to previous messageGo to next message
thehawk
Messages: 3
Registered: October 2008
Junior Member
I'm not sure as I'm a newbie. How can I check?
Thanks
Re: How to Increase MYSQL performance [message #3672 is a reply to message #3670 ] Tue, 28 October 2008 16:18 Go to previous messageGo to next message
razdaman  is currently offline razdaman
Messages: 26
Registered: May 2007
Junior Member
thehawk wrote on Tue, 28 October 2008 21:11

I'm not sure as I'm a newbie. How can I check?
Thanks

If you use the mysql console client:
SELECT table_schema, table_name, engine FROM INFORMATION_SCHEMA.TABLES;
Re: How to Increase MYSQL performance [message #3680 is a reply to message #3672 ] Thu, 30 October 2008 00:22 Go to previous messageGo to next message
thehawk
Messages: 3
Registered: October 2008
Junior Member
Thanks for the help with the query Smile

they are all are InnoDB. Hope this helps.
Re: How to Increase MYSQL performance [message #3681 is a reply to message #3680 ] Thu, 30 October 2008 00:27 Go to previous message
debug  is currently offline debug
Messages: 128
Registered: March 2008
Senior Member

Hello,

Here are general tuning recomendations:
http://www.mysqlperformanceblog.com/2006/09/29/what-to-tune- in-mysql-server-after-installation/

As you have InnoDB - then ost important for you will be increasing innodb_buffer_pool_size and other InnoDB-related parameters.


Mikhail Solovyev, MySQL Performance Expert
MySQL Performance Blog
MySQL Consulting
Previous Topic:Choosing a server
Next Topic:Log I/O - What's Acceptable?
Goto Forum:
  



Current Time: Wed Jan 7 14:17:34 EST 2009

Total time taken to generate the page: 0.01278 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge