Discussion:
Looking for help with high volume MySQL
John Klos
2007-08-17 17:48:10 UTC
Permalink
Hi, all,

I'm looking for help with setting up NetBSD machines in a MySQL cluster. I
have lots of questions, such as:

Is SMP efficient enough with NetBSD that a single 4, 6, or 8 processor
system would be as capable or perhaps more capable than, say, 2, 3, or 4
separate dual processor systems?

Why, on an amd64 system with 4 gigs of memory and MySQL ulimited as such:

ulimit -n 4096
ulimit -d 1572864
ulimit -n 600
ulimit -s 32768

do I sometimes get out of memory errors from MySQL? The total size of
MySQL seems to grow to about 1 gig, but never any larger, and I've had to
lower memory usage in my.cnf.

Why is my.cnf in /usr/local/ and not in /usr/local/etc/?

Does anyone have recommendations for setting up an arbitrary number of
replication slaves easily? Experience and suggestions? What's the best way
to benchmark two machines against each other? AMD or Intel?

Any suggestions or help would be most welcome.

Thanks,
John Klos
--
The good Christian should beware of mathematicians and all those who
make empty prophecies. The danger already exists that mathematicians
have made a covenant with the devil to darken the spirit and confine
man in the bonds of Hell.
-- St. Augustine
Matthew Mondor
2007-08-17 22:30:51 UTC
Permalink
On Friday, 17 Aug 2007 1:50:08
Post by John Klos
Is SMP efficient enough with NetBSD that a single 4, 6, or 8
processor system would be as capable or perhaps more capable than,
say, 2, 3, or 4 separate dual processor systems?
I do not know the answer to this question, however netbsd-4 and
-current branches are known to have better SMP support than the
netbsd-3 stable branch. With netbsd-3 threads, number crunching
applications in userspace should probably do fine but I do not have
experience with it.

Although some of that information may now be outdated here are links
that might be of interest:

http://bulk.fefe.de/scalability/
http://www.linux.com/articles/41348?tid=72&tid=29
http://www.linux.com/articles/41347?tid=152&tid=72&tid=29
http://mail-index.netbsd.org/tech-perform/2005/01/12/0000.html
http://www.feyrer.de/NetBSD/gmcgarry/
Post by John Klos
ulimit -n 4096 ulimit -d 1572864 ulimit
-n 600 ulimit -s 32768
do I sometimes get out of memory errors from MySQL? The total size
of MySQL seems to grow to about 1 gig, but never any larger, and
I've had to lower memory usage in my.cnf.
Why is my.cnf in /usr/local/ and not in /usr/local/etc/?
You might need to also setup a special login class, or to change the
settings for the default user class. See the login.conf(5) manual
page for more information.

As for /usr/local, it's not the default path netbsd uses (pkgsrc by
default uses /usr/pkg/ yet this is configurable). If you built mysql
yourself without pkgsrc it's probably necessary to configure the
scripts prior to building to chose the configuration file location,
./configure --help might show other options than only --prefix for
this...
Post by John Klos
Does anyone have recommendations for setting up an arbitrary
number of replication slaves easily? Experience and suggestions?
What's the best way to benchmark two machines against each other?
AMD or Intel?
Hopefully someone with large scale mysql setup experience can answer
this :)

Good luck,
--
Matthew Mondor
Loading...