<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>And that's the reason I added the pool: to avoid the cost of constantly faulting pages into new shm areas. I profiled window resizing under Weston and got the same result.<br><br>Kristian</div><div><br>On Mar 14, 2016, at 7:20 AM, gtk+ (GNOME Bugzilla) <<a href="mailto:bugzilla@gnome.org">bugzilla@gnome.org</a>> wrote:<br><br></div><blockquote type="cite"><div>
<base href="https://bugzilla.gnome.org/">
<p>
</p><div>
<b><a class="bz_bug_link
bz_status_NEW " title="NEW - drawing performance worse than X" href="https://bugzilla.gnome.org/show_bug.cgi?id=763350#c17">Comment # 17</a>
on <a class="bz_bug_link
bz_status_NEW " title="NEW - drawing performance worse than X" href="https://bugzilla.gnome.org/show_bug.cgi?id=763350">bug 763350</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=rstrode%40redhat.com" title="Ray Strode [halfline] <rstrode@redhat.com>"> <span class="fn">Ray Strode [halfline]</span></a>
</span></b>
<pre>(In reply to Christian Hergert from <a href="show_bug.cgi?id=763350#c9">comment #9</a>)
<span class="quote">> I was curious about the raw memfd costs, so put together an informative test:
>
> - memfd_create()
> - ftruncate(2*page_size)
> - mmap()
> - page fault all pages
> - munmap()
> - close()
>
> The cost for all of the above is about .06 msec. So not really that bad.
> Interestingly, half of the time is spent on close()!</span>
are you accounting for faulting in the compositor too? if you run,
$ ./test-panel &
$ sysprof-cli -p $! sysprof-output
then open and close the panels like a billion times, then switch back to the
terminal and hit ctrl-c
then run
$ sysprof sysprof-output
what's at the top of your profile ? I see most of the time spent in
sse2_fill/page_fault/shmem_fault, but for me the animations are 60 fps anyway.
I'm curious what your sysprof profile looks like.</pre>
</div>
<p></p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>wayland-bugs mailing list</span><br><span><a href="mailto:wayland-bugs@lists.freedesktop.org">wayland-bugs@lists.freedesktop.org</a></span><br><span><a href="https://lists.freedesktop.org/mailman/listinfo/wayland-bugs">https://lists.freedesktop.org/mailman/listinfo/wayland-bugs</a></span><br></div></blockquote></body></html>