Skip to content

MDEV-38369 Windows - improve heap allocation performance with segmentHeap#5220

Open
vaintroub wants to merge 1 commit into
10.11from
MDEV-38369
Open

MDEV-38369 Windows - improve heap allocation performance with segmentHeap#5220
vaintroub wants to merge 1 commit into
10.11from
MDEV-38369

Conversation

@vaintroub

Copy link
Copy Markdown
Member

Use modern segmentHeap heap manager on Windows.

The problem it is solving is severily reduced scalability on concurrent OLTP benchmarks, due to inherent scalability problems in default NT Heap implementation.

The benchmarks (see the corresponding ticket) show improvements across the board, with about 5-10% on low concurrency up to several orders of magnitude on high concurrency.

@vaintroub vaintroub requested a review from Copilot June 11, 2026 15:07
@vaintroub vaintroub changed the title MDEV-38369 Windows - improve heap allocation performance on with segmentHeap MDEV-38369 Windows - improve heap allocation performance with segmentHeap Jun 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR opts MariaDB Windows executables into using the modern Windows Segment Heap via the application manifest, targeting improved heap allocation scalability under concurrent workloads.

Changes:

  • Add heapType=SegmentHeap to the Windows compatibility manifest to enable Segment Heap.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmake/win_compatibility.manifest Outdated

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Windows compatibility manifest (cmake/win_compatibility.manifest) to enable the SegmentHeap heap type, which can improve memory efficiency on supported Windows versions. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

…tHeap

Use modern segmentHeap heap manager on Windows.

The problem it is solving is severily reduced scalability on concurrent
OLTP benchmarks, due to inherent scalability problems in default NT Heap
implementation.

The benchmarks (see the corresponding ticket) show improvements across
the board, with about 5-10% on low concurrency up to several orders of
magnitude on high concurrency.

Also addressed Gemini and Copilot concerns about correct namespace in
the app manifest XML file - make it the same as in Microsoft examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants