Conversation
Notices
-
Embed this notice
@twinspin6 when copying large files, gtk based programs freeze
-
Embed this notice
@lucy @twinspin6 Let me guess, Gtk4 and Gtk5?
-
Embed this notice
@lucy @twinspin6 It appears that GNOME developers programmed the foot wrong again and made graphical operations require disk write operations(!), meaning when you have heavy disk I/O, such time sensitive operations get delayed.
GtK2 and GtK3 stuff doesn't really face such kind of issue until you try to browse files.
-
Embed this notice
@lucy @twinspin6 they don't use non-blocking io? Wtf??
-
Embed this notice
@snacks I/O is unfortunately inherently blocking and "non-blocking I/O" is actually polling to check if bytes are available for reading before trying to quickly read (blocking) and move on, or otherwise keep going and try again later and the poll part can end up blocking too.
-
Embed this notice
@lispi314 @snacks Interrupts often love blocking and take too long to return on all hardware;
perf: interrupt took too long (2633 > 2500), lowering kernel.perf_event_max_sample_rate to 75000
-
Embed this notice
@Suiseiseki @snacks Couldn't all sorts of other signals like interrupts (bypassing the need for polling) be involved depending on the specific hardware?
-
Embed this notice
@lispi314 @snacks The problem is electrical signalling - there is no guarantee that electrical operations are going to complete in the wanted time, meaning even with hardware design, there will always be corner cases where some things block.
-
Embed this notice
@Suiseiseki @snacks Interesting. I wonder if it's how they're used that's the issue or just signaling them is itself being a problem.