Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2007 09:11:28 +0800
From:      "Ken Chen" <ken73.chen@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   mysql frequently crash on 6.2
Message-ID:  <d018a9bd0704301811n47a34e7ax457f527f083e49e0@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
After moving the database from Linux 2.4 to FreeBSD 6.2, the mysqld crash
very frequently! I think the problem is on FreeBSD when myusql is heaving
loading.

I have another same machine with lower loading, the mysql is stable.

===== 8< ================

Version: '5.0.37-log' socket: '/tmp/mysql2.sock' port: 3307 MySQL Community
Server (GPL)
mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose
the problem, but since we have already crashed, something is definitely
wrong
and this may fail.

key_buffer_size=402653184
read_buffer_size=2093056
max_used_connections=69
max_connections=130
threads_connected=53
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections =
1191414 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

===== 8< ================

db1# limits
Resource limits (current):
cputime infinity secs
filesize infinity kB
datasize 2621440 kB
stacksize 524288 kB
coredumpsize infinity kB
memoryuse infinity kB
memorylocked infinity kB
maxprocesses 5547
openfiles 11095
sbsize infinity bytes
vmemoryuse infinity kB
db1#

===== 8< ================

The configuration in my.cnf:

[mysqld2]
port = 3307
socket = /tmp/mysql2.sock
character-set-server = utf8
datadir = /db/data2
max_connections = 130
interactive_timeout = 20
nice=-15
thread_concurrency = 8

skip-locking

key_buffer = 256M
max_allowed_packet = 1M
table_cache = 400
sort_buffer_size = 4M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 32
query_cache_size= 64M
join_buffer_size = 4M

server-id = 233
log-bin = mysql-bin

skip-bdb
innodb_data_home_dir = /db/data2/
innodb_data_file_path = ibdata1:2G:autoextend
innodb_buffer_pool_size = 512M
innodb_additional_mem_pool_size = 8M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 64M
innodb_log_buffer_size = 6M
##innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 30

replicate-ignore-table=friend.SendVKiss
replicate-wild-ignore-table=friend.fc_%
replicate-wild-ignore-table=friend._search_result_%

===== 8< ================

Last, the FreeBSD boot message:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #0: Thu Apr 26 15:13:29 CST 2007
root@db3.topfong.com:/usr/src/sys/i386/compile/db3
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2791.78-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf27 Stepping = 7
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>

real memory = 4160684032 (3967 MB)
avail memory = 4078329856 (3889 MB)
ACPI APIC Table: <A M I OEMAPIC >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 6
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
ioapic3 <Version 2.0> irqs 72-95 on motherboard
ioapic4 <Version 2.0> irqs 96-119 on motherboard
kbd1 at kbdmux0
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0



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