Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Tracy profiler showing the duration distribution of dropping shm pools. ~1 ms is taken by munmap() and the remaining ~6 ms is taken by close() of the file descriptor.

Download link

https://files.mastodon.online/media_attachments/files/111/044/860/698/916/606/original/f02ea758872156ed.png

Notices where this attachment appears

  1. Ivan Molodetskikh (yalter@mastodon.online)'s status on Wednesday, 01-Nov-2023 08:35:05 UTC Ivan Molodetskikh Ivan Molodetskikh
    in reply to

    Today in Wayland compositor profiling! Turns out closing a shm pool file descriptor can result in a fat stall of up to like 6 ms with the kernel waiting on some spinlocks. Which is extra fun when you realize it covers the entire frame budget of your 165 Hz screen, and some clients are sometimes doing it every frame!

    I'm trying a "dropping thread" workaround where the fd closing happens on a separate thread. Appears to work at the first glance.

    In conversation Wednesday, 01-Nov-2023 08:35:05 UTC from mastodon.online permalink
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.