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

add a compile-time option to enable 4k page sizes (#52229) #111

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

d-netto
Copy link
Member

@d-netto d-netto commented Nov 28, 2023

PR Description

Backports upstream patch to enable 4k page sizes as a build-time option.

Checklist

Requirements for merging:

@github-actions github-actions bot added port-to-v1.10 This change should apply to Julia v1.10 builds port-to-master This change should apply to all future Julia builds port-to-v1.9 This change should apply to Julia v1.9 builds labels Nov 28, 2023
@d-netto d-netto removed the port-to-master This change should apply to all future Julia builds label Nov 28, 2023
@d-netto d-netto requested a review from kpamnany November 28, 2023 23:50
@d-netto d-netto force-pushed the dcn-4k-pg-size branch 5 times, most recently from 39f1764 to f02b12b Compare December 5, 2023 17:11
We're suffering from heavy fragmentation in some of our workloads.

Add a build-time option to enable 4k pages (instead of 16k) in the GC,
since that improves memory utilization considerably for us.

Drawback is that this may increase the number of `madvise` system calls
in the sweeping phase by a factor of 4, but concurrent page sweeping
should help with some of that.
@d-netto
Copy link
Member Author

d-netto commented Dec 5, 2023

@kpamnany: could you approve it so that we have the basic functionality in place?

Actually flipping the flag to enable it would be another PR, as usual.

@d-netto d-netto merged commit fd60a08 into v1.9.2+RAI Dec 5, 2023
1 check passed
@d-netto d-netto deleted the dcn-4k-pg-size branch December 5, 2023 17:55
@Drvi Drvi added port-to-v1.9 This change should apply to Julia v1.9 builds and removed port-to-v1.10 This change should apply to Julia v1.10 builds port-to-v1.9 This change should apply to Julia v1.9 builds labels Dec 7, 2023
Drvi pushed a commit that referenced this pull request Dec 7, 2023
…111)

We're suffering from heavy fragmentation in some of our workloads.

Add a build-time option to enable 4k pages (instead of 16k) in the GC,
since that improves memory utilization considerably for us.

Drawback is that this may increase the number of `madvise` system calls
in the sweeping phase by a factor of 4, but concurrent page sweeping
should help with some of that.
@d-netto d-netto removed the port-to-v1.9 This change should apply to Julia v1.9 builds label Jan 2, 2024
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.

3 participants