Skip to contentSkip to conversation

BO size distribution

DISCUSSION Eric Anholt 1 participant 1 message Jun 19, 2010

lore
Share & tools
lore
#0 lore raw

Keithp was asking me about how many buffers of what sizes we create when I was working on the libdrm changes for memory management, so I figured I'd post some numbers I took. Here's firefox-talos-gfx under cairo-gl:

4kb: 123163
8kb: 7247
12kb: 21319
16kb: 69737
24kb: 291
32kb: 14
40kb: 441
44kb: 1
52kb: 3
220kb: 6
2528kb: 365
2624kb: 3
2944kb: 154
2976kb: 445
3072kb: 266
4096kb: 1

Note the lovely 3MB buffers that gave us big wins with the libdrm buckets. Constant state objects cause some of the 4kb. 16KB is mostly batchbuffers and VBOs. Now here's ET:QW (not even a full run of the ~30 second demo I use!):

4kb: 98718
8kb: 3801
12kb: 2023
16kb: 27568
20kb: 340
24kb: 1642
28kb: 912
32kb: 967
36kb: 23
40kb: 350
44kb: 131
48kb: 46
52kb: 170
56kb: 32
60kb: 10
64kb: 14
68kb: 8
72kb: 7
76kb: 6
80kb: 4
84kb: 5
88kb: 2
92kb: 5
96kb: 20
100kb: 102
104kb: 12
108kb: 1
112kb: 2
116kb: 1
120kb: 4
124kb: 1
128kb: 24282
132kb: 1
136kb: 3
140kb: 2
160kb: 9
192kb: 2
196kb: 22
200kb: 2
208kb: 4
216kb: 2
228kb: 1
236kb: 1
240kb: 1
208kb: 4
216kb: 2
228kb: 1
236kb: 1
240kb: 1
256kb: 2
356kb: 54
384kb: 2
388kb: 11
432kb: 1
512kb: 2
644kb: 1
772kb: 4
784kb: 1
1024kb: 3
1200kb: 2
1536kb: 2
1544kb: 3
2048kb: 4
3072kb: 3
3080kb: 5
3088kb: 3
6144kb: 1

128kb is the size of ETQW's VBOs. Sadly, it likes to subdata in changes to its VBO while it's using it. If only it had known about ARB_map_buffer_range, it could save a whole lot of those small-page allocations that we use to blit VBO changes in.

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx