GNOME Bugzilla – Bug 774988
Stutter every 10 seconds when fsyncing .goutputstream-XXXXX file
Last modified: 2017-06-23 08:22:07 UTC
While playing a video Totem writes to the file $HOME/.config/totem/.goutputstream-XXXX every 10 seconds. This apparently happens in the main loop. Unfortunately the file gets also fsynced, which is a slow operation and causes stutter of the video. On my system the calls to fsync take about 50ms most of the times, but sometimes it's as high as 300ms (which is very noticeable). I'm using version 3.22.0 on Fedora 25. A stack backtrace is attached.
Created attachment 340669 [details] backtrace
Created attachment 340670 [details] backtrace
The problem is caused by the usage of g_file_replace (https://developer.gnome.org/gio/stable/GFile.html#g-file-replace) in the function totem_pl_parser_save_xspf (https://git.gnome.org/browse/totem-pl-parser/tree/plparse/totem-pl-parser-xspf.c#n103). The temporary file gets fsynced before it's moved to the target location.
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 733780 ***