Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/7.0] Remove page map from PAL virtual memory allocator #80173

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 4, 2023

Backport of #80105 to release/7.0

/cc @janvorli

Customer Impact

This fix removes the 64mb PAL overhead when reserving 256gb of memory since its done by default with Regions.

Testing

Manual validation that the working set is lower with this change (about 64mb less for simple hello world applications)

Risk

Low, its mostly removing code which is not used within the runtime.

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

@janvorli janvorli self-assigned this Jan 4, 2023
@janvorli janvorli added the Servicing-consider Issue for next servicing release review label Jan 4, 2023
@janvorli janvorli added this to the 7.0.x milestone Jan 4, 2023
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

approved. we will take for consideration in 7.0.x

The page bitmap removal in PAL that was made recently has introduced
a subtle bug when the `VIRTUALCommitMemory` was returning incorrect
address when a region of memory was reserved and later a smaller
subset of that region that didn't start at the beginning of the
reserved region was committed. It was returning the address of
the originally reserved region.

While we have not hit any issues in the main branch, a backport
of this change has caused CI failures on macOS due to the issue.
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.3 Jan 5, 2023
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 5, 2023
@carlossanlop
Copy link
Member

Approved by Tactics (7.0.3).
Signed off by area owners.
No OOB changes needed.
CI is green.
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit c3d4124 into release/7.0 Jan 5, 2023
@carlossanlop carlossanlop deleted the backport/pr-80105-to-release/7.0 branch January 5, 2023 20:15
@ghost ghost locked as resolved and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-PAL-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants