GNOME Bugzilla – Bug 635142
[PATCH] use asynchronous i/o for vtefilestream
Last modified: 2021-06-10 14:28:29 UTC
Because really, why should writing to the unlinked scrollback file block all your terminals?
Created attachment 174748 [details] [review] use async i/o
Thanks! I'll review tomorrow. Do note however that the patch only fixes the "Save contents" menu option. The scrollback stuff is still synchronous. Fixing that is more involved but definitely something worth looking into. We should first add a buffering vtestream though so we don't do i/o for every single line going into the scrollback buffer.
Hm, I'm pretty sure when I broke into gnome-terminal when it was hanging writing scrollback, this was where it was.
That's impossible. Plus, we can't do asynch writing without locking the data down first. It's possible, but more complicated than your patch. I *wish* it was that simple :)
(In reply to comment #4) > That's impossible. Oops, you're right - it's going through file_stream_append, and xwrite.
So what was the situation that made you start the debugger? What's your /tmp mounted on?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vte/-/issues/1856.