Bug 258978 - Enable Web process cache on iOS
Summary: Enable Web process cache on iOS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-07 08:00 PDT by Per Arne Vollan
Modified: 2023-07-24 15:49 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2023-07-07 08:00:26 PDT
Enable the Web process cache on iOS by addressing an issue where the physical memory size in GB is reported as zero, causing the process cache capacity to be set to zero. This is because the jetsam limit is taken into consideration in this computation on iOS. This patch adds a function that returns the memory size without considering the jetsam limit of the calling process. Additionally, when a cached WebContent process is suspended, we should not release the memory immediately, since keeping this memory is a speedup when the cached process is being used again. This change is a speedup on page load benchmarks.
Comment 1 Radar WebKit Bug Importer 2023-07-07 08:00:44 PDT
<rdar://problem/111908431>
Comment 2 Per Arne Vollan 2023-07-07 08:03:37 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15633
Comment 3 EWS 2023-07-24 15:49:35 PDT
Committed 266267@main (7d015b7c0f7a): <https://commits.webkit.org/266267@main>

Reviewed commits have been landed. Closing PR #15633 and removing active labels.