SlideShare a Scribd company logo
1 of 20
Compare mysql5.1.50 with
      mysql5.5.8
        Philip zhong
         2011-1-5
Prepare the testing environment
Machine configuration information
•   Intel(R) Xeon(R) E5620 X86-64
•   2 CPU x 8 Cores/CPU
•   Linux 2.6.9
•   2.40GHz, 32 GB RAM
•   CentOS release 5.3
•   Disk:hdparm -t /dev/sdc2=212.19 MB/sec
•   Mysql5.1.50 and Mysql5.5.8 are installed on
    the same machine
Install MYSQL5.1.50
export MYSQL_HOME=/home/oracle/mysql5.1.50
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3" ./configure 
--prefix=$MYSQL_HOME --with-extra-charsets=latin1,gbk,utf8 
--with-plugins=partition,heap,innobase,myisam,innodb_plugin 
--enable-assembler 
--enable-thread-safe-client 
--without-debug 
--without-plugin-daemon_example 
--without-plugin-ftexample 
--without-plugin-archive 
--without-plugin-blackhole 
--without-plugin-example 
--without-plugin-federated 
--without-plugin-ibmdb2i 
--without-plugin-ndbcluster 
--with-mysqld-user=oracle 
--with-server-suffix=-webex
--with-unix-socket-path=$MYSQL_HOME/run/mysql.sock
Install MYSQL5.5.8
export MYSQL_HOME="/home/oracle/mysql5.5.8"
export MYSQL_DATA_HOME="/data/mysql5.5.8/datacenter"
cmake . 
-DCMAKE_INSTALL_PREFIX=$MYSQL_HOME 
-DINSTALL_LAYOUT=STANDALONE 
-DMYSQL_DATADIR=$MYSQL_DATA_HOME 
-DWITH_PARTITION_STORAGE_ENGINE=1 
-DWITH_INNOBASE_STORAGE_ENGINE=1 
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 
-DWITHOUT_FEDERATED_STORAGE_ENGINE=1 
-DENABLE_DEBUG_SYNC=OFF 
-DENABLE_DOWNLOADS=OFF 
-DENABLE_DTRACE=OFF 
-DENABLED_LOCAL_INFILE=OFF 
-DENABLED_PROFILING=ON 
-DMYSQL_MAINTAINER_MODE=OFF 
-DMYSQL_UNIX_ADDR=$MYSQL_HOME/run/mysql.sock 
-DMYSQL_TCP_PORT=3306 
-DWITH_COMMENT="mysql 5.5.8 on linux2.6 for webex" 
-DWITH_DEBUG=OFF 
-DWITH_EMBEDDED_SERVER=OFF
-DWITH_EXTRA_CHARSETS=ALL 
-DWITH_UNIT_TESTS=OFF 
-LH
Install SYSBENCH0.4.12
./configure --prefix=/opt/sysbench_mysql50/ --
   with-mysql-
   includes=/home/oracle/mysql5.1.50/include/mys
   ql/ --with-mysql-
   libs=/home/oracle/mysql5.1.50/lib/mysql

./configure --prefix=/opt/sysbench_mysql55/ --
   with-mysql-
   includes=/home/oracle/mysql5.5.8/include/ --
   with-mysql-libs=/home/oracle/mysql5.5.8/lib/
MYSQL5.1.50 plug-in configurations
default-storage-engine = INNODB
ignore-builtin-innodb
plugin-
    load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_p
    lugin.so;innodb_lock_waits=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cm
    p_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=h
    a_innodb_plugin.so
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 1024M
innodb_log_buffer_size= 10M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_thread_concurrency = 16
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_max_dirty_pages_pct = 70
transaction-isolation = READ-COMMITTED
innodb_file_format=Barracuda
MYSQL5.1.50 built-in configurations
default-storage-engine = INNODB
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 1024M
innodb_log_buffer_size= 10M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_thread_concurrency = 16
innodb_max_dirty_pages_pct = 70
transaction-isolation = READ-COMMITTED
MYSQL5.5.8 configurations
default-storage-engine = INNODB
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 15
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 1024M
innodb_log_buffer_size= 10M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_thread_concurrency = 16
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_max_dirty_pages_pct =70
transaction-isolation = READ-COMMITTED
innodb_file_format=Barracuda
Test without concurrency for
 mysql5.1.50 and mysql5.5.8
MYSQL without concurrency
item name        Mysql5.1.50 built-in    Mysql5.1.50 plug-in    Mysql5.5.8
Insert with      53.19 sec               53.33 sec              1 min 1.00 sec
10000000
records
Add a column     1000000 rows affected   1000000 rows           1000000 rows
                 (13.00 sec)             affected (12.03 sec)   affected (12.47sec)

Create a index   1000000 rows affected   0 rows affected        0 rows affected
                 (19.24 sec)             (16.38 sec)            (18.51 sec)

Drop a index     1000000 rows affected    0 rows affected       0 rows affected (0.46
                 (13.50 sec)             (0.46 sec)             sec)

Drop a column 1000000 rows affected      1000000 rows           1000000 rows
              (20.00 sec)                affected (19.04 sec)   affected (19.78 sec)
Create the tables script
CREATE TABLE test_without_concurrency (
  id int(10) unsigned NOT NULL,
  k int(10) unsigned NOT NULL DEFAULT '0',
  c char(120) NOT NULL DEFAULT '',
  pad char(60) NOT NULL DEFAULT '',
  PRIMARY KEY (id),
  KEY k (k)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Insert data script
DELIMITER //
CREATE PROCEDURE insert_data_WITHOUT_CONCURRENCY()
BEGIN
   DECLARE vCount      bigint(12) DEFAULT 1;
   DECLARE vK        bigint(12) DEFAULT 1;
   DECLARE vbuyerName varchar(128) DEFAULT '0bPhilip';
     DECLARE vSellerName varchar(128) DEFAULT '0sPhilip';
   SET AUTOCOMMIT=0;
   WHILE vCount<=1000000 DO
   INSERT INTO TEST_WITHOUT_CONCURRENCY (id,k,c,pad)
   VALUES(vCount,vK,vSellerName,vbuyerName);
    set vCount=vCount+1;
    IF MOD(vCount,5000)=0 THEN
      set vK=vK+1;
      set vbuyerName=concat(vCount,'bPhilip');
      set vSellerName=concat(vCount,'sPhilip');
      COMMIT;
    END IF;
   END WHILE;
   COMMIT;
END;
//
DELIMITER ;
Call insert_data_WITHOUT_CONCURRENCY();
DDL operation scripts
1.alter table TEST_WITHOUT_CONCURRENCY
  add column philip_test varchar(100);
2.Create index ind_c on
  TEST_WITHOUT_CONCURRENCY(c);
3.Alter table TEST_WITHOUT_CONCURRENCY
  drop column philip_test ;
4. Alter table TEST_WITHOUT_CONCURRENCY
  drop index ind_c ;
Test with concurrency for mysql5.1.50
           and mysql5.5.8
MYSQL with concurrency
Insert data script
--5.1.50(plug-in and built-in)
cd /opt/sysbench_mysql50/bin
./sysbench --test=oltp 
   --mysql-host=10.224.56.188 
       --mysql-user=test --mysql-password=pass --mysql-port=3307 
       --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb
    
       --oltp-table-name=test_with_concurrency --num-threads=16 prepare
--5.5.8
cd /opt/sysbench_mysql55/bin
./sysbench --test=oltp 
   --mysql-host=10.224.56.188 
       --mysql-user=test --mysql-password=pass --mysql-port=3306 
       --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb
    
       --oltp-table-name=test_with_concurrency --num-threads=16 prepare
Test script(1)
--5.1.50(plug-in and built-in)
./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
      --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
      --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
      --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
      --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
      --db-ps-mode=auto --debug=off --test=oltp 
      --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307
      --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
      --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off 
      --mysql-engine-trx=yes run

./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
     --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
     --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
     --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
     --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
     --db-ps-mode=auto --debug=off --test=oltp 
     --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307
     --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
     --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off 
     --mysql-engine-trx=yes run
Test script(2)
--5.5.8
./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
      --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
      --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
      --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
      --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
      --db-ps-mode=auto --debug=off --test=oltp 
      --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306
      --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
      --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off 
      --mysql-engine-trx=yes run

./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session 
     --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 
     --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 
     --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select 
     --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 
     --db-ps-mode=auto --debug=off --test=oltp 
     --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306
     --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb 
     --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off 
     --mysql-engine-trx=yes run
Compare mysql5.1.50 mysql5.5.8

More Related Content

What's hot

The Ring programming language version 1.6 book - Part 71 of 189
The Ring programming language version 1.6 book - Part 71 of 189The Ring programming language version 1.6 book - Part 71 of 189
The Ring programming language version 1.6 book - Part 71 of 189Mahmoud Samir Fayed
 
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Alexey Lesovsky
 
Node.js flow control
Node.js flow controlNode.js flow control
Node.js flow controlSimon Su
 
Rop and it's friends
Rop and it's friendsRop and it's friends
Rop and it's friendsnuc13us
 
The Ring programming language version 1.5.3 book - Part 25 of 184
The Ring programming language version 1.5.3 book - Part 25 of 184The Ring programming language version 1.5.3 book - Part 25 of 184
The Ring programming language version 1.5.3 book - Part 25 of 184Mahmoud Samir Fayed
 
What is row level isolation on cassandra
What is row level isolation on cassandraWhat is row level isolation on cassandra
What is row level isolation on cassandraKazutaka Tomita
 
Wprowadzenie do technologi Big Data i Apache Hadoop
Wprowadzenie do technologi Big Data i Apache HadoopWprowadzenie do technologi Big Data i Apache Hadoop
Wprowadzenie do technologi Big Data i Apache HadoopSages
 
Numerical Methods with Computer Programming
Numerical Methods with Computer ProgrammingNumerical Methods with Computer Programming
Numerical Methods with Computer ProgrammingUtsav Patel
 
Intravert Server side processing for Cassandra
Intravert Server side processing for CassandraIntravert Server side processing for Cassandra
Intravert Server side processing for CassandraEdward Capriolo
 
Профилирование и оптимизация производительности Ruby-кода
Профилирование и оптимизация производительности Ruby-кодаПрофилирование и оптимизация производительности Ruby-кода
Профилирование и оптимизация производительности Ruby-кодаsamsolutionsby
 
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Ontico
 
Data structure programs in c++
Data structure programs in c++Data structure programs in c++
Data structure programs in c++mmirfan
 
Zone.js 2017
Zone.js 2017Zone.js 2017
Zone.js 2017Jia Li
 
Taipei.py 2018 - Control device via ioctl from Python
Taipei.py 2018 - Control device via ioctl from Python Taipei.py 2018 - Control device via ioctl from Python
Taipei.py 2018 - Control device via ioctl from Python Hua Chu
 
All you need to know about the JavaScript event loop
All you need to know about the JavaScript event loopAll you need to know about the JavaScript event loop
All you need to know about the JavaScript event loopSaša Tatar
 
Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?Felix Geisendörfer
 
Refactoring for testability c++
Refactoring for testability c++Refactoring for testability c++
Refactoring for testability c++Dimitrios Platis
 
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)Ontico
 

What's hot (20)

Prometheus Storage
Prometheus StoragePrometheus Storage
Prometheus Storage
 
The Ring programming language version 1.6 book - Part 71 of 189
The Ring programming language version 1.6 book - Part 71 of 189The Ring programming language version 1.6 book - Part 71 of 189
The Ring programming language version 1.6 book - Part 71 of 189
 
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.
 
Node.js flow control
Node.js flow controlNode.js flow control
Node.js flow control
 
Rop and it's friends
Rop and it's friendsRop and it's friends
Rop and it's friends
 
The Ring programming language version 1.5.3 book - Part 25 of 184
The Ring programming language version 1.5.3 book - Part 25 of 184The Ring programming language version 1.5.3 book - Part 25 of 184
The Ring programming language version 1.5.3 book - Part 25 of 184
 
What is row level isolation on cassandra
What is row level isolation on cassandraWhat is row level isolation on cassandra
What is row level isolation on cassandra
 
Wprowadzenie do technologi Big Data i Apache Hadoop
Wprowadzenie do technologi Big Data i Apache HadoopWprowadzenie do technologi Big Data i Apache Hadoop
Wprowadzenie do technologi Big Data i Apache Hadoop
 
Numerical Methods with Computer Programming
Numerical Methods with Computer ProgrammingNumerical Methods with Computer Programming
Numerical Methods with Computer Programming
 
Intravert Server side processing for Cassandra
Intravert Server side processing for CassandraIntravert Server side processing for Cassandra
Intravert Server side processing for Cassandra
 
Профилирование и оптимизация производительности Ruby-кода
Профилирование и оптимизация производительности Ruby-кодаПрофилирование и оптимизация производительности Ruby-кода
Профилирование и оптимизация производительности Ruby-кода
 
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
 
Data structure programs in c++
Data structure programs in c++Data structure programs in c++
Data structure programs in c++
 
Zone.js 2017
Zone.js 2017Zone.js 2017
Zone.js 2017
 
Ac2
Ac2Ac2
Ac2
 
Taipei.py 2018 - Control device via ioctl from Python
Taipei.py 2018 - Control device via ioctl from Python Taipei.py 2018 - Control device via ioctl from Python
Taipei.py 2018 - Control device via ioctl from Python
 
All you need to know about the JavaScript event loop
All you need to know about the JavaScript event loopAll you need to know about the JavaScript event loop
All you need to know about the JavaScript event loop
 
Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?
 
Refactoring for testability c++
Refactoring for testability c++Refactoring for testability c++
Refactoring for testability c++
 
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
Non-Relational Postgres / Bruce Momjian (EnterpriseDB)
 

Viewers also liked

RESA Commercial DRAFT
RESA Commercial DRAFTRESA Commercial DRAFT
RESA Commercial DRAFTsdr-resa
 
Discussion continuum - Access to treatment
Discussion continuum - Access to treatmentDiscussion continuum - Access to treatment
Discussion continuum - Access to treatmentXplore Health
 
English l1 creative writing
English l1 creative writingEnglish l1 creative writing
English l1 creative writinglesleymccardle
 
Presentatie Park op Nijverdal
Presentatie Park op NijverdalPresentatie Park op Nijverdal
Presentatie Park op Nijverdalhuisj07
 
11 Mistakes While Looking For A Job
11 Mistakes While Looking For A Job11 Mistakes While Looking For A Job
11 Mistakes While Looking For A JobPatrick Lynch
 
the meaning of my life
the meaning of my lifethe meaning of my life
the meaning of my lifedonshe_26
 
Blog8.3 656-680-695
Blog8.3 656-680-695Blog8.3 656-680-695
Blog8.3 656-680-695mepigxymayme
 
Researchers - recommendations from AIGLIA2014
Researchers - recommendations from AIGLIA2014Researchers - recommendations from AIGLIA2014
Researchers - recommendations from AIGLIA2014futureagricultures
 
Design pattern per il community management
Design pattern per il community managementDesign pattern per il community management
Design pattern per il community managementvaleria baudo
 
Mba724 s4 3 survey methodology
Mba724 s4 3 survey methodologyMba724 s4 3 survey methodology
Mba724 s4 3 survey methodologyRachel Chung
 
تمثيل البيانات بيانياً
تمثيل البيانات بيانياًتمثيل البيانات بيانياً
تمثيل البيانات بيانياًheshmat2010
 
ゲーム体験を最大化するために最適なITインフラとは
ゲーム体験を最大化するために最適なITインフラとはゲーム体験を最大化するために最適なITインフラとは
ゲーム体験を最大化するために最適なITインフラとはKVH Co. Ltd.
 
Grammabook2finished
Grammabook2finishedGrammabook2finished
Grammabook2finishedraquel63485
 
General Quiz (Prelims) | Elixir '12
General Quiz (Prelims) | Elixir '12General Quiz (Prelims) | Elixir '12
General Quiz (Prelims) | Elixir '12Abinash Shaw
 
Kiwanis presentation 06-07-2011
Kiwanis presentation 06-07-2011Kiwanis presentation 06-07-2011
Kiwanis presentation 06-07-2011bhmiomaha
 
The origin of the species
The origin of the speciesThe origin of the species
The origin of the speciesDaniel Webb
 

Viewers also liked (20)

Roditelska noemvri 2014
Roditelska noemvri 2014Roditelska noemvri 2014
Roditelska noemvri 2014
 
RESA Commercial DRAFT
RESA Commercial DRAFTRESA Commercial DRAFT
RESA Commercial DRAFT
 
Journal_ann_ndk
Journal_ann_ndkJournal_ann_ndk
Journal_ann_ndk
 
Discussion continuum - Access to treatment
Discussion continuum - Access to treatmentDiscussion continuum - Access to treatment
Discussion continuum - Access to treatment
 
English l1 creative writing
English l1 creative writingEnglish l1 creative writing
English l1 creative writing
 
Presentatie Park op Nijverdal
Presentatie Park op NijverdalPresentatie Park op Nijverdal
Presentatie Park op Nijverdal
 
11 Mistakes While Looking For A Job
11 Mistakes While Looking For A Job11 Mistakes While Looking For A Job
11 Mistakes While Looking For A Job
 
Tabla de materiales y precios de colciencias (1)
Tabla de materiales y precios de colciencias (1)Tabla de materiales y precios de colciencias (1)
Tabla de materiales y precios de colciencias (1)
 
the meaning of my life
the meaning of my lifethe meaning of my life
the meaning of my life
 
Blog8.3 656-680-695
Blog8.3 656-680-695Blog8.3 656-680-695
Blog8.3 656-680-695
 
Researchers - recommendations from AIGLIA2014
Researchers - recommendations from AIGLIA2014Researchers - recommendations from AIGLIA2014
Researchers - recommendations from AIGLIA2014
 
Hoteles
HotelesHoteles
Hoteles
 
Design pattern per il community management
Design pattern per il community managementDesign pattern per il community management
Design pattern per il community management
 
Mba724 s4 3 survey methodology
Mba724 s4 3 survey methodologyMba724 s4 3 survey methodology
Mba724 s4 3 survey methodology
 
تمثيل البيانات بيانياً
تمثيل البيانات بيانياًتمثيل البيانات بيانياً
تمثيل البيانات بيانياً
 
ゲーム体験を最大化するために最適なITインフラとは
ゲーム体験を最大化するために最適なITインフラとはゲーム体験を最大化するために最適なITインフラとは
ゲーム体験を最大化するために最適なITインフラとは
 
Grammabook2finished
Grammabook2finishedGrammabook2finished
Grammabook2finished
 
General Quiz (Prelims) | Elixir '12
General Quiz (Prelims) | Elixir '12General Quiz (Prelims) | Elixir '12
General Quiz (Prelims) | Elixir '12
 
Kiwanis presentation 06-07-2011
Kiwanis presentation 06-07-2011Kiwanis presentation 06-07-2011
Kiwanis presentation 06-07-2011
 
The origin of the species
The origin of the speciesThe origin of the species
The origin of the species
 

Similar to Compare mysql5.1.50 mysql5.5.8

MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkMySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkLouis liu
 
20141011 mastering mysqlnd
20141011 mastering mysqlnd20141011 mastering mysqlnd
20141011 mastering mysqlnddo_aki
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationAndrew Hutchings
 
MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527Saewoong Lee
 
HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)akirahiguchi
 
Apache Spark in your likeness - low and high level customization
Apache Spark in your likeness - low and high level customizationApache Spark in your likeness - low and high level customization
Apache Spark in your likeness - low and high level customizationBartosz Konieczny
 
MySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellMySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellEmily Ikuta
 
More on gdb for my sql db as (fosdem 2016)
More on gdb for my sql db as (fosdem 2016)More on gdb for my sql db as (fosdem 2016)
More on gdb for my sql db as (fosdem 2016)Valeriy Kravchuk
 
56 Query Optimization
56 Query Optimization56 Query Optimization
56 Query OptimizationMYXPLAIN
 
Beyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the codeBeyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the codeWim Godden
 
Riding the Binlog: an in Deep Dissection of the Replication Stream
Riding the Binlog: an in Deep Dissection of the Replication StreamRiding the Binlog: an in Deep Dissection of the Replication Stream
Riding the Binlog: an in Deep Dissection of the Replication StreamJean-François Gagné
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeWim Godden
 
PyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorialPyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorialjbellis
 
SDPHP - Percona Toolkit (It's Basically Magic)
SDPHP - Percona Toolkit (It's Basically Magic)SDPHP - Percona Toolkit (It's Basically Magic)
SDPHP - Percona Toolkit (It's Basically Magic)Robert Swisher
 

Similar to Compare mysql5.1.50 mysql5.5.8 (20)

MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkMySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
 
MySQLinsanity
MySQLinsanityMySQLinsanity
MySQLinsanity
 
20141011 mastering mysqlnd
20141011 mastering mysqlnd20141011 mastering mysqlnd
20141011 mastering mysqlnd
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
 
Load Data Fast!
Load Data Fast!Load Data Fast!
Load Data Fast!
 
MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527
 
HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)HandlerSocket plugin for MySQL (English)
HandlerSocket plugin for MySQL (English)
 
dotCloud and go
dotCloud and godotCloud and go
dotCloud and go
 
Apache Spark in your likeness - low and high level customization
Apache Spark in your likeness - low and high level customizationApache Spark in your likeness - low and high level customization
Apache Spark in your likeness - low and high level customization
 
MySQL 5.7 in a Nutshell
MySQL 5.7 in a NutshellMySQL 5.7 in a Nutshell
MySQL 5.7 in a Nutshell
 
More on gdb for my sql db as (fosdem 2016)
More on gdb for my sql db as (fosdem 2016)More on gdb for my sql db as (fosdem 2016)
More on gdb for my sql db as (fosdem 2016)
 
56 Query Optimization
56 Query Optimization56 Query Optimization
56 Query Optimization
 
Beyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the codeBeyond PHP - It's not (just) about the code
Beyond PHP - It's not (just) about the code
 
Triggers and Stored Procedures
Triggers and Stored ProceduresTriggers and Stored Procedures
Triggers and Stored Procedures
 
MySQL SQL Tutorial
MySQL SQL TutorialMySQL SQL Tutorial
MySQL SQL Tutorial
 
Riding the Binlog: an in Deep Dissection of the Replication Stream
Riding the Binlog: an in Deep Dissection of the Replication StreamRiding the Binlog: an in Deep Dissection of the Replication Stream
Riding the Binlog: an in Deep Dissection of the Replication Stream
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the code
 
PyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorialPyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorial
 
SDPHP - Percona Toolkit (It's Basically Magic)
SDPHP - Percona Toolkit (It's Basically Magic)SDPHP - Percona Toolkit (It's Basically Magic)
SDPHP - Percona Toolkit (It's Basically Magic)
 
Javantura v2 - Replication with MongoDB - what could go wrong... - Philipp Krenn
Javantura v2 - Replication with MongoDB - what could go wrong... - Philipp KrennJavantura v2 - Replication with MongoDB - what could go wrong... - Philipp Krenn
Javantura v2 - Replication with MongoDB - what could go wrong... - Philipp Krenn
 

More from Philip Zhong

Cisco Webex Distributed Framework and Data Store Design
Cisco Webex Distributed Framework and Data Store DesignCisco Webex Distributed Framework and Data Store Design
Cisco Webex Distributed Framework and Data Store DesignPhilip Zhong
 
How to Implement Distributed Data Store
How to Implement Distributed Data Store How to Implement Distributed Data Store
How to Implement Distributed Data Store Philip Zhong
 
MongoDB Knowledge Shareing
MongoDB Knowledge ShareingMongoDB Knowledge Shareing
MongoDB Knowledge ShareingPhilip Zhong
 
Adapter Poxy Pattern
Adapter Poxy PatternAdapter Poxy Pattern
Adapter Poxy PatternPhilip Zhong
 
How to estimate_oracle_cost
How to estimate_oracle_costHow to estimate_oracle_cost
How to estimate_oracle_costPhilip Zhong
 
Mongo db program_installation_guide
Mongo db program_installation_guideMongo db program_installation_guide
Mongo db program_installation_guidePhilip Zhong
 
Mongo db sharding_cluster_installation_guide
Mongo db sharding_cluster_installation_guideMongo db sharding_cluster_installation_guide
Mongo db sharding_cluster_installation_guidePhilip Zhong
 
Vitess percona 2012
Vitess percona 2012Vitess percona 2012
Vitess percona 2012Philip Zhong
 
Distributed_Database_System
Distributed_Database_SystemDistributed_Database_System
Distributed_Database_SystemPhilip Zhong
 
Mysql performance tuning
Mysql performance tuningMysql performance tuning
Mysql performance tuningPhilip Zhong
 
How to write_language_compiler
How to write_language_compilerHow to write_language_compiler
How to write_language_compilerPhilip Zhong
 
Mysql architecture&parameters
Mysql architecture&parametersMysql architecture&parameters
Mysql architecture&parametersPhilip Zhong
 

More from Philip Zhong (12)

Cisco Webex Distributed Framework and Data Store Design
Cisco Webex Distributed Framework and Data Store DesignCisco Webex Distributed Framework and Data Store Design
Cisco Webex Distributed Framework and Data Store Design
 
How to Implement Distributed Data Store
How to Implement Distributed Data Store How to Implement Distributed Data Store
How to Implement Distributed Data Store
 
MongoDB Knowledge Shareing
MongoDB Knowledge ShareingMongoDB Knowledge Shareing
MongoDB Knowledge Shareing
 
Adapter Poxy Pattern
Adapter Poxy PatternAdapter Poxy Pattern
Adapter Poxy Pattern
 
How to estimate_oracle_cost
How to estimate_oracle_costHow to estimate_oracle_cost
How to estimate_oracle_cost
 
Mongo db program_installation_guide
Mongo db program_installation_guideMongo db program_installation_guide
Mongo db program_installation_guide
 
Mongo db sharding_cluster_installation_guide
Mongo db sharding_cluster_installation_guideMongo db sharding_cluster_installation_guide
Mongo db sharding_cluster_installation_guide
 
Vitess percona 2012
Vitess percona 2012Vitess percona 2012
Vitess percona 2012
 
Distributed_Database_System
Distributed_Database_SystemDistributed_Database_System
Distributed_Database_System
 
Mysql performance tuning
Mysql performance tuningMysql performance tuning
Mysql performance tuning
 
How to write_language_compiler
How to write_language_compilerHow to write_language_compiler
How to write_language_compiler
 
Mysql architecture&parameters
Mysql architecture&parametersMysql architecture&parameters
Mysql architecture&parameters
 

Recently uploaded

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 

Compare mysql5.1.50 mysql5.5.8

  • 1. Compare mysql5.1.50 with mysql5.5.8 Philip zhong 2011-1-5
  • 2. Prepare the testing environment
  • 3. Machine configuration information • Intel(R) Xeon(R) E5620 X86-64 • 2 CPU x 8 Cores/CPU • Linux 2.6.9 • 2.40GHz, 32 GB RAM • CentOS release 5.3 • Disk:hdparm -t /dev/sdc2=212.19 MB/sec • Mysql5.1.50 and Mysql5.5.8 are installed on the same machine
  • 4. Install MYSQL5.1.50 export MYSQL_HOME=/home/oracle/mysql5.1.50 CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3" ./configure --prefix=$MYSQL_HOME --with-extra-charsets=latin1,gbk,utf8 --with-plugins=partition,heap,innobase,myisam,innodb_plugin --enable-assembler --enable-thread-safe-client --without-debug --without-plugin-daemon_example --without-plugin-ftexample --without-plugin-archive --without-plugin-blackhole --without-plugin-example --without-plugin-federated --without-plugin-ibmdb2i --without-plugin-ndbcluster --with-mysqld-user=oracle --with-server-suffix=-webex --with-unix-socket-path=$MYSQL_HOME/run/mysql.sock
  • 5. Install MYSQL5.5.8 export MYSQL_HOME="/home/oracle/mysql5.5.8" export MYSQL_DATA_HOME="/data/mysql5.5.8/datacenter" cmake . -DCMAKE_INSTALL_PREFIX=$MYSQL_HOME -DINSTALL_LAYOUT=STANDALONE -DMYSQL_DATADIR=$MYSQL_DATA_HOME -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 -DENABLE_DEBUG_SYNC=OFF -DENABLE_DOWNLOADS=OFF -DENABLE_DTRACE=OFF -DENABLED_LOCAL_INFILE=OFF -DENABLED_PROFILING=ON -DMYSQL_MAINTAINER_MODE=OFF -DMYSQL_UNIX_ADDR=$MYSQL_HOME/run/mysql.sock -DMYSQL_TCP_PORT=3306 -DWITH_COMMENT="mysql 5.5.8 on linux2.6 for webex" -DWITH_DEBUG=OFF -DWITH_EMBEDDED_SERVER=OFF -DWITH_EXTRA_CHARSETS=ALL -DWITH_UNIT_TESTS=OFF -LH
  • 6. Install SYSBENCH0.4.12 ./configure --prefix=/opt/sysbench_mysql50/ -- with-mysql- includes=/home/oracle/mysql5.1.50/include/mys ql/ --with-mysql- libs=/home/oracle/mysql5.1.50/lib/mysql ./configure --prefix=/opt/sysbench_mysql55/ -- with-mysql- includes=/home/oracle/mysql5.5.8/include/ -- with-mysql-libs=/home/oracle/mysql5.5.8/lib/
  • 7. MYSQL5.1.50 plug-in configurations default-storage-engine = INNODB ignore-builtin-innodb plugin- load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_p lugin.so;innodb_lock_waits=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cm p_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=h a_innodb_plugin.so innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 15 innodb_additional_mem_pool_size = 20M innodb_buffer_pool_size = 1024M innodb_log_buffer_size= 10M innodb_log_file_size = 256M innodb_log_files_in_group = 2 innodb_thread_concurrency = 16 innodb_write_io_threads = 8 innodb_read_io_threads = 8 innodb_max_dirty_pages_pct = 70 transaction-isolation = READ-COMMITTED innodb_file_format=Barracuda
  • 8. MYSQL5.1.50 built-in configurations default-storage-engine = INNODB innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 15 innodb_additional_mem_pool_size = 20M innodb_buffer_pool_size = 1024M innodb_log_buffer_size= 10M innodb_log_file_size = 256M innodb_log_files_in_group = 2 innodb_thread_concurrency = 16 innodb_max_dirty_pages_pct = 70 transaction-isolation = READ-COMMITTED
  • 9. MYSQL5.5.8 configurations default-storage-engine = INNODB innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 15 innodb_additional_mem_pool_size = 20M innodb_buffer_pool_size = 1024M innodb_log_buffer_size= 10M innodb_log_file_size = 256M innodb_log_files_in_group = 2 innodb_thread_concurrency = 16 innodb_write_io_threads = 8 innodb_read_io_threads = 8 innodb_max_dirty_pages_pct =70 transaction-isolation = READ-COMMITTED innodb_file_format=Barracuda
  • 10. Test without concurrency for mysql5.1.50 and mysql5.5.8
  • 11. MYSQL without concurrency item name Mysql5.1.50 built-in Mysql5.1.50 plug-in Mysql5.5.8 Insert with 53.19 sec 53.33 sec 1 min 1.00 sec 10000000 records Add a column 1000000 rows affected 1000000 rows 1000000 rows (13.00 sec) affected (12.03 sec) affected (12.47sec) Create a index 1000000 rows affected 0 rows affected 0 rows affected (19.24 sec) (16.38 sec) (18.51 sec) Drop a index 1000000 rows affected 0 rows affected 0 rows affected (0.46 (13.50 sec) (0.46 sec) sec) Drop a column 1000000 rows affected 1000000 rows 1000000 rows (20.00 sec) affected (19.04 sec) affected (19.78 sec)
  • 12. Create the tables script CREATE TABLE test_without_concurrency ( id int(10) unsigned NOT NULL, k int(10) unsigned NOT NULL DEFAULT '0', c char(120) NOT NULL DEFAULT '', pad char(60) NOT NULL DEFAULT '', PRIMARY KEY (id), KEY k (k) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  • 13. Insert data script DELIMITER // CREATE PROCEDURE insert_data_WITHOUT_CONCURRENCY() BEGIN DECLARE vCount bigint(12) DEFAULT 1; DECLARE vK bigint(12) DEFAULT 1; DECLARE vbuyerName varchar(128) DEFAULT '0bPhilip'; DECLARE vSellerName varchar(128) DEFAULT '0sPhilip'; SET AUTOCOMMIT=0; WHILE vCount<=1000000 DO INSERT INTO TEST_WITHOUT_CONCURRENCY (id,k,c,pad) VALUES(vCount,vK,vSellerName,vbuyerName); set vCount=vCount+1; IF MOD(vCount,5000)=0 THEN set vK=vK+1; set vbuyerName=concat(vCount,'bPhilip'); set vSellerName=concat(vCount,'sPhilip'); COMMIT; END IF; END WHILE; COMMIT; END; // DELIMITER ; Call insert_data_WITHOUT_CONCURRENCY();
  • 14. DDL operation scripts 1.alter table TEST_WITHOUT_CONCURRENCY add column philip_test varchar(100); 2.Create index ind_c on TEST_WITHOUT_CONCURRENCY(c); 3.Alter table TEST_WITHOUT_CONCURRENCY drop column philip_test ; 4. Alter table TEST_WITHOUT_CONCURRENCY drop index ind_c ;
  • 15. Test with concurrency for mysql5.1.50 and mysql5.5.8
  • 17. Insert data script --5.1.50(plug-in and built-in) cd /opt/sysbench_mysql50/bin ./sysbench --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=16 prepare --5.5.8 cd /opt/sysbench_mysql55/bin ./sysbench --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=16 prepare
  • 18. Test script(1) --5.1.50(plug-in and built-in) ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3307 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run
  • 19. Test script(2) --5.5.8 ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=4 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run ./sysbench --oltp-test-mode=complex --oltp-reconnect-mode=session --oltp-range-size=500 --oltp-point-selects=10 --oltp-simple-ranges=1 --oltp-sum-ranges=1 --oltp-order-ranges=1 --oltp-distinct-ranges=1 --oltp-index-updates=1 --oltp-non-index-updates=1 --oltp-nontrx-mode=select --oltp-connect-delay=1000 --oltp-user-delay-min=0 --oltp-user-delay-max=0 --db-ps-mode=auto --debug=off --test=oltp --mysql-host=10.224.56.188 --mysql-user=test --mysql-password=pass --mysql-port=3306 --oltp-table-size=1000000 --mysql-db=meetingdb --mysql-table-engine=innodb --oltp-table-name=test_with_concurrency --num-threads=8 --max-requests=10000 --oltp-auto-inc=off --mysql-engine-trx=yes run