Incremental backup extremly slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
New
|
Undecided
|
Unassigned |
Bug Description
Copy-paste https:/
(The code is the same and the performance is the same, all research was done with mariabackup although)
Hello
Taking incremental backup like: `mariabackup --backup --incremental-
I did a bit of debugging, and noticed that it spent way longer in xtrabackup_
After a bit more trail-and-error, I found that it spent most of the time in a `memset` line. This line: https:/
I found that by adding the following print statement to the file: https:/
Which gave me:
inc: 0.000001
inc: 0.000004
inc: 0.027387
inc: 0.027435
Ideally the code should only write delta file, when something has changed. At the moment it write a lot of "dummy" delta files, which only contain the header.
Regards Kristian Klausen
----
See also: https:/
In order to understand whats going on we need some more information from you. What is exact command you were running. What is your my.cnf contents, more specifically what is innodb_page_size and how many parallel threads you are using. If page size is higher than default one, then you might be low on memory and go swapping. This line
https:/ /github. com/percona/ percona- xtrabackup/ blob/80cb69baf7 964ddb94e568d7d bcef173b16db054 /storage/ innobase/ xtrabackup/ src/write_ filt.cc# L78
allocates ~1G when page size is 64k. Also, how many tables do you have?