[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
P.S. client-side vsync isn't just a good idea that improves performance on non-buggy drivers [2], but apparently also the norm. It is the design used by gtk and clutter too. I had no idea it was so common till recently. If you disable client-side vsync in Mir then you take latency backwards [1], and take rendering performance (on mature drivers) backwards [2] [1] https://docs.google.com/spreadsheets/d/1RbTVDbx04ohkF4-md3wAlgmxbSI1DttstnT6xdcXhZQ/pubchart?oid=1566479835&format=interactive [2] https://bugs.launchpad.net/mir/+bug/1388490 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: Opinion Status in Mir 0.26 series: Opinion Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
Alberto: I think what I was recommending in that last comment is to just not run eglplasma on dragaonboard. It's a poor demo if the best it can get is 15FPS (you just never noticed it was so low). Change your demos to use egltriangle (fullscreen to get bypass) and you won't hit this bug any more, plus you should get 60 FPS. Long term, you should push for a driver fix (bug 1211700) to resolve it. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: Opinion Status in Mir 0.26 series: Opinion Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
OK, I am done with this for now. Here are two relevant branches to try: lp:~vanvugt/mir/testfix-1211700 Proof of concept workaround which also solves bug 1211700 in some cases. Not good enough to release though. lp:~vanvugt/mir/workaround-1665802 A proper workaround that should work nicely if you set the environment variable it introduces. I'm proposing that neither of those should land though. This bug is a perfect storm of four things that are not Mir bugs: 1. Poor quality driver that lacks GPU fair scheduling (bug 1211700). 2. Slow mobile GPU. 3. Choice of an over-the-top demo 'eglplasma' that the GPU can only run at 15 FPS at best. 4. Accidentally failing to trigger fullscreen bypass (which halves the performance potential of the system). You can fix #3 and #4 by simply not choosing eglplasma on this low-end configuration, and by ensuring that demos are always fullscreen bypassed. Then you can have smooth fullscreen demos, and no workarounds need ever land. ** Changed in: mir Status: Won't Fix => Opinion ** Changed in: mir/0.26 Status: Won't Fix => Opinion -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: Opinion Status in Mir 0.26 series: Opinion Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
** Changed in: mir Milestone: 1.0.0 => None ** Changed in: mir Status: In Progress => Won't Fix ** Changed in: mir/0.26 Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: Opinion Status in Mir 0.26 series: Opinion Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
** Branch linked: lp:~vanvugt/mir/testfix-1211700 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
** Changed in: mir Status: Fix Committed => In Progress -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
Fix committed into lp:mir at revision 4072, scheduled for release in mir, milestone 1.0.0 ** Changed in: mir Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: Fix Committed Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
** Branch linked: lp:~vanvugt/mir/workaround-1665802 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
** Branch linked: lp:~vanvugt/mir/schedule-nonblocking -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
Alberto, Please try this experiment: lp:~vanvugt/mir/gpu-load-balance It improves the situation on radeon quite a lot (from below 0.1FPS to 20-40FPS). -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
** Branch linked: lp:~vanvugt/mir/gpu-load-balance -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1665802] Re: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard
Dropped priority. Now we understand this problem, it's just going to be a series of workarounds in Mir, and Chris suggested another good one in the hangout today that might also fix it for radeon and nouveau (bug 1211700). Plus we have some workarounds proven already in comment #20. Long term we need a proper fix in the driver, so it's a Mesa bug. A solution in theory already exists: https://www.usenix.org/legacy/event/atc11/tech/final_files/Kato.pdf ** Changed in: mir/0.26 Milestone: 0.26.2 => None ** Also affects: mesa (Ubuntu) Importance: Undecided Status: New ** Changed in: mesa (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mesa in Ubuntu. https://bugs.launchpad.net/bugs/1665802 Title: [regression] mir_demo_client_eglplasma results in 100% cpu and hardly any updates in dragonboard Status in Mir: In Progress Status in Mir 0.26 series: Triaged Status in mesa package in Ubuntu: New Bug description: On a dragonboard 410c, With Mir 0.25 mir_demo_client_eglplasma renders steadily at 15FPS and with low cpu usage. With mir 0.26.1, the process takes 100% cpu (according to top) and frames hardly update on screen, but the client performance is 60-27FPS. To replicate: mir_demo_server --arw-file --launch-client mir_demo_client_eglplasma To manage notifications about this bug go to: https://bugs.launchpad.net/mir/+bug/1665802/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp