Skip to content

Conversation

TreeHunter9
Copy link
Contributor

  • This should eliminate double writes of pages when file is extended.
  • If fallocate is not supported by filesystem fallback to the old method of writing zeroes to the file.

Restore gets the biggest performance boost from this patch. I tested restore on a database with one table CREATE TABLE TAB1(V1 VARCHAR(25), V2 VARCHAR(25), V3 VARCHAR(25), V4 VARCHAR(25)), with a file size of about 16 GB. The testing was done on two different PCs with the same OS (Ubuntu 24.04):
Intel Core i5-10400 + WD Red SN700 1000 GB (111150WD): +10% speedup with -par 8;
Ryzen 7 7700 + KINGSTON SKC3000S1024G (EIFK31.6): +18% speedup with -par 8;
On Windows, the performance improvement is small (about 3-5%), so the real target of this patch is Linux.

…file

- This should eliminate double writes of pages when file is extended.
- If fallocate is not supported by filesystem fallback to the old method of writing zeroes to the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants