Skip to content

Unsupported system page size #80

Closed

Description

@mdecimus

Hi,

We are using jemalloc in our project and some Linux ARM64 users with aPAGE_SIZE of 16384 have reported the following error when executing our precompiled binaries:

<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 5 bytes failed
Aborted (core dumped)

If the user compiles the binaries locally on their machines, there are no issues, so this seems to indicate that jemalloc expects the same page size the host had at compile time. Our distributed binaries are compiled on a Github CI runner instance using cross with a 4KB page size I believe.

My question is if it is possible to make jemalloc work on a machine that has a page size different to the one where the binary was compiled?

Activity

  1. BusyJay commented on Apr 18, 2024

    @BusyJay
    Member

    Yes, just tell jemalloc a large page size by environment variable JEMALLOC_SYS_WITH_LG_PAGE. It works fine as long as the given size is larger than the actual size.

  2. mdecimus commented on Apr 18, 2024

    @mdecimus
    Author

    Thank you!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions