Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Unusual mysql my.cnf optimization

Status
Not open for further replies.

Ridge

Level 9
Legacy Exclusive Member
Joined
Feb 11, 2006
Messages
2,995
Reaction score
20
what would your my.cnf file look like for the following.


this is for an internal application that has no more than 10 concurrent users at a time.

centos 5.3
all latest versions

2.83GHZ CORE 2 QUAD 1333 MHz FSB 12 MB CACHE
4 gigs of ram
u2 scsi
 

katherine

Country hopper
Legacy Exclusive Member
Joined
Jul 9, 2005
Messages
8,427
Reaction score
1,291
Things I would do:
  • obviously make sure the current database structure is adequate
  • OPTIMIZE the tables on a regular basis
  • rebuild the indexes
  • use the appropriate storage engine for the purpose, for example use HEAP for search-only/temporary tables

As for the my.cnf one thing you can do is optimize by reducing the number of allowed clients
  • Also look at the various caching facilities including the query cache
  • log the heavier queries and analyze them for possible optimization, debug, refine...

More: http://www.linuxweblog.com/tune-my.cnf
 

Ridge

Level 9
Legacy Exclusive Member
Joined
Feb 11, 2006
Messages
2,995
Reaction score
20
Thanks the post! I've tuned this bad boy as far as I think I can go. I think the bottleneck is slow db queries.
 

katherine

Country hopper
Legacy Exclusive Member
Joined
Jul 9, 2005
Messages
8,427
Reaction score
1,291
The EXPLAIN command can help optimize queries so you can spot possible bottlenecks such as missing indexes etc.
Obviously you need to fine-tune the code and the queries to the maximum before you even tweak the config file :)
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom