Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1649005lqt; Wed, 20 Mar 2024 09:53:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwF2JpCaEAv7xDKBjpXC6QhJvHIErcC/BnEVwVbUC3oTd0Ln/a9rasiSQVB3yKzE4PXqFpykQvPwPTmZvxgGtlyc+dG6yZmMsHOU+yDg== X-Google-Smtp-Source: AGHT+IHlSRc75xBrFqzrr1Dkh4TBDwnq+xVKw5UFxo/ksdTZX2292p1e3B//WPTntT293r1IqUnM X-Received: by 2002:a05:6214:509e:b0:690:8452:8b17 with SMTP id kk30-20020a056214509e00b0069084528b17mr257153qvb.14.1710953597430; Wed, 20 Mar 2024 09:53:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710953597; cv=pass; d=google.com; s=arc-20160816; b=zuVMwxNHv5Ulxau60fMWXkIAIwXB06M/zKxzUHgvI5YXPKEM/6Og+lhjv5ieihVRSr MsAnTPYT9w2aQZXPtGmZPn7xsG8JlXDe0mJqqn0uBrFATxKjvEeLhTxxKLOl7y5GBNiG ws8UEeUfPHQQs5ZxkpJ36UQli8BNsHofRF7YP9ZvnFAK2skFf5L7yySJm4ghnCFDRoGM nd6xnR5JZ7vq65jXTiSTIpWmPlHaMWmRKjegKBI0EzZalBRi/2lKBy5RWSSF4FQS2YnS LmKF+X48U1nEJVMzfK8GBj4UzBZL0ocS47o9QD/bZ8qKalnCU+KkS61juX356fiTKykb zdMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XqEO2hE+am6xlkWyV+/YerxP+gL90St3CNUnsdFUKA8=; fh=maq5Dxu016SpVaqz+PCsIiTWhRrDBvFKxIo2lTahXNw=; b=wX2i0sF+krokfuO37m+GpmRCwjwNicHC7Gf2b1OP8+dwfgZIQ0Y4S5zccLr7Bf4Gy4 mYAZswn2koyBrMQUM2q8pIjgYbNaAEbflkdLrSUXUwXhUG/l08OXoiKV5U2PO4LWNM3B 1NWEAlOyhFZT5ybGy5nxyjH0TqVKet7127MC2PYdt0Str+L5nWihohAl4xhNQ7pb/Kbb 33sGer6/WK5DAsB/m9iOa0fmL5VfWhX/BKijSzcU9SQxy/2ek4TLrb+roYn66mAZt3x+ IzZiuehx97rkvYsr8yoJ0roM5GFvjzQFUIBcXKjXhH6LYr1q2qNudsx0e9B20pi1z04k pcfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=Dxzq99gY; arc=pass (i=1 spf=pass spfdomain=cloudflare.com dkim=pass dkdomain=cloudflare.com dmarc=pass fromdomain=cloudflare.com); spf=pass (google.com: domain of linux-ext4+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fv11-20020a056214240b00b00690796914e5si13801692qvb.181.2024.03.20.09.53.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 09:53:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=Dxzq99gY; arc=pass (i=1 spf=pass spfdomain=cloudflare.com dkim=pass dkdomain=cloudflare.com dmarc=pass fromdomain=cloudflare.com); spf=pass (google.com: domain of linux-ext4+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2DAF11C2103B for ; Wed, 20 Mar 2024 16:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD10069E1E; Wed, 20 Mar 2024 16:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="Dxzq99gY" X-Original-To: linux-ext4@vger.kernel.org Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD518628 for ; Wed, 20 Mar 2024 16:53:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710953583; cv=none; b=rp2RSN6rj6TnTIKGGbThaXoRRYjWMkkUd0DhtSvMA6fPl41E9fQV+J4INJg/m7pY9w0ERmr54unLGHcQ27N0LgSbH3n3iIbyrXs/HV8p0orA0MBvh+JBVftEVF4sFSttmxAUY9jgNIVLKjVdRKR+9jlWomI3mWehtkCOc1ESkmc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710953583; c=relaxed/simple; bh=kHS7OT3WV0i5gyks/LxsdRn1IByYJCkt7R0PrcsET2U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SPQdF+7Sc4A4fKmjUl9+kYyN0XFeadwrQ4kO8Gqu97eFctBSFHZ91FGN6BOxUyqcgM3xCby7LIs873glApEHFB0rfrIP4JqubjnhAq06gludLwXfGKLP1WyR15qN8yqygsxs5ahjxOdCIF2KXO4oKJja6gzrEO2G0zB/wd3EKmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=Dxzq99gY; arc=none smtp.client-ip=209.85.166.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Received: by mail-io1-f44.google.com with SMTP id ca18e2360f4ac-7cc05d36c86so34374439f.1 for ; Wed, 20 Mar 2024 09:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1710953581; x=1711558381; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XqEO2hE+am6xlkWyV+/YerxP+gL90St3CNUnsdFUKA8=; b=Dxzq99gYyk+L+RRJoLnQH1+hevonUO+NpftroJt+A8KGwOZJ1C53h1QvExlcBBFA3P MOerNLzZURhpXvSJl6xxOqUPL5k4nviSanRgVsw0l2fkumB0wBGi2L0oa0Rd8aCxkGMS T4nYanSJfDuqKw6Gg+dZYLRC3ZK1ZzeW2KQHCUgPb0dVSwJL9Q20Du/7p+dWRS4D1ZmC q3jepvQKsC9BXyV3pgNdP3hf6LDrhqeb+16b+fMqRLK50pZorvJZNjUZPGYnLKUHu71C kwd7cwUYj8d3g2kaz0Ac8QBBtGV/fXqkqLqZx0aVqqBts4CHIG7l2NaOrlrX9pc+kfZP CT/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710953581; x=1711558381; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XqEO2hE+am6xlkWyV+/YerxP+gL90St3CNUnsdFUKA8=; b=osHAO9K0Ia4oWIo1q+W8e0NP8XQfCiEZpvt8fOVA56dIzIF7gmpw91jDixPRAfDVx7 67plWn/zK3yrowLccL+03J0NRjLWI15oLorHC8+GHLGBYGFzQV0upt43m01CmJGqiZtb 625vwivJX9Y+FBdPiyESfGOLgU/ozw1663spSXZDuy6vZD+tCy16gmdyN5wsu5ij3uWX +F5vhSZ/XiwOmavIr9lCYgN9vvx6D8jQ/dWioyv4beU7KzVES2cSHgP+mZ6bTVT9M1hp IXUT/WbFNSje0QXtDH0NgJW0NXUGa5dQcVCymfAfUtndDsH5ExHoNkWgjsmh2Ppo17MF YKqA== X-Gm-Message-State: AOJu0YxDZfpxji7hWzApVuewDuGDf8Fj4wM49FJoea3okaTqIYKadyWI gpzIb7oIkJL5b/PhclBXj7Uv9xTy/XtJKvvj5jjwznnKTtnaOuhfo71E1s90G90= X-Received: by 2002:a05:6e02:1281:b0:366:a9b8:44ec with SMTP id y1-20020a056e02128100b00366a9b844ecmr139291ilq.12.1710953580795; Wed, 20 Mar 2024 09:53:00 -0700 (PDT) Received: from CMGLRV3 ([2a09:bac5:9478:4be::79:24]) by smtp.gmail.com with ESMTPSA id fh15-20020a056638628f00b00474dc6544c2sm3666232jab.97.2024.03.20.09.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 09:53:00 -0700 (PDT) Date: Wed, 20 Mar 2024 11:52:58 -0500 From: Frederick Lawler To: Theodore Ts'o Cc: linux-ext4@vger.kernel.org, Ojaswin Mujoo , Ritesh Harjani , linux-kernel@vger.kernel.org, Jan Kara , glandvador@yahoo.com, bugzilla@eyal.emu.id.au, kernel-team@cloudflare.com Subject: Re: [PATCH 0/1] Fix for recent bugzilla reports related to long halts during block allocation Message-ID: References: <170476879011.637731.13228432208887255974.b4-ty@mit.edu> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <170476879011.637731.13228432208887255974.b4-ty@mit.edu> Hi Theodore and Ojaswin, On Mon, Jan 08, 2024 at 09:53:18PM -0500, Theodore Ts'o wrote: > > On Fri, 15 Dec 2023 16:49:49 +0530, Ojaswin Mujoo wrote: > > This patch intends to fix the recent bugzilla [1] report where the > > kworker flush thread seemed to be taking 100% CPU utilizationa and was > > slowing down the whole system. The backtrace indicated that we were > > stuck in mballoc allocation path. The issue was only seen kernel 6.5+ > > and when ext4 was mounted with -o stripe (or stripe option was > > implicitly added due us mkfs flags used). > > > > [...] > > Applied, thanks! I backported this patch to at least 6.6 and tested on our fleet of software RAID 0 NVME SSD nodes. This change worked very nicely for us. We're interested in backporting this to at least 6.6. I tried looking at xfstests, and didn't really see a good match (user error?) to validate the fix via that. So I'm a little unclear what the path forward here is. Although we experienced this issue in 6.1, I didn't backport to 6.1 and test to verify this also works there, however, setting stripe to 0 did in the 6.1 case. Best, Fred > > [1/1] ext4: fallback to complex scan if aligned scan doesn't work > commit: a26b6faf7f1c9c1ba6edb3fea9d1390201f2ed50 > > Best regards, > -- > Theodore Ts'o