简体   繁体   English

使用mysqldump导入数据后,为什么写入的块大小固定?

[英]Why is there a fixed block size write after importing data using mysqldump?

When I am using mysqldump to import data, I exec pidstat -p ${pid of mysqld} -d 2 . 当我使用mysqldump导入数据时,我执行pidstat -p ${pid of mysqld} -d 2 Then I saw that after executing mysqldump, there are still fixed-size blocks written. 然后我看到执行mysqldump之后,仍然写入了固定大小的块。 I think it is amazing. 我认为这太神奇了。 Why is this phenomenon? 为什么会出现这种现象?

在此处输入图片说明

A guess: Writes are buffered through the buffer_pool. 一个猜测:写是通过buffer_pool进行缓冲的。 After the busy part ended, the buffer_pool was mostly full and 'dirty'. 繁忙部分结束后,buffer_pool几乎已满且为“脏”。 After that, a background task flushed the blocks at its leisure, apparently at a rate of about 6MB/s 在那之后,一个后台任务在空闲时刷新了这些块,显然速度约为6MB / s

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM