Home Database Mysql Tutorial MySQL5.6 Innodb数据页 16K vs 8K性能对比测试

MySQL5.6 Innodb数据页 16K vs 8K性能对比测试

Jun 07, 2016 pm 05:40 PM
8k innodb

从MySQL5.6开始,一个新参数innodb_page_size可以设置Innodb数据页为8K,4K,默认为16K。这个参数在一开始初始化时就要加入my.cnf里,如果已经创建了表,再修改,启动MySQL会报错。

相关mysql视频教程推荐:《mysql教程

下面我针对16K和8K做了一个压力测试。

硬件:R710,虚拟主机,72G内存,虚拟主机,6块300G、15000转做的RAID10,XFS分区。

my.cnf参数:

1.Sysbench参数(读写):

sbtest表1亿条记录,文件大小24G。

下面是16K性能图:

    下面是8K性能图:

    结论:默认页16K,对CPU压力较小,平均在20% 8K页,CPU压力为30%~40%,但select吞吐量要高于16K
    2.Sysbench参数(只读):sbtest表1亿条记录,文件大小24G。

    下面是16K和8K性能图:

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How many megapixels is 8k? How many megapixels is 8k? Mar 30, 2023 pm 06:21 PM

The resolution of 8k reaches 7680*4320, which is about 33 million pixels. 8K resolution is an experimental digital video standard, promoted by organizations such as the Japan Broadcasting Corporation (NHK), the British Broadcasting Corporation (BBC), and the Italian Radio and Television Corporation (RAI); the ultra-high resolution of 8K is the ultra-high resolution of 4K 4 times that of HD and 16 times that of Full HD.

First Insta360 Ace Pro 2 leak reveals 8K/30fps video, Leica lens, and dual AI chip First Insta360 Ace Pro 2 leak reveals 8K/30fps video, Leica lens, and dual AI chip Sep 04, 2024 pm 09:35 PM

Action cameras have been a hot topic this season, with the GoPro Hero 13 Black set for a September 4 launch, expected to be followed by the DJI Osmo Action 5 Pro (watch unboxing footage here) expected sometime later this month, though it doesn't have

what is mysql innodb what is mysql innodb Apr 14, 2023 am 10:19 AM

InnoDB is one of the database engines of MySQL. It is now the default storage engine of MySQL and one of the standards for binary releases by MySQL AB. InnoDB adopts a dual-track authorization system, one is GPL authorization and the other is proprietary software authorization. InnoDB is the preferred engine for transactional databases and supports transaction security tables (ACID); InnoDB supports row-level locks, which can support concurrency to the greatest extent. Row-level locks are implemented by the storage engine layer.

Equipped with a full set of domestic ultra-high-definition shooting and production equipment, the main station's 'China Red” 8K Olympic broadcast truck arrived in Paris Equipped with a full set of domestic ultra-high-definition shooting and production equipment, the main station's 'China Red” 8K Olympic broadcast truck arrived in Paris Jul 19, 2024 pm 03:00 PM

News from this site on July 18. According to CCTV News, in the early morning of July 16, local time, six CCTV "China Red" Olympic broadcast trucks, led by an 8K ultra-high-definition broadcast truck with a "Beijing C" license plate, were broadcast The report vehicle started from the north of Paris and passed by Paris landmarks such as the Arc de Triomphe and the Eiffel Tower. On the morning of the 16th local time, the main station's "China Red" 8K broadcast truck arrived at the Stade de France to complete the handover with the Olympic Broadcasting Company. "China Red" will produce 8K international public signals for the track and field competitions and closing ceremony of the Paris Olympic Games here. This site notes that this will be the first time in the history of the Summer Olympics that 8K ultra-high definition public signal production will be provided. China Central Radio and Television is the international media that has won the most bids to broadcast the Paris Olympic Games.

How MySQL sees InnoDB row format from binary content How MySQL sees InnoDB row format from binary content Jun 03, 2023 am 09:55 AM

InnoDB is a storage engine that stores data in tables on disk, so our data will still exist even after shutdown and restart. The actual process of processing data occurs in memory, so the data in the disk needs to be loaded into the memory. If it is processing a write or modification request, the contents in the memory also need to be refreshed to the disk. And we know that the speed of reading and writing to disk is very slow, which is several orders of magnitude different from reading and writing in memory. So when we want to get certain records from the table, does the InnoDB storage engine need to read the records from the disk one by one? The method adopted by InnoDB is to divide the data into several pages, and use pages as the basic unit of interaction between disk and memory. The size of a page in InnoDB is generally 16

How to handle mysql innodb exception How to handle mysql innodb exception Apr 17, 2023 pm 09:01 PM

1. Roll back and reinstall mysql. In order to avoid the trouble of importing this data from other places, first make a backup of the database file of the current library (/var/lib/mysql/location). Next, I uninstalled the Perconaserver 5.7 package, reinstalled the original 5.1.71 package, started the mysql service, and it prompted Unknown/unsupportedtabletype:innodb and could not start normally. 11050912:04:27InnoDB:Initializingbufferpool,size=384.0M11050912:04:27InnoDB:Complete

MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation Jul 26, 2023 am 11:25 AM

MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation Introduction: In the MySQL database, the choice of storage engine plays a vital role in system performance and data integrity. MySQL provides a variety of storage engines, the most commonly used engines include InnoDB, MyISAM and Memory. This article will evaluate the performance indicators of these three storage engines and compare them through code examples. 1. InnoDB engine InnoDB is My

How to solve phantom reading in innoDB in Mysql How to solve phantom reading in innoDB in Mysql May 27, 2023 pm 03:34 PM

1. Mysql transaction isolation level These four isolation levels, when there are multiple transaction concurrency conflicts, some problems of dirty reading, non-repeatable reading, and phantom reading may occur, and innoDB solves them in the repeatable read isolation level mode. A problem of phantom reading, 2. What is phantom reading? Phantom reading means that in the same transaction, the results obtained when querying the same range twice before and after are inconsistent as shown in the figure. In the first transaction, we execute a range query. At this time, there is only one piece of data that meets the conditions. In the second transaction, it inserts a row of data and submits it. When the first transaction queries again, the result obtained is one more than the result of the first query. Data, note that the first and second queries of the first transaction are both in the same

See all articles