Skip to content

Enabling madvise syscalls on v6.18#134

Open
dpaliulis-msft wants to merge 1 commit into
microsoft:project/hcl-dev/6.18from
dpaliulis-msft:user/dpaliulis/enabling_madvise
Open

Enabling madvise syscalls on v6.18#134
dpaliulis-msft wants to merge 1 commit into
microsoft:project/hcl-dev/6.18from
dpaliulis-msft:user/dpaliulis/enabling_madvise

Conversation

@dpaliulis-msft
Copy link
Copy Markdown

Adding user-mode memory leak fix from PR 133 to v6.18.

Copilot AI review requested due to automatic review settings May 12, 2026 21:59
Copy link
Copy Markdown

Copilot AI left a comment

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 enables the kernel’s madvise()/fadvise() syscalls in the OpenHCL v6.18 HCL kernel configs to allow MiMalloc decommit paths to actually decommit memory (addressing the user-mode memory growth/leak behavior referenced from PR #133).

Changes:

  • Enable CONFIG_ADVISE_SYSCALLS=y for the x64 HCL kernel config.
  • Enable CONFIG_ADVISE_SYSCALLS=y for the arm64 HCL kernel config.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Microsoft/hcl-x64.config Turns on CONFIG_ADVISE_SYSCALLS to enable madvise()/fadvise() on x64.
Microsoft/hcl-arm64.config Turns on CONFIG_ADVISE_SYSCALLS to enable madvise()/fadvise() on arm64.

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

@hargar19
Copy link
Copy Markdown
Collaborator

The config change has minimal effect on the kernel binary size:

File Arch Without With Delta
vmlinux x86 11,975,192 11,975,192 +0 B (no change)
vmlinux.dbg x86 58,069,504 58,175,768 +106,264 B (+0.18%)
vmlinux arm64 7,299,360 7,364,896 +65,536 B (+0.90%)
vmlinux.dbg arm64 48,867,792 48,992,424 +124,632 B (+0.26%)
Image arm64 7,231,496 7,297,032 +65,536 B (+0.91%)

@namancse namancse self-requested a review May 14, 2026 09:47
Copy link
Copy Markdown
Contributor

@namancse namancse left a comment

Choose a reason for hiding this comment

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

LGTM

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.

6 participants