Oracle 5.0 Reference Manual page 181

Table of Contents

Advertisement

2.2.2 overspins, which hurts MySQL performance. The likelihood that this condition occurs
glibc
can be reduced by re-nicing the
to correct the overspin behavior with a patch, available at
linuxthreads-2.2.2.patch. It combines the correction of overspin, maximum number of threads, and
stack spacing all in one. You need to apply it in the
tmp/linuxthreads-2.2.2.patch. We hope it is included in some form in future releases of
2.2. In any case, if you link against
glibc
PTHREAD_THREADS_MAX. We hope that the defaults is corrected to some more acceptable values for
high-load MySQL setup in the future, so that the commands needed to produce your own build can be
reduced to
./configure; make; make
If you use these patches to build a special static version of libpthread.a, use it only for statically
linking against MySQL. We know that these patches are safe for MySQL and significantly improve its
performance, but we cannot say anything about their effects on other applications. If you link other
applications that require LinuxThreads against the patched static version of the library, or build a
patched shared version and install it on your system, you do so at your own risk.
If you experience any strange problems during the installation of MySQL, or with some common utilities
hanging, it is very likely that they are either library or compiler related. If this is the case, using our
binary resolves them.
If you link your own MySQL client programs, you may see the following error at runtime:
ld.so.1: fatal: libmysqlclient.so.#:
open failed: No such file or directory
This problem can be avoided by one of the following methods:
• Link clients with the
• Copy
libmysqclient.so
Add the path name of the directory where
environment variable before running your client.
If you are using the Fujitsu compiler (fcc/FCC), you may have some problems compiling MySQL
because the Linux header files are very
fcc/FCC:
CC=fcc CFLAGS="-O -K fast -K lib -K omitfp -Kpreex -D_GNU_SOURCE \
-DCONST=const -DNO_STRTOLL_PROTO" \
CXX=FCC CXXFLAGS="-O -K fast -K lib \
-K omitfp -K preex --no_exceptions --no_rtti -D_GNU_SOURCE \
-DCONST=const -Dalloca=__builtin_alloca -DNO_STRTOLL_PROTO \
'-D_EXTERN_INLINE=static __inline'" \
./configure \
--prefix=/usr/local/mysql --enable-assembler \
--with-mysqld-ldflags=-all-static --disable-shared \
--with-low-memory
2.20.1.4. Linux Postinstallation Notes
mysql.server
or in a MySQL source tree. You can install it as
and shutdown. See
If MySQL cannot open enough files or connections, it may be that you have not configured Linux to
handle enough files.
In Linux 2.2 and onward, you can check the number of allocated file handles as follows:
shell>
cat /proc/sys/fs/file-max
shell>
cat /proc/sys/fs/dquot-max
shell>
cat /proc/sys/fs/super-max
mysqld
-Wl,r/full/path/to/libmysqlclient.so
to /usr/lib.
can be found in the
support-files
Section 2.18.1.2, "Starting and Stopping MySQL
Linux Notes
process to the highest priority. We have also been able
http://dev.mysql.com/Downloads/Linux/
linuxthreads
2.2.2, you still need to correct
glibc
install.
libmysqlclient.so
oriented. The following
gcc
directory under the MySQL installation directory
/etc/init.d/mysql
161
directory with
patch -p0 </
STACK_SIZE
flag rather than with -Lpath).
is located to the
LD_RUN_PATH
line should work with
configure
for automatic MySQL startup
Automatically".
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents