Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936537 - sys-kernel/gentoo-sources-6.10.0 causes freezes on heavy writes to filesystem
Summary: sys-kernel/gentoo-sources-6.10.0 causes freezes on heavy writes to filesystem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 08:24 UTC by Miroslav Šulc
Modified: 2024-09-07 19:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2024-07-23 08:24:14 UTC
i didn't get anywhere close to finding the real source, but here is my observation:

* system stops to be responsive when heavy writes are perfomed (like when unpacking files during emerge of sci-libs/vtk)
* system stops to be responsive during compilation of sci-libs/vtk even with MAKEOPTS=-j1

for some packages i did not encounter this behavior, but with sci-libs/vtk it's a sure bet.

the underlying system is btrfs raid1 on nvme disks.

with gentoo-sources-6.9.9 there is no such issue.
Comment 1 Miroslav Šulc gentoo-dev 2024-07-25 09:16:01 UTC
it just happened to me with 6.10.1 too, with two compilations running in parallel (freecad and tomcat), the system became unresponsive.
Comment 2 Mike Pagano gentoo-dev 2024-07-25 12:42:33 UTC
Can you do a git bisect between the last working kernel and the first non-working kernel.
Comment 3 Miroslav Šulc gentoo-dev 2024-07-26 09:37:03 UTC
(In reply to Mike Pagano from comment #2)
> Can you do a git bisect between the last working kernel and the first
> non-working kernel.

i'll try to find some time but it's hard these days. anyway, the 6.9.x branch seems to not be affected, now on 6.9.11 and no issues so far.

what would be the best way to bisect it? should i just use the vanilla kernel?
Comment 4 Mike Pagano gentoo-dev 2024-07-26 14:02:15 UTC
(In reply to Miroslav Šulc from comment #3)
> (In reply to Mike Pagano from comment #2)
> > Can you do a git bisect between the last working kernel and the first
> > non-working kernel.
> 
> i'll try to find some time but it's hard these days. anyway, the 6.9.x
> branch seems to not be affected, now on 6.9.11 and no issues so far.
> 
> what would be the best way to bisect it? should i just use the vanilla
> kernel?

Stay on 6.9.11, and let me know if it happens again.  Might have been fixed already.
Comment 5 Miroslav Šulc gentoo-dev 2024-07-26 19:35:05 UTC
6.9.11 seems to be fine, i just tried emerging vtk for quite some time and not a sign of any issues, so it seems 6.9.11 is not affected, as well as 6.9.9 was not affected.
Comment 6 Miroslav Šulc gentoo-dev 2024-07-28 07:23:55 UTC
just tried 6.10.2 - still affected
Comment 7 Holger Hoffstätte 2024-07-28 10:45:33 UTC
(In reply to Miroslav Šulc from comment #6)
> just tried 6.10.2 - still affected

Report it to the btrfs mailing list, that's the only way to get meaningful help.
Comment 8 Miroslav Šulc gentoo-dev 2024-07-28 10:58:45 UTC
(In reply to Holger Hoffstätte from comment #7)
> (In reply to Miroslav Šulc from comment #6)
> > just tried 6.10.2 - still affected
> 
> Report it to the btrfs mailing list, that's the only way to get meaningful
> help.

i'm not really sure it's btrfs related. and it's only my guess that heavy writing causes the issue, as i encouter some freezes during unpacking during emerge and also during compilation. that's the part where the system becomes completely unresponsive. but it's usually hard to tell as i can do nothing when the system stops to respond...
Comment 9 Miroslav Šulc gentoo-dev 2024-08-05 21:52:30 UTC
i've been running 6.10.3 for several hours now with some heavy compilations and so far no issue.
Comment 10 Miroslav Šulc gentoo-dev 2024-08-06 09:08:39 UTC
the issue seems not to be fully resolved yet in 6.10.3 but it's already much better.
Comment 13 Mike Pagano gentoo-dev 2024-08-16 22:24:43 UTC
(In reply to Mike Pagano from comment #12)
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/
> ?id=ae1e766f623f7a2a889a0b09eb076dd9a60efbe9

This commit, not yet released in any kernels, is purported to address system freezing/locking up during high IO usage.  Test at your own risk, of course.
Comment 14 Mike Pagano gentoo-dev 2024-09-01 22:36:39 UTC
This patch is is 6.10.7. Please test with that version and let us know if this problem still occurs.
Comment 15 Miroslav Šulc gentoo-dev 2024-09-03 19:28:14 UTC
(In reply to Mike Pagano from comment #14)
> This patch is is 6.10.7. Please test with that version and let us know if
> this problem still occurs.

i did some heavy compilations and so far no issues.
Comment 16 Mike Pagano gentoo-dev 2024-09-07 18:12:36 UTC
Ok, good. Sounds like this is addressed. Please re-open if that turns out to be not the case.
Comment 17 Miroslav Šulc gentoo-dev 2024-09-07 19:54:07 UTC
yeah, it seems to be resolved, no issues since 6.10.7