Re: Bug#605009: serious performance regression with ext4
- To: Jonathan Nieder <jrnieder@gmail.com>, 605009@bugs.debian.org
- Cc: Ted Ts'o <tytso@mit.edu>, Michael Biebl <biebl@debian.org>, tytso@debian.org, debian-devel@lists.debian.org, debian-kernel@lists.debian.org, debian-boot@lists.debian.org
- Subject: Re: Bug#605009: serious performance regression with ext4
- From: Raphael Hertzog <hertzog@debian.org>
- Date: Sat, 27 Nov 2010 09:53:46 +0100
- Message-id: <[🔎] 20101127085346.GD14011@rivendell.home.ouaza.com>
- Mail-followup-to: Jonathan Nieder <jrnieder@gmail.com>, 605009@bugs.debian.org, Ted Ts'o <tytso@mit.edu>, Michael Biebl <biebl@debian.org>, tytso@debian.org, debian-devel@lists.debian.org, debian-kernel@lists.debian.org, debian-boot@lists.debian.org
- In-reply-to: <[🔎] 20101127075831.GC24433@burratino>
- References: <20101126093257.23480.86900.reportbug@pluto.milchstrasse.xx> <[🔎] 20101126145327.GB19399@rivendell.home.ouaza.com> <[🔎] 20101126215254.GJ2767@thunk.org> <[🔎] 20101127075831.GC24433@burratino>
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)
Reply to: