Hi!

I've added a small test utility for the TTM buffer object functionality in drm/tests/ttmtest. It benchmarks various simple buffer operations like binding, writing, reading in some various memory types / regions: system, GTT and cache coherent GTT. It's not really complete and one could for example add options for buffer size etc.

Typical output for a 4MB buffer is attached. Experimenting with the buffer size will show bottlenecks,
for example the binding / unbinding latency when binding to uncached GTT.

It's also an example of how a small general-purpose DRI client (XvMC etc.) can be made. In the end, the DRI client protocol code should probably end up in a separate lib.

/Thomas

Buffer size 4194304 bytes
System memory timings ********************************
Creation took                  136169 ticks
Mapping took                   119251 ticks
Writing took                 29674128 ticks
Writing Again took           11932327 ticks
Reading took                  5397502 ticks
Unmapping took                  78364 ticks

TT Memory timings ************************************
Moving to TT took             3122768 ticks
Mapping in TT took              28556 ticks
Writing to TT took            6250244 ticks
Writing again to TT took      4879347 ticks
Reading from TT took        591188466 ticks
Moving to system took         2149862 ticks

Cached TT Memory timings *****************************
Moving to CTT took             298265 ticks
Mapping in CTT took             16896 ticks
Writing to CTT took          14765135 ticks
Re-writing to CTT took       12086448 ticks
Reading from CTT took         5202604 ticks


Terminating normally
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to