linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@inwind.it>
To: Martin Steigerwald <Martin@lichtvoll.de>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: speeding up slow btrfs filesystem
Date: Sat, 17 Dec 2011 12:39:04 +0100	[thread overview]
Message-ID: <11417281.pDov3IyVP3@venice> (raw)
In-Reply-To: <201112162053.58332.Martin@lichtvoll.de>

On Friday, 16 December, 2011 20:53:58 Martin Steigerwald wrote:
> > I found a solution, but requires a bit of setup.
> >
> > 
> >
> > The idea is to avoid do perform sync during the package installation.
> > In order to avoid data loss in case of failure, I create a snapshot
> > before the upgrading. If something goes wrong (i.e. a power failure) I
> > rebooot the system from the snapshot. If the installation finish
> > without problem, I flush all the data to the disk and remove the
> > snapshot.
> >
> > 
> >
> > For the detail, see a my old post titled "[RFC] aptitude & BTRFS slow"
> > (2011-10-19)
> 
> Sounds more like a workaround to me than a solution.

Sorry but I strongly disagree.

Aptitude was designed for an ordinary filesystem. Where the only way to have a 
filesystem consistency is to issue a lot of sync for every package. But this 
doesn't prevent to have an half package installed:(think about to an 
"openoffice" upgrade: in case of power failure, you could not have nor the old 
openoffice, nor the new one.
Instead with the snapshot you can always have the old system or the new 
system. No half packages

With BTRFS, I can say that the workaround[*] is using the sync and not the 
snapshot

The true is that BTRFS is different from ext4 (or ext3, xfs....). You can use 
BTRFS like ext4 and you will find a lot of regression like this. 

BTRFS is very different from an ordinary filesystem, and you have to change some 
behaviour to take advantages with is peculiarities.

Using the snapshot during an upgrade open a lot of possibility which are not 
allowed with EXT4. With snapshot you can always go back if during an upgrade 
if something goes wrong (like strange packages dependencies). Or you can have 
the previous configuration to go back in case of trouble.



[*] Of course this is due to the fact that the most part of the filesystem is 
like ext4. Supporting BTRFS could be not the highest priority.


-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

  parent reply	other threads:[~2011-12-17 11:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 17:51 speeding up slow btrfs filesystem Martin Steigerwald
2011-12-16 17:54 ` Martin Steigerwald
2011-12-16 18:38   ` Goffredo Baroncelli
2011-12-16 19:53     ` Martin Steigerwald
2011-12-16 20:58       ` Martin Steigerwald
2011-12-17  7:03         ` Sergei Trofimovich
2011-12-17 11:09           ` Martin Steigerwald
2011-12-17 11:26             ` Hugo Mills
2011-12-17 11:38               ` Martin Steigerwald
2011-12-17 11:45                 ` Hugo Mills
2011-12-17 11:57                   ` Martin Steigerwald
2011-12-17 16:35                   ` Martin Steigerwald
2011-12-17 17:27                     ` Hugo Mills
2011-12-17 11:39       ` Goffredo Baroncelli [this message]
2011-12-18 18:41     ` Andrea Gelmini
2011-12-20 19:46       ` Goffredo Baroncelli
2011-12-17 11:11 ` Chris Samuel
2011-12-17 12:00   ` Martin Steigerwald
2011-12-17 12:42     ` David McBride
2011-12-17 16:14       ` Martin Steigerwald
  -- strict thread matches above, loose matches on Subject: below --
2011-12-17 11:54 Martin Steigerwald
2011-12-17 12:02 ` Martin Steigerwald
2011-12-17 12:50 ` Goffredo Baroncelli
2011-12-17 16:10   ` Martin Steigerwald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11417281.pDov3IyVP3@venice \
    --to=kreijack@inwind.it \
    --cc=Martin@lichtvoll.de \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).