Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: MySQL memory footprint
PostPosted: Tue Mar 31, 2009 2:43 pm 
Offline
Senior Member

Joined: Mon Jul 30, 2007 9:55 pm
Posts: 80
Running MySQL on my Linode 720 to support Gallery2. After a week or two uptime, memory for MySQL climbs to 340M.

I initially tuned MySQL based on recommendations from http://www.day32.com/MySQL/ and http://wiki.mysqltuner.com/MySQLTuner

I'll be the 1st to admit I don't know much about administering MySQL.

Anyway, I'd like to reduce memory to <= 300M. Any recommendation on where to start? Here's my config: http://donsbox.com/~dfelicia/my.cnf


Top
   
 Post subject:
PostPosted: Tue Mar 31, 2009 5:18 pm 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
Do you actually need the features that InnoDB tables provide? It looks like about half of the memory usage you're seeing might be attributable to that. I have InnoDB turned off and--though my DBs are very small--MySQL never goes about 20MB total usage.

A long time ago, when Linode's small plan was 64MB of memory, caker put together this my.cnf to help us all get MySQL to fit. I've been using the same my.cnf (with minor modifications) since then. http://www.linode.com/~caker/uml/my.cnf

-James


Top
   
 Post subject:
PostPosted: Wed Apr 01, 2009 8:42 am 
Offline
Senior Member

Joined: Mon Jul 30, 2007 9:55 pm
Posts: 80
Quote:
Do you actually need the features that InnoDB tables provide? It looks like about half of the memory usage you're seeing might be attributable to that.

Yep. Gallery uses innodb.

Can I do the opposite? Can I turn off MyISAM, or lower key_buffer_size without adversely affecting things? I'm not using MySQL for anything other than gallery.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group