Skip to content

Use mimalloc instead of lfallocator#5775

Merged
alexey-milovidov merged 5 commits intomasterfrom
lfalloc2mimalloc
Jun 28, 2019
Merged

Use mimalloc instead of lfallocator#5775
alexey-milovidov merged 5 commits intomasterfrom
lfalloc2mimalloc

Conversation

@danlark1
Copy link
Copy Markdown
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
Let's use mimalloc instead of lfallocator not to provide arenas for each allocation

@danlark1 danlark1 added can be tested pr-bugfix Pull request with bugfix, not backported by default labels Jun 27, 2019
struct MiAllocator
{

static void * alloc(size_t size, size_t alignment = 0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you move to .cpp, you don't have to make any changes to
dbms/src/Interpreters/Compiler.cpp

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we lose the dead code elimination property if alignment is zero which is rather common case

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasonable.

@alexey-milovidov alexey-milovidov self-requested a review June 27, 2019 18:21
Danila Kutenin added 2 commits June 28, 2019 00:43
@alexey-milovidov alexey-milovidov merged commit 6e77fc4 into master Jun 28, 2019
stavrolia pushed a commit that referenced this pull request Jul 3, 2019
Use mimalloc instead of lfallocator

(cherry picked from commit 6e77fc4)
@stavrolia stavrolia added the v19.9 label Jul 3, 2019
@alesapin alesapin removed the v19.9 label Jul 9, 2019
abyss7 pushed a commit that referenced this pull request Jul 11, 2019
Use mimalloc instead of lfallocator

(cherry picked from commit 6e77fc4)
@abyss7 abyss7 added the v19.10 label Jul 11, 2019
@alexey-milovidov
Copy link
Copy Markdown
Member

This was not a bugfix but bug-introduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants