From: Martin Steigerwald <martin@lichtvoll.de>
To: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: It's broke, Jim. BTRFS mounted read only after corruption errors on Samsung 980 Pro
Date: Fri, 11 Feb 2022 10:45:18 +0100 [thread overview]
Message-ID: <32904791.jyT166o8Jf@ananda> (raw)
In-Reply-To: <20210904233842.GD27656@hungrycats.org>
Zygo Blaxell - 05.09.21, 01:38:42 CET:
> Also, regardless of kernel implementation, the hibernation procedure
> is extremely _invasive_. It necessarily transports every process and
> significant chunks of kernel state to disk and back to memory, and has
> opportunities to corrupt data in transit or at rest.
Well, my hope was that hibernation would be a solved problem. At least
on ThinkPad T14 AMD Gen 1 it isn't. At least not with the kernel I had
in use back then.
I did not dare to test again, nowadays running 5.17-rc3. Cause if the
price for a while test is corruption of BTRFS, I do not really look
forward to it.
The only laptop where hibernation really works without any issues I
currently have is a ThinkPad T520 (Intel Sandybridge). It also works on
X260 and T560. However there starting with kernel 5.16 it does not
automatically switch off after writing the hibernation image. With 5.15
and prior it switched off except after the initial boot. It switched off
automatically on the second hibernation cycle.
> > > Start a memory tester running (e.g. 'memtester' or '7z b 9999
> > > -md=xxM' where xx is large enough to allocate most of the free
> > > RAM), do hibernation and resume, and see if the memory tester
> > > reports failure after resume.
> >
> > I may still do this. However I already run the UEFI Lenovo
> > Diagnostic
> > tool and had it do a memory test. It appears to be fine. I did the
> > quick test but then also ran a good part, but not all of a several
> > hour long test. No issues.
>
> The environment might be different for a stand-alone memory tester
> compared to one that can run on Linux alongside a production workload.
> e.g. if a bus component is failing due to heat stress, that failure
> might not be triggered in the standalone case where the failing bus
> componenet is inactive, but will be triggered under a full system
> load where the failing component is active. Similarly bugs in the
> Linux kernel itself, or interactions between kernel and firmware,
> will not be visible with a standalone test.
>
> On the other hand, if the problem _is_ a RAM component failure, a
> standalone test will verify it's that and nothing else.
What I can say so far:
If I avoid hibernation, then all is fine. Starting with kernel 5.16 the
Windows based deeper standby that usually worked with 5.15 and prior
does not reliably work anymore, so I switched the BIOS back to using the
one for Linux again.
Really would love to use hibernation again, but so it is.
At least I am pretty confident it is no BTRFS issue, cause I had no
corruption issue again after avoiding hibernation. And hibernation with
BTRFS works just fine on T520.
Best,
--
Martin
next prev parent reply other threads:[~2022-02-11 9:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-22 11:14 It's broke, Jim. BTRFS mounted read only after corruption errors on Samsung 980 Pro Martin Steigerwald
2021-08-26 8:17 ` Martin Steigerwald
2021-08-30 4:45 ` Zygo Blaxell
2021-09-04 13:10 ` Martin Steigerwald
2021-09-04 23:38 ` Zygo Blaxell
2022-02-11 9:45 ` Martin Steigerwald [this message]
2021-08-26 10:44 ` Martin Steigerwald
2021-08-26 12:39 ` 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=32904791.jyT166o8Jf@ananda \
--to=martin@lichtvoll.de \
--cc=ce3g8jdj@umail.furryterror.org \
--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