Skip to contentSkip to conversation

ww-mutex performance tests?

DISCUSSION Thomas Hellstrom 4 participants 5 messages Apr 2, 2018 – Apr 5, 2018

lore
Share & tools
lore
#1 lore raw

Op 02-04-18 om 19:49 schreef Thomas Hellstrom:

Quoted 9 lines

Maarten, Daniel,

Do we have any ww-mutex performance tests somewhere that can be used to test the impact of implementation details on various locking scenarios?

Thanks,

/Thomas

The thing that comes to my mind are some of the kms_cursor_legacy tests that have been proven to be sensitive to locking issues before. All subtests with (pipe-*/all-pipes)-(single/forked/torture)-(bo/move) try to do cursor updates as fast as possible, and report how many updates have been done.

~Maarten

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 7 lines · Maarten Lankhorst

Op 02-04-18 om 19:49 schreef Thomas Hellstrom:

Quoted 6 lines

Maarten, Daniel,

Do we have any ww-mutex performance tests somewhere that can be used to test the impact of implementation details on various locking scenarios?

Thanks,

Quoted 8 lines
Quoted 3 lines

/Thomas

The thing that comes to my mind are some of the kms_cursor_legacy tests that have been proven to be sensitive to locking issues before. All subtests with (pipe-*/all-pipes)-(single/forked/torture)-(bo/move) try to do cursor updates as fast as possible, and report how many updates have been done.

~Maarten

Thanks, Maarten.

/Thomas

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to Maarten Lankhorst
Quoted 5 lines · Maarten Lankhorst

Op 02-04-18 om 19:49 schreef Thomas Hellstrom:

Quoted 4 lines

Maarten, Daniel,

Do we have any ww-mutex performance tests somewhere that can be used to test the impact of implementation details on various locking scenarios?

Quoted 7 lines
Quoted 5 lines

Thanks,

/Thomas

The thing that comes to my mind are some of the kms_cursor_legacy tests that have been proven to be sensitive to locking issues before. All subtests with (pipe-*/all-pipes)-(single/forked/torture)-(bo/move) try to do cursor updates as fast as possible, and report how many updates have been done.

AMD folks have a bunch of tests to exercise their CS paths I think, that should be interesting for the multi-ww_mutex/backoff paths, adding Christian et al.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

Am 04.04.2018 um 20:02 schrieb Daniel Vetter:

Quoted 9 lines
Quoted 7 lines · Maarten Lankhorst

Op 02-04-18 om 19:49 schreef Thomas Hellstrom:

Quoted 6 lines

Maarten, Daniel,

Do we have any ww-mutex performance tests somewhere that can be used to test the impact of implementation details on various locking scenarios?

Thanks,

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

/Thomas

The thing that comes to my mind are some of the kms_cursor_legacy tests that have been proven to be sensitive to locking issues before. All subtests with (pipe-*/all-pipes)-(single/forked/torture)-(bo/move) try to do cursor updates as fast as possible, and report how many updates have been done.

AMD folks have a bunch of tests to exercise their CS paths I think, that should be interesting for the multi-ww_mutex/backoff paths, adding Christian et al.

Well not a dedicated test for this, but at least I usually run glmark with thread offloading disabled to measure the command submission overhead.

Except for the usual stuff like copying things from userspace the last time I looked our command submission overhead was dominated by work done for individual BOs.

Not sure how much of that accounts for locking the ww_mutex of the BOs, but I would guess it is quite a bit.

Christian.

Quoted 1 line

-Daniel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel