Re: 2.4.23aa2 (bugfixes and important VM improvements for the highend)
From: Peter Zaitsev
Date: Thu Mar 04 2004 - 15:23:48 EST
On Thu, 2004-03-04 at 09:35, Martin J. Bligh wrote:
>
> 2. If it's gettimeofday hammering it (which it probably is, from previous
> comments by others, and my own experience), then vsyscall gettimeofday
> (John's patch) may well fix it up.
Well, as I wrote MySQL does not use a lot of gettimeofday. It rather
has 2-3 calls to time() per query, but it is very small number compared
to othet syscalls.
>
> 3. Are you using the extra user address space? Otherwise yes, it'll be
> all downside. And 4/4 vs 3/1 isn't really a fair comparison ... 4/4 is
> designed for bigboxen, so 4/4 vs 2/2 would be better, IMHO. People have
> said before that DB performance can increase linearly with shared area
> sizes (for some workloads), so that'd bring you a 100% or so increase
> in performance for 4/4 to counter the loss.
I do not really understand this :)
I know 4/4 was designed for BigBoxes, however we're more interested in
side effect we have - having 4G per user process instead of 3G in 3G/1G
split. As MySQL is designed as single process this is what rather
important for us.
I was not using extra address space in this test, as the idea was to see
how much slowdown 4G/4G split gives you with all other being the same.
Based on other benchmarks I know extra performance extra 1Gb used as
buffers can give.
Bringing this numbers together I shall conclude what 4G/4G does not make
sense for most MySQL loads, as 1Gb used for internal buffers (vs 1Gb
used for file cache) will not give high enough performance to cover such
major speed loss.
There are exceptions of course, for example the case where your full
workload will fit in 3G cache while will not fit in 2G (very edge one),
or in case you need 4G just to manage 10000+ connections with
reasonable buffers etc, which is also far from most typical scenario.
For "Big Boxes" I just would not advice having 32bit configuration at
all - happily nowadays you can get 64bit pretty cheap.
--
Peter Zaitsev, Senior Support Engineer
MySQL AB, www.mysql.com
Meet the MySQL Team at User Conference 2004! (April 14-16, Orlando,FL)
http://www.mysql.com/uc2004/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/