[MDEV-13612] Startup takes longer than 5 - 50 minutes after update from MariaDB 5.5.x to 10.2.6 Created: 2017-08-22 Updated: 2018-09-20 Resolved: 2017-11-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Windows, Server, Storage Engine - InnoDB |
| Affects Version/s: | 10.2.6 |
| Fix Version/s: | 10.2.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Graf | Assignee: | Vladislav Vaintroub |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Windows Server 2012 R2 Standard |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
After the update from MariaDB 5.5.x to 10.2.6 the startup of a mirrored system takes now 5 - 50 minutes - with MariaDB 5.5.x the startup took not longer than 10 - 30s. 2017-08-21 13:42:00 7676 [Note] InnoDB: Highest supported file format is Barracuda. |
| Comments |
| Comment by Elena Stepanova [ 2017-08-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A similar bug Could you please upgrade to a recent 10.2 version and check if it makes the problem go away? | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-08-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MariaDB 10.2.8 shows the same startup behavior like 10.2.6. We went back to 5.5.x to ensure that not the hardware or the OS is the source of this slow startup behavior. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-08-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I must amend that the slow startup behavior can always be reproduced at the mirrored system. This means that when MariaDB 10.2.8 is started at the main system, stopped regularly and is then started at the backup system we can always reproduce this slow startup behavior. So what system dependent information is stored in MariaDB 10.2.6 that the startup at the backup system is always between 5 - 50 minutes ? | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-08-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
migra, what is the "main system" and what is the "backup system"? What's the difference between them in terms of hardware and OS? What is mirrored, is it data only, or MariaDB server settings as well? | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-08-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The main system is the system which is used normally to run MariaDB. When we recognized that MariaDB needs longer than 5-50 minutes to start on the backup system we created a checksum on the directory d:\mariadb**. Meanwhile we are went back to MariaDB 5.5.x and the backup system now starts again within 10-30s. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-09-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Do you need any further help from us to understand the problem ? | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-10-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
While the server is hanging, can you produce a process dump from it? Thanks. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-10-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We reproduced the tests with MariaDB 10.2.9. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-10-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2017-10-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
migra so you have 2 identical systems, system1 and system 2. Same versions of mariadb 10.2 binaries, same files (as proven by checksum). The database was shut down regularly. on system 1 startup is fast, and on system2 startup is slow? Is this the case? Can you tell how big are the databases, in terms of number of tables, maybe overall size,too | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-10-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
>The database was shut down regularly. on system 1 startup is fast, and on system2 startup is slow? Is this the case? >Can you tell how big are the databases, in terms of number of tables, maybe overall size,too DB Name DB Size in MB Number of tables When Mariadb is started first time on QSZIS5B (system2) and the start is interrupted after about 5 minutes due to a restart of system 2 (we don't want to wait 30 minutes or more), the second start on system 2 (after the restart) last only 10-30s. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2017-10-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks, It is absolutely interesting migra. One thing that comes to mind is sparseness and fragmentation. maybe you can check how fragmented are the big files on both systems. contig -a -v <path-to-file> from sysinternals can be used for this here is its download https://docs.microsoft.com/en-us/sysinternals/downloads/contig | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2017-10-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Just recently,we fixed sparseness and high fragmentation in 10.2, so it might be related https://jira.mariadb.org/browse/MDEV-13941 . There is also the 3rd party product you're using that , who knows, might not play very well with NTFS sparse files (i.e creating a lot of fragments) | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-11-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
migra, did you have a chance to check if 10.2.10 works better for you? | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-11-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Currently we need the 2 servers for the release of our next software version. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Graf [ 2017-11-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We testet the new MariaDB Server 10.2.10 3 times. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2017-11-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Great, so as I suspected, it was this sparse-ness or fragmentation. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2018-09-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For the record, if you were using .ibd files, then startup with a large number of tables would be slow until MariaDB 10.1.32 and 10.2.14 fixed |