| Summary: | Can bmalloc work on systems with 64 kB pages? | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | bmalloc | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | Basuke.Suzuki, fpizlo, ggaren, jz_xue, mcatanzaro, msaboff, saam, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=209236 https://bugs.webkit.org/show_bug.cgi?id=217989 |
||
| Bug Depends on: | |||
| Bug Blocks: | 209670 | ||
|
Description
Michael Catanzaro
2020-03-20 13:35:56 PDT
If you change these values, please do not change them in the existing architectures. We are tuning performance / memory-consumption heavily on the current numbers. I don't think that's right, since malloc is already tuned to 16kb pages. It's not obvious setting "smallPageSize" to 64kb actually makes bmalloc better (In reply to Saam Barati from comment #2) > I don't think that's right, since malloc is already tuned to 16kb pages. > It's not obvious setting "smallPageSize" to 64kb actually makes bmalloc > better physical page size and smallPageSize are different concept, no? https://bugs.webkit.org/attachment.cgi?id=274931&action=review " smallPageSize is now unrelated to the OS's page size -- it just reflects the optimal unit of memory to recycle between small objects." Your question is a more general one: does bmalloc work with 64kb pages. Why wouldn’t it? I’d guess the only thing needing to be changed is “configSizeToProtect” in Gigacage In the previous bug where you reference this bug, you say this is a bmalloc issue. What exactly is the issue? Saam left some additional hints here: https://bugs.webkit.org/show_bug.cgi?id=209670#c22 *** Bug 200566 has been marked as a duplicate of this bug. *** Carlos Lopez found there is also ConfigAlignment and another ConfigSizeToProtect in mbmalloc.cpp. |