[pacman-dev] [PATCH] Sync data after writing to the local db
Xavier Chantry
chantry.xavier at gmail.com
Sat Oct 30 09:40:22 EDT 2010
On Sat, Oct 30, 2010 at 3:01 PM, Nagy Gabor <ngaba at bibl.u-szeged.hu> wrote:
>
> Wouldn't this cause a notable slow-down?
>
I thought the issue was rather that the local db entries would be
synced when the actual package files are probably not synced.
But if we sync everything, then it's very likely to become very slow.
I seem to remember that Dan sent a fdatasync patch a while ago, I
don't remember if it affected only the db or both db and files.
Also let's not forget this :
Calling fsync() does not necessarily ensure that the entry in
the directory
containing the file has also reached disk. For that an
explicit fsync() on a
file descriptor for the directory is also needed.
More information about the pacman-dev
mailing list