Percona seems to be slower on FreeBSD as we tested on a clean install server:
Hardware: Supermicro PDSMU Xeon 3220 quad core 2.4Ghz, 4 GB ECC ram, 160 GB Seagate Barracuda 3.0 Gb/s SATA drive
OS: FreeBSD 8.4-RELEASE-p1 AMD64
- all software were installed using FreeBSD ports and default compile configurations
- test were conducted using sysbench 0.4.12
- MySQL data dir was cleared (removed all files) prior to each install of MySQL and Percona
- each test ran twice per number of threads
Configuration file generated from Percona Configuration Wizard:
my.cnf:
[mysql]
# CLIENT #
port = 3306
socket = /tmp/mysql.sock
[mysqld]
# GENERAL #
user = mysql
default_storage_engine = InnoDB
socket = /tmp/mysql.sock
#pid_file = /var/db/mysql/mysql.pid
# MyISAM #
key_buffer_size = 32M
myisam_recover = FORCE,BACKUP
# SAFETY #
max_allowed_packet = 16M
max_connect_errors = 1000000
skip_name_resolve
sql_mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_S UBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL _GROUP_BY
sysdate_is_now = 1
innodb = FORCE
innodb_strict_mode = 1
# DATA STORAGE #
datadir = /var/db/mysql/
# BINARY LOGGING #
#log_bin = /var/db/mysql/mysql-bin
#expire_logs_days = 14
#sync_binlog = 1
# CACHES AND LIMITS #
tmp_table_size = 32M
max_heap_table_size = 32M
query_cache_type = 0
query_cache_size = 0
max_connections = 500
thread_cache_size = 50
open_files_limit = 65535
table_definition_cache = 1024
table_open_cache = 128
# INNODB #
innodb_flush_method = O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 128M
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table = 1
innodb_buffer_pool_size = 2G
# LOGGING #
log_error = /var/db/mysql/mysql-error.log
log_queries_not_using_indexes = 1
slow_query_log = 1
slow_query_log_file = /var/db/mysql/mysql-slow.log
TESTING:
test command:
#sysbench --test=oltp --num-threads={i} --mysql-user=root --max-requests=0 --max-time=120 --mysql-password=mypasswd {prepare | run}
Results:
percona 5.5
4 thread:
transactions: 132707 (1105.86 per sec.)
deadlocks: 0 (0.00 per sec.)
8 thread:
transactions: 155294 (1294.04 per sec.)
deadlocks: 15 (0.12 per sec.)
12 thread:
transactions: 158591 (1321.55 per sec.)
deadlocks: 24 (0.20 per sec.)
16 thread:
transactions: 155354 (1294.54 per sec.)
deadlocks: 26 (0.22 per sec.)
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++
mysql-community 5.5
4 thread:
transactions: 134547 (1121.20 per sec.)
deadlocks: 0 (0.00 per sec.)
8 thread:
transactions: 158412 (1320.07 per sec.)
deadlocks: 15 (0.12 per sec.)
12 thread:
transactions: 161310 (1344.19 per sec.)
deadlocks: 19 (0.16 per sec.)
16 thread:
transactions: 158446 (1320.34 per sec.)
deadlocks: 25 (0.21 per sec.)