Skip to content

perf: use jemalloc as the global allocator on unix (try 2)#7448

Merged
DaniPopes merged 1 commit into
masterfrom
dani/jemalloc
Mar 28, 2024
Merged

perf: use jemalloc as the global allocator on unix (try 2)#7448
DaniPopes merged 1 commit into
masterfrom
dani/jemalloc

Conversation

@DaniPopes

@DaniPopes DaniPopes commented Mar 19, 2024

Copy link
Copy Markdown
Member

We should be able to enable this on unix and x64. Cannot enable on:

@DaniPopes DaniPopes requested a review from onbjerg March 19, 2024 17:09
@DaniPopes DaniPopes requested a review from mattsse as a code owner March 19, 2024 17:09
@onbjerg

onbjerg commented Mar 19, 2024

Copy link
Copy Markdown
Member

linux arm: incompatible page sizes

this is not strictly true. where do we depend on the page size?

also: "The architecture allows up to 4 levels of translation tables with a 4KB page size and up to 3 levels with a 64KB page size." (4kb 4 layers is the same as x86) https://docs.kernel.org/arch/arm64/memory.html

@DaniPopes

Copy link
Copy Markdown
Member Author

I don't know, I just know that aarch64 mostly breaks if we enable jemalloc on it, as per many reth issues and the linked issue

@onbjerg

onbjerg commented Mar 20, 2024

Copy link
Copy Markdown
Member

as per many reth issues

this is a special case for reth because we exhaust the virtual address space on some arm architectures, this should not be the case for foundry

@DaniPopes

DaniPopes commented Mar 22, 2024

Copy link
Copy Markdown
Member Author

It's not about exhausting any address space, it straight up just does not work, see

@DaniPopes DaniPopes merged commit 369597f into master Mar 28, 2024
@DaniPopes DaniPopes deleted the dani/jemalloc branch March 28, 2024 02:41
ZhangZhuoSJTU pushed a commit to MEDGA-eth/foundry that referenced this pull request Mar 29, 2024
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.

2 participants