Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2765999rdb; Fri, 18 Aug 2023 09:49:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHo6aFhBoZg4QH/UD0Ba9FphIZEp8cMAjAvukscbb284wVoYOYnLYGojq9KOK84a1cVldaD X-Received: by 2002:a17:906:7394:b0:99b:d0dc:7e68 with SMTP id f20-20020a170906739400b0099bd0dc7e68mr2625392ejl.72.1692377386402; Fri, 18 Aug 2023 09:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692377386; cv=none; d=google.com; s=arc-20160816; b=In6wNriHa13U1oo+BnuU5XvUZLobRrVOy4OclUjCCNdV2RDGr8kDchkansDqJ0m1sP G/ad8ZPRdU/Gnj5cN5Eg1AESOkadBD6F673hKHgWd37uXFC0QNHNONCVKl6BrYFcGkEF 5faOE8r8uxGHogkOJsKREQGkrNGwP2k0NmWu4tFKa1ZQUKBnO9cIExAv2Ho5BpZP/kss WWW/+zOeCvxBhBev5DwGytH/DWGb3PZUme6WwCqmjtv/Bl8O+CWy7RerHp2H68B55ZiJ 9E4ki0ZCt1uzGTsr6cYCUDdtsMsH5Xyn6/eHCUN58CAPcSoo3npxSkU1T0xt8jf9OCzn sNvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=p7r3uREoQh2baDnpVSadnAlYXwW8BFeYAnWiNEnk194=; fh=v6jMG0ylrbU8fdxsXha2ZPygjObOc9XG5/n/pSjSc80=; b=cIriPtxs7uaYg8WdmhHFicay/N0hTgKCm5VsnX+/8oMkxVHw6RamHMVy3zMFRu0hpW y8jr9ypRCC7B0KLUzOJ2oCfIilP7mu2GJGCWc7C2wy6LZjAR4i1urcVTYpD6vv04B9cw Vk8VI4+RhqYUv8PBq5DYJbKNtKHHtnqdG5qduSxTo+J3PtTd251VgyWFdGjL8CABZ/go UQZDhoQMMI8VYMJDUhNCruJLzodb+eVyOQ9jznM7TAPNjBMoDez/wlHOHSfoyV/YCgeK +tyWa4WYOhmHBFWnxu7gcP+7nORK/hSpSFZQarakSleAe7hJ2FFMyBwsLrdnZ+vgEaPO 6jlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=fH7FUKI3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a170906828200b0099290e2c162si1489719ejx.444.2023.08.18.09.49.19; Fri, 18 Aug 2023 09:49:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=fH7FUKI3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240869AbjHPAn6 (ORCPT + 99 others); Tue, 15 Aug 2023 20:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240860AbjHPAn5 (ORCPT ); Tue, 15 Aug 2023 20:43:57 -0400 Received: from mx.treblig.org (unknown [IPv6:2a00:1098:5b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0467199B; Tue, 15 Aug 2023 17:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID :Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=p7r3uREoQh2baDnpVSadnAlYXwW8BFeYAnWiNEnk194=; b=fH7FUKI3yL1QXeZHZyf70tvtyb rdSNCIJCCtaFl1qKxWGADDgz1WE3vjmcNhhsv0L4ajhQST6t7Cox9kGoq/4OpfSpd3SX4pIpNCbt5 253G9qLd721Lw2on8F/+SyLNtpQXd/aJZxb8wUqa387LXQRl68a5qeubFZCN9GRXyz9VfHX2G3bKk SBlSi7dhQpcj9IzIKeANCGNCTZPOyWoa/WKQg4QraHXrYX0bKS4swuRZX7RTmsTTcrdFdBmnl1ECK 8RRtAKc0N2ifAvEMqN0LGIWWR/zVKXR4YJQAIn9SQXJyISilCxX1kQjtZHQ7oM0qjx+eqiJdwq2jx emUB2bAg==; Received: from dg by mx.treblig.org with local (Exim 4.94.2) (envelope-from ) id 1qW4dd-0079SV-B5; Wed, 16 Aug 2023 00:43:53 +0000 Date: Wed, 16 Aug 2023 00:43:53 +0000 From: "Dr. David Alan Gilbert" To: Carlos Carvalho Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: 6.5.0rc5 fs hang - ext4? raid? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/5.10.0-23-amd64 (x86_64) X-Uptime: 00:43:19 up 40 days, 10:14, 2 users, load average: 0.01, 0.00, 0.00 User-Agent: Mutt/2.0.5 (2021-01-21) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dr. David Alan Gilbert (dave@treblig.org) wrote: > * Carlos Carvalho (carlos@fisica.ufpr.br) wrote: > > Dr. David Alan Gilbert (dave@treblig.org) wrote on Mon, Aug 14, 2023 at 06:02:53PM -03: > > > I'm seeing a few hangs on a fs after upgrading to fedora 39's bleeding > > > edge; which is running kernel 6.5.0-0.rc5.20230808git14f9643dc90a.37.fc39.x86_64 > > > It was always solid prior to that. It seems to trigger on heavy IO > > > on this fs. > > > > Good news! No, I didn't forget the smiley... Maybe now the problem has become > > sufficiently bad to be visible/solvable... > > > > 6.4.* also doesn't run in one of our machines, which has heavy I/O load. The > > first symptom is that rsync downloads hang and abort with timeout. 1 or 2 > > days later the amount of modified pages waiting to go to disk reaches several > > GB, as reported by /proc/meminfo, but disks remain idle. Finally reading from > > the arrays collapses. > > I'm not sure this is a related fault - I mean it might be, but my > failure is much more deterministic; it seems solid on 6.4.x to me, but > just fails reliably somewhere in 6.5. Actually, you know your description smells a lot closer to the one Rishabh has just posted today: https://lore.kernel.org/lkml/153d081d-e738-b916-4f72-364b2c1cc36a@amazon.com/ Dave > Dave > > > This is just the worst case. Since early 5.* I/O performance has dropped > > absurdly. In all our disk servers this is easy to see: just generate lots of > > writes quickly (for example expanding a kernel tarball). Using top I see that > > kworker starts using 100% cpu but disks stay idle (as seen by dstat or sar). If > > you do a sync or umount it takes looooong to reach ~0 modified pages for the > > sync or umount to return. > > > > In the server I mentioned above where 6.4.* don't stand the load, which is one > > of the largest free software mirrors of the world, even sometimes 6.1 > > collapses: I/O becomes so slow that service (apache) stops. > > > > The problem gets progressively worse with time after booting. It's hardly > > noticeable in the first hour after boot, and easily seen after ~3-4 days of > > uptime. The higher the (write) I/O load the faster it appears. > > > > All this is with ext4 and raid6 with >~ 14 disks in the arrays. > > > > I don't have debug info because these are production machines and I only > > compile in the kernel the bare minimum essential for operation. It's always > > pure kernel.org releases; gcc versions vary, for 6.4* it's gcc-13, for 6.1* > > gcc-12 is used, on Debian unstable updated more than 4 times/week. > -- > -----Open up your eyes, open up your mind, open up your code ------- > / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ > \ dave @ treblig.org | | In Hex / > \ _________________________|_____ http://www.treblig.org |_______/ -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/