On Sat, 27 Nov 2010, Jonathan Nieder wrote:
> > c) extract(a.dpkg-new);
> > extract(b.dpkg-new);
> > extract(c.dpkg-new);
> > fsync(a.dpkg-new);
> > fsync(b.dpkg-new);
> > fsync(c.dpkg-new);
> > rename(a.dpkg-new, a);
> > rename(b.dpkg-new, b);
> > rename(c.dpkg-new, c);
> >
> >
> > (c) will perform the best for most file systems, including ext4.
> [...]
> > I am guessing you are doing (a) today --- am I right? (c) or (d)
> > would be best.
>
> We are doing (c) today.
Actually we are doing this:
extract(a.dpkg-new);
extract(b.dpkg-new);
extract(c.dpkg-new);
fsync(a.dpkg-new);
rename(a.dpkg-new, a);
fsync(b.dpkg-new);
rename(b.dpkg-new, b);
fsync(c.dpkg-new);
rename(c.dpkg-new, c);
But as I said, I tried (c) and it's not performing noticably better than
the above.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]