Closed Bug 1537781 Opened 5 years ago Closed 5 years ago

Trailing guard pages for normal allocations

Categories

(Core :: Memory Allocator, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: gcp, Assigned: gcp)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 4 obsolete files)

+++ This bug was initially created as a clone of Bug #1529922 +++

Split off from bug 1446040. Trailing guard pages for huge allocations were done in the first patch, this adds them for normal allocations.

I'm cleaning all codepaths to take the COMMIT/DECOMMIT paths, and while I was wondering why we weren't doing this before, I noticed this comment:
https://github.com/jemalloc/jemalloc/issues/261#issuecomment-137308537

Which seems to imply glandium has tested this on macOS already.

Depends on D21566

Depends on D21565

Assignee: nobody → gpascutto

So, the only worrisome part is an ASAN failure, but IIRC, ASAN builds don't use malloc?!

Depends on: 1542290
Attachment #9052915 - Attachment is obsolete: true
Attachment #9052924 - Attachment is obsolete: true
Talos for only guarding 1 page per chunk, so this bug but with the dependency on bug 1542290 removed.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2abc01bd9cfe7a8d8a78ec27a6d6b8e0e9edc3f5

Talos for only guarding 1 page per chunk, so this bug but with the dependency on bug 1542290 removed.

As expected, this is mostly a wash.

Attachment #9052925 - Attachment is obsolete: true
Attachment #9057597 - Attachment is obsolete: true
Pushed by gpascutto@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dd542aa67434
Trailing guard pages for normal allocations. r=glandium
Pushed by gpascutto@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a92af28d8e1
Test for trailing guard pages for normal allocations. r=glandium
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68

Hi :gcp, look like your patch indeed came with this improvement:
== Change summary for alert #21621 (as of Thu, 27 Jun 2019 04:15:05 GMT) ==

Improvements:

5% Resident Memory linux64-shippable opt 667,984,142.65 -> 633,197,812.91
5% Resident Memory linux64-shippable opt 664,312,554.01 -> 631,185,026.74

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=21621

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: