2.12.1.7. Linux Alpha Notes
We have tested MySQL 5.1 on Alpha with our
benchmarks and test suite, and it appears to work well.
We currently build the MySQL binary packages on SuSE Linux 7.0
for AXP, kernel 2.4.4-SMP, Compaq C compiler (V6.2-505) and
Compaq C++ compiler (V6.3-006) on a Compaq DS20 machine with
an Alpha EV6 processor.
You can find the preceding compilers at
https://www.support.compaq.com/alpha-tools/. By
using these compilers rather than gcc, we
get about 9-14% better MySQL performance.
For MySQL on Alpha, we use the -arch generic
flag to our compile options, which ensures that the binary
runs on all Alpha processors. We also compile statically to
avoid library problems. The configure
command looks like this:
CC=ccc CFLAGS="-fast -arch generic" CXX=cxx \
CXXFLAGS="-fast -arch generic -noexceptions -nortti" \
./configure --prefix=/usr/local/mysql --disable-shared \
--with-extra-charsets=complex --enable-thread-safe-client \
--with-mysqld-ldflags=-non_shared --with-client-ldflags=-non_shared
If you want to use egcs, the following
configure line worked for us:
CFLAGS="-O3 -fomit-frame-pointer" CXX=gcc \
CXXFLAGS="-O3 -fomit-frame-pointer -felide-constructors \
-fno-exceptions -fno-rtti" \
./configure --prefix=/usr/local/mysql --disable-shared
Some known problems when running MySQL on Linux-Alpha:
Debugging threaded applications like MySQL does not work
with gdb 4.18
. You should use
gdb 5.1 instead.
If you try linking mysqld statically
when using gcc, the resulting image
dumps core at startup time. In other words, do
not use
--with-mysqld-ldflags=-all-static
with
gcc.