Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
5.5.36, 10.0.8
-
None
-
None
-
Fusion-IO SSD
Description
Currently size is set like:
current_size = 0;
desired_size = (ib_int64_t)size + (((ib_int64_t)size_high) << 32);
#ifdef HAVE_POSIX_FALLOCATE
if (srv_use_posix_fallocate) {
if (posix_fallocate(file, current_size, desired_size) == -1) {
Thus file size is always extended from offset 0 to desired offset. This is clearly slower than doing
posix_fallocate(real_current_size, desired_size)
Attachments
Issue Links
- relates to
-
MDEV-5878 Failing assertion: mutex_own(mutex) with innodb_use_fallocate=ON
- Closed
-
MDEV-11520 Extending an InnoDB data file unnecessarily allocates a large memory buffer on Windows
- Closed
-
MDEV-14244 MariaDB 10.2.10 fails to run on Debian Stretch with ext3 and O_DIRECT
- Closed