Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2005 08:59:52 -0400
From:      David Miller <dmiller@sparks.net>
To:        Michael Barrett <mike.freebsddb@daboyz.org>
Cc:        freebsd-database@freebsd.org
Subject:   Re: Big DB (100G+) w/ MySQL 4.1 and FreeBSD 4?
Message-ID:  <42DCF948.3020404@sparks.net>
In-Reply-To: <20050719063309.GA63017@daboyz.org>
References:  <20050719063309.GA63017@daboyz.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Barrett wrote:

>    Does anyone here have any experience with dealing with large MySQL 4.1 databases (over 100 gigs) on FreeBSD 4.x?  I'm running into performance issues with a similar setup, and I wanted to compare notes with anyone else who may have tried this.  Our current setup is:
>
>        Dell 2650 w/ 2CPU's (533 FSB) and 3G  of RAM
>        FreeBSD 4.11 running SMP
>        MySQL 4.1.12 using LinuxThreads
>
>    Our tables are almost completely innodb using seperate files per table. The size of our mysql datadir is around 199 Gigs.
>
>    We're seeing all sorts of weird performance issues.  The biggest 'issue' we're seeing is that some queries take over a minute to return, yet the system itself (CPU, disks, etc) see almost no activity while this is going on.  We had the MySQL AB folks out to take a look, and even running their pre-built binary (w/ LinuxThreads) from their website we saw the same issues.  They agreed that 'something was wrong', but couldn't give us any quick ideas on what exactly we could do about it.
>
>    If you do have experience with a system around the size of ours with similar setup, I'd love to hear about your experiences.  Also, seeing any loader.conf, sysctl.conf, my.cnf, and general tips about kernel configuration would be awesome.
>
>    Thanks for any help you can provide.
>  
>

In testing of earlier versions of FreeBSD (4.8 or so) and MySQL (4.04) I 
found that running with SMP actually slowed the system down.  Simple 
database tasks actually took longer to finish with SMP enabled than with 
a single CPU.  That might be worth trying.

If your system doesn't do that - and I'm told that 5.4 doesn't - it may 
be worth throwing ktrace on the running mysql process to see what it's 
doing.

Hope this helps,

--- David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42DCF948.3020404>