Commit 9a12fb5
MemoryPressure: tune memory pressure settings for rapid mem usage changes
When playing an asset with video, frequent seek/jump operations within
a short period may cause rapid memory increases. The current pressure
settings may not allow (enough) memory release in time to avoid an
app running in a container to be killed due it reaching the memory
limits. To allow sufficient, in time, memory release, the release
needs to happen with the "synchrounous" flag set to true, allowing
full garbage collection cycle when reaching critical limits.
Furthermore, the critical threshold needs to be lowered as well
considering that the release is not instantaneous and on embedded
devices the 95% original threshold does not allow enough room for
mem release on apps with lower allowed memory usage limits.1 parent 6706256 commit 9a12fb5
2 files changed
Lines changed: 13 additions & 1 deletion
File tree
- Source
- WTF/wtf/unix
- WebKit/UIProcess/linux
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
75 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments