您的位置:首页 > 其它

[InnoDB系列] - InnoDB VS PBXT实测

2008-07-25 15:43 627 查看
作/译者:叶金荣(Email:

),来源:http://imysql.cn,转载请注明作/译者和出处,并且不能用于商业用途,违者必究。

1、前言

PBXTPrimeBase 公司推出的MySQL插件引擎,其功能和 InnoDB 类似,主要特性如下:

MVCC Support:
MVCC stands for Multi-version Concurrency Control. MVCC allows reading the database without locking.
Fully ACID complient:
This means that transactionally safe, and able to handle multiple concurrent transactions.
Row-level locking:
When updating, PBXT uses row-level locking. Row-level locking is also used during SELECT FOR UPDATE.
Fast Rollback and Recovery:
PBXT
uses a specialized method to identify garbage which makes "undo"
unncessary. This make both rollback of transactions and recovery after
restart very fast.
Deadlock Detection:
PBXT identifies all kinds of deadlocks immediately.
Write-once:
PBXT
uses a log-based storage which makes it possible to write transactional
data directly to the database, without first being writen to the
transaction log.
Referential Integrity:
PBXT supports foreign key definitions, including cascaded updates and deletes.
BLOB streaming:
In combination with the BLOB Streaming engine PBXT can stream binary and media directly in and out of the database.

本次我们来实际对比测试下InnoDB和PBXT的性能区别。

2、准备

2.1 配置

PBXTInnoDB 主要配置参数如下:
innodb:
innodb_buffer_pool_size = 6G
innodb_data_file_path = ibdata1:1024M:autoextend
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 16M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_file_per_table


pbxt:
pbxt_checkpoint_frequency    = 28MB
pbxt_data_file_grow_size     = 8MB
pbxt_data_log_threshold      = 128MB
pbxt_garbage_threshold       = 50
pbxt_index_cache_size        = 2G
pbxt_log_buffer_size         = 2M
pbxt_log_cache_size          = 16MB
pbxt_log_file_count          = 3
pbxt_log_file_threshold      = 128MB
pbxt_record_cache_size       = 4G
pbxt_row_file_grow_size      = 1M
pbxt_transaction_buffer_size = 32MB

2.2 准备数据

本次测试分2部分进行,一部分是利用MySQL官方提供的 sql-bench 工具测试,另一部分采用 sysbench 做一个基准测试。
本文出自 “MySQL中文网”博客 http://www.imysql.cn/
本文出自 “爱MySQL” 博客,转载请与作者联系!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: