Bug 258978

Summary: Enable Web process cache on iOS
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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.