Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

MySQL my.cnf file for innodb

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


marc at perkel

May 17, 2008, 9:25 PM

Post #1 of 4 (100 views)
Permalink
MySQL my.cnf file for innodb

Just looking for some my.cnf example files for SA.

Server has 4 gigs of ram, dual core CPU. What do I want in my my.cnf file?

Thanks in advance.


mjackson at barking-dog

May 19, 2008, 7:12 AM

Post #2 of 4 (74 views)
Permalink
Re: MySQL my.cnf file for innodb [In reply to]

> Just looking for some my.cnf example files for SA.
>
> Server has 4 gigs of ram, dual core CPU. What do I want in my my.cnf file?

locate my-huge.cnf

:-)


luis.otegui at gmail

May 19, 2008, 7:12 AM

Post #3 of 4 (74 views)
Permalink
Re: MySQL my.cnf file for innodb [In reply to]

Mark:

2008/5/18 Marc Perkel <marc[at]perkel.com>:
> Just looking for some my.cnf example files for SA.
>
> Server has 4 gigs of ram, dual core CPU. What do I want in my my.cnf file?
>
> Thanks in advance.

Could you AT LEAST post this kind of questions as OFF TOPIC??? Or
maybe to the right list? (Mysql, Postfix, etc.)


>
>

Regards,


Luis
--
_____________________________________

GNU/GPL: "May The Source Be With You...

Linux Registered User #448382.
_____________________________________


hege at hege

May 19, 2008, 8:04 AM

Post #4 of 4 (74 views)
Permalink
Re: MySQL my.cnf file for innodb [In reply to]

On Mon, May 19, 2008 at 11:12:40AM -0300, Luis Hernán Otegui wrote:
> Mark:
>
> 2008/5/18 Marc Perkel <marc[at]perkel.com>:
> > Just looking for some my.cnf example files for SA.
> >
> > Server has 4 gigs of ram, dual core CPU. What do I want in my my.cnf file?
> >
> > Thanks in advance.
>
> Could you AT LEAST post this kind of questions as OFF TOPIC??? Or
> maybe to the right list? (Mysql, Postfix, etc.)

How is this OFF TOPIC IN CAPITALS? What does Postfix have to do with
MySQL+SA? If you read Marcs last posts, you see the connection. Would have
been more clear if he continued in that thread though.

To answer, there isn't anything special that SA needs. Only normal MySQL
performance tuning.

Just see how big your tables are with "show table status", sum data+index
sizes and multiply that by 1.5x to get a minimal innodb_buffer_pool_size.
You want all data in buffers.

Depending on platform, research following parameters:

innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 0

To save marginal overhead, you can disable query cache as bayes queries are
random and cache isn't even used for prepared statements. If you have
something else than SA in your db, you might want to enable it.

query_cache_type = 0

Cheers,
Henrik

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.