Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp289614lqo; Thu, 9 May 2024 22:47:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWR/PzZB6+Oe0nKDJkbueyU3x2Qyajg+vSjG5ezcEMVpgoTzLjBDJTMh6wUYWf0Jr/5VrGkTIsEKLExP2wUVDhtK7I0m5C1o0Q+22AcVA== X-Google-Smtp-Source: AGHT+IFSTKRaLecuuoE+S6TZ97mR+F+PzER8/q46RTziNghnRsFFAbL/1FQr/uj3/fLEMFpyCjQl X-Received: by 2002:a17:907:2d13:b0:a59:c577:c5c3 with SMTP id a640c23a62f3a-a5a2d57a48emr173254366b.29.1715320021779; Thu, 09 May 2024 22:47:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715320021; cv=pass; d=google.com; s=arc-20160816; b=GbBFn2rkYQFb5zTeXd5SK1Tt1T4OGJ/PGb5Dfc99S8fhkF9oWzId34QomfroYyBAIo 3tHXBYvW1gBooe6Sbo2RewcRvaoXpyoK05Kvee2bMTcuk/JgiZYX2f0gOOBynHEK1GP6 B5ON5H9LLMWm5m0A/Lj2sKCJBoRdpyNTtlpxDMha4+1G0zTFJ9mPHsui5CKfkuOW+eup WNpWqWU48I9NiP5p5KRLWLRXMEUhU8/n2snBamhLXgZXJJ380TkG4F71HN5U1zfP3uN6 Zdvj+xPaXZU3Nae/3PVVAFNWwkDdBuFZGpD8cjYGG3LUkg+ZSZhOIHxufnApvPmvJb2U RiBw== 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=3fHRsZcdj/tgFnGrPHUfac5A7YiWSFy0VDkIhuxQvAY=; fh=k2LSvNiodRUN0FJemRUDgfcAevhkYu7UZ36qdV2Yq1U=; b=RRis/9xQKJcOmGB0diNAYQSCUwO3/IrhLVC6diTMia+ICpx2nGWcKdSs/cWLV2VuVz 8UnmaoqycQPOXab2+CzsCxyOju9XC0Nr2brHRsSZdEnrSFEdeGh1z3Yld+S/Fvxm4goG gk+H5sV+wrkLpSo2ToHSI+PF0nRbsCQKmb2H5Ziih1TErwLdKW28GZJsNpWpt9ZQpnhC TPDlmlTnaG88mfGCamu6uclwU18hcWo4LsfQsnjK8D/xBr8LhTbcuBAhJHSHJrDYgQ2W xoh6QteOkFC0LgaReYopnGeuwxrP8vqXAOhllGxFuMGFbl6McMa2CvH58CT9Udgw7/p6 Y/fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JahM9Gxa; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-175241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175241-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17945eb6si170408166b.197.2024.05.09.22.47.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 22:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JahM9Gxa; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-175241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175241-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D118C1F22228 for ; Fri, 10 May 2024 03:18:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3455D1494CA; Fri, 10 May 2024 03:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="JahM9Gxa" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D60D533CD1; Fri, 10 May 2024 03:18:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715311122; cv=none; b=qapqURuMdyvd+/Zlv6ggWNMxASLtf6XwekPYnXotBAhoz1EP4dqlj7wLi2+e/CorUsFYwOmgPQYFp9XZvrC8hw8gZaVOhHtRTr9w8/bTc0ATW7G4vRNfeaxDLQdBFCfO2sGsT9ugJnqvJL+XmNbrN99ApocSlYfPWPtfgvqaBiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715311122; c=relaxed/simple; bh=foVyNGlbXIYrxPutsdsOkKH+iikzAmbsemiAiJGyawg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tJuroIIFrnukH7eB1CFepQNEhPkbj6dN631NTRLw8NII46PUItRMS/eMcSrhd3dORijSWDIfMAiBgkoiODsiT7Qnfj2F/AV6+/wwPV6euPuMSRhJNLxoz/K6IbsMRyMAG09utih7SxOloeSSqx8F4UzsMevBZJ340Hw2+hQ4yr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=JahM9Gxa; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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; bh=3fHRsZcdj/tgFnGrPHUfac5A7YiWSFy0VDkIhuxQvAY=; b=JahM9GxavFkcw1GiYwoFbeXZo7 hcFNrP15sZGp+j0vhmRQ0G6ZfKgP9dPPg5G5l0K/IDzIuSD6+IfKkPzZqiIV9pMRybFuy/1XSpjFU Qx60+DMZCAP/zLSQ7HilZ/jnUvLLmCXs9FnvdPd2KRQC4EY2nT/Q2bMA/uxgsypurem2mODz7kCiH 2vtMDgsB/2uHmynZbK1izGb+ni5nMu+FvFSQQdtFSiK1ZJiRCI1GqRpOE1jI22vOCDCTstvWgEHM6 hGYHAHhCnkMzIbsq+Nf9QMw6hO503eLiFNengNrvlafcNlzHgWNEUlfQzvPtQcFaC7G6FywWLgQ0T gAEtjbYQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s5Gm5-000000027Oc-3RIv; Fri, 10 May 2024 03:18:22 +0000 Date: Fri, 10 May 2024 04:18:21 +0100 From: Matthew Wilcox To: Zhaoyang Huang Cc: "zhaoyang.huang" , Andrew Morton , Jens Axboe , Tejun Heo , Josef Bacik , Baolin Wang , linux-mm@kvack.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, steve.kang@unisoc.com Subject: Re: [RFC PATCH 2/2] mm: introduce budgt control in readahead Message-ID: References: <20240509023937.1090421-1-zhaoyang.huang@unisoc.com> <20240509023937.1090421-3-zhaoyang.huang@unisoc.com> Precedence: bulk X-Mailing-List: linux-kernel@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: On Fri, May 10, 2024 at 10:43:20AM +0800, Zhaoyang Huang wrote: > Thanks for the prompt. I did some basic research on soft RAID and > wonder if applying the bps limit on /dev/md0 like below could make > this work. No. Look at btrfs' raid support, for example. it doesn't use md0. > I didn't find information about 'RAID internally'. Could we set the > limit on the root device(the one used for mount) to manage the whole > partition without caring about where the bio finally goes? Or ask the > user to decide if to use by making sure the device they apply will not > do RAID? No.