Commit 6b770d3
committed
drm/v3d: Only use Big/Super Pages if BO >= 512KB
Considering that the Raspberry Pi is an embedded device with limited
memory, memory fragmentation is an important aspect for performance.
Using Big/Super Pages has clear benefits when it comes to reducing TLB
misses, but also has an impact on memory fragmentation as we need to
allocate aligned contiguous memory, increasing compaction pressure and
memory waste for small BOs.
As Big/Super Pages only have benefits for larger BOs, create a minimum
BO size to use the THP partition. After testing different thresholds,
512KB provides the most balanced results with clear improvements and no
significant regressions. This means that Big/Super Pages will only be
used for BOs of at least 512KB.
Signed-off-by: Maíra Canal <mcanal@igalia.com>1 parent 51aeb87 commit 6b770d3
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
0 commit comments