On Mon, May 22, 2017 at 5:57 PM, Marc MERLIN <m...@merlins.org> wrote: > On Mon, May 22, 2017 at 05:26:25PM -0600, Chris Murphy wrote: >> On Mon, May 22, 2017 at 10:31 AM, Marc MERLIN <m...@merlins.org> wrote: >> >> > >> > I already have 24GB of RAM in that machine, adding more for the real >> > fsck repair to run, is going to be difficult and ndb would take days I >> > guess (then again I don't have a machine with 32 or 48 or 64GB of RAM >> > anyway). >> >> If you can acquire an SSD, you can give the system a bunch of swap, >> and at least then hopefully the check repair can complete. Yes it'll >> be slower than with real RAM but it's not nearly as bad as you might >> think it'd be, based on HDD based swap. > > Oh, swap will work, you're sure? > I already have an SSD, if that's good enough, I can give it a shot.
Yeah although I have no idea how much swap is needed for it to succeed. I'm not sure what the relationship is to fs metadata chunk size to btrfs check RAM requirement is; but if it wants all of the metadata in RAM, then whatever btrfs fi us shows you for metadata may be a guide (?) for how much memory it's going to want. Another possibility is zswap, which still requires a backing device, but it might be able to limit how much swap to disk is needed if the data to swap out is highly compressible. *shrug* -- Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html