Skip to content

Poor performance for large allocations in native-lib mode #4357

Open
@nia-e

Description

@nia-e

As of #4343, the benchmark results for huge_allocs are significantly worse (~20x) if the isolated allocator is enabled i.e. in native-lib mode. This could be alleviated by using mmap internally instead, which did not have this issue, but will possibly require overallocating if the requested alignment is greater than the system pagesize.

Todos / open questions:

  • Why is calling alloc::alloc() so much slower when asking for page-aligned memory?
  • If it's fixable, bug the relevant people / open a PR to fix this
  • If it's not fixable, consider switching over to mmaping its memory instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-nativeArea: calling native functions via FFIC-bugCategory: This is a bug.I-slowImpact: Makes Miri even slower than it already is

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions