Hi!

On Sat, 2011-07-30 at 08:15:38 -0400, Nicolas Stransky wrote:
> On 07/30/2011 04:02 AM, Raphael Hertzog wrote:
> >On Fri, 29 Jul 2011, Nicolas STRANSKY wrote:
> >>Simplistic tests involving "tar" show that the disk is able to produce
> >>throughputs that are about 30x higher than the ones I observe when dpkg
> >>is unpacking files (60MB/s vs. 2MB/s). I have tried a couple
> >>workarounds but they didn't change anything: using dpkg with
> >>--force-unsafe-io or mounting / with nodatacow.
> >
> >Did you try running your apt-get under eatmydata? If it solves your issue
> >it means the slowness is the result of the fsync() that dpkg is doing.
> >And I heard it multiple times that btrfs was not very efficient when you
> >are doing lots of fsync() but I am afraid there's not much we can do to
> >improve this if we want to keep the reliabily of dpkg in general.
> 
> I didn't know before about eatmydata but it indeed completely solves
> my issue! dist-upgrades are like a hundred times faster. So I guess
> the problem is really that the multiple fsync() in dpkg won't work
> efficiently with btrfs, which is a shame! It makes it almost
> impossible to use btrfs on / with Debian.

Well I've said this before in the previous discussions about the
fsync() issues; the dpkg database is sacred and it must never get
damaged, providing an interface in dpkg to even allow this possibility
is not acceptable, but then if the users use something like eatmydata
then they are on their own.

In the btrfs specific case, I think we should either close or wontfix
this bug report (we already have enother one stating we are not going
to remove the db fsync()s), and you should probably take it with the
btrfs developers, as it seems extremely bad the file system degrades
so much when confronted with several fsync()s. They should probably
look at implementing the sync_file_range() interfaces for it if they
haven't yet, or checking why they are not efficient.

regards,
guillem




-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to