Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1019614rdb; Tue, 30 Jan 2024 05:54:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgxRovn6qWssZQSaS/oSHK1APSlXO9ERpj1eZFHCjFShUU9wbdkpccTh+0yhs3aTjYbIrP X-Received: by 2002:a17:906:c54:b0:a36:38ae:8d83 with SMTP id t20-20020a1709060c5400b00a3638ae8d83mr792430ejf.37.1706622845516; Tue, 30 Jan 2024 05:54:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706622845; cv=pass; d=google.com; s=arc-20160816; b=sEcZkXMeRUa66dPEKvV0fBtIR0Gq3ojtE7VT66LHssNCJ4Seq6coLwm04aL6dxthIi 26yf1NC8Ukiub0NWJu4b3jZkaiva3wbuhp+W2Wtko/bEF+9vXAHtUWPpwoMZwGSLiKsx qSl/ODGolZ4efcOjeMXdrLDhvr6OPckpdk4gQ6eYQ370XATk0wFzX71QCsycgCQei/dM xJvu0IJhtiF4Ub4ItF//gEXtcm2pXfr3Ix9Tl3Nx3bM7KT4eV2ssYTdCXLCucicpXsoA 7OHcfoek9rjBq1ijn1jztCIL+/z6tflDtxMKLd2ytwqqnGgpspcOZ7cyzWysbrhcevKg wQbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=dHmYsQMYVH4XZybZTv5hK819ZU488gSDqcYJZ1avndA=; fh=76y8U38DHgMTstCY45msJcjy/biucujHucETJ4RJI6Q=; b=ay92ojcxBmmNY9lgVMUJUm7ChsqcNdVUKBQQ40o7Mfg5Qcf2GLAEYSM5VHczXAcKlX VQlLdkaZ8UNpMdpADySkkndSM4OZ59/twwBDIlLcEnt54BVt2spdLmfIUaPd8u21wz2/ uF5a2Xw4fb3+cOWQeOYFW4oMLvK3fejjaE5eM7uW+npuFG1BzU/DCUSAdZDUsqjuSViu 5db3ocQbFvAWnveGr52ZwFuU/Zbo1v9EeLWQj9EyNmEh0tB/k+O0sFvmUeqaDjPlxoaj Pu8+qOVRj7M6xbUDX9mvF2r8W6OpE+cL8zladV6PCVwYfZnh6xorBuKBY2+Xdr4wgjYM uU1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFU7CFNo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a20-20020a1709062b1400b00a3525b232aesi3782284ejg.238.2024.01.30.05.54.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:54:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFU7CFNo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 490DC1F29739 for ; Tue, 30 Jan 2024 13:54:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 431D46D1DB; Tue, 30 Jan 2024 13:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OFU7CFNo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 60D9C6BB32; Tue, 30 Jan 2024 13:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706622831; cv=none; b=ApjgnNSD3PkQrQq5y4rR0erBWeWjo/xhAzIJiT4tbTZ4+xovmZY/0/5P65vXa4JtKeJnvwQQlDtV/GyNN2Z8bHnOCJYGc7bCnvnkFzZXOZEwPbvJb8DGUSrUk3ZgdR7vrVaxjTsz/CQCTIXZCEQO14OFQ9D4WKsRjmnerxe/Jcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706622831; c=relaxed/simple; bh=Rbw0bjfu1YktFDI3J38DN6TV3tsl1n6Ebrxsm9br8vc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DIIiysiDSG2SKcR1eb1bJqZ28HtBzfiriuAnW7cjwkH7us+FCNCBVER8NfBanZjsDE815aKigtTIl+gSrJC6HDTZ+eP0luOd83RRCt+nYDCRg0VFZ8Q4vYOGuciqa9csmw4UFLL+UYV1/9+rCl1MwF7t0f/gFrMJ1ivY6ud+98w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OFU7CFNo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DFFFC433C7; Tue, 30 Jan 2024 13:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706622830; bh=Rbw0bjfu1YktFDI3J38DN6TV3tsl1n6Ebrxsm9br8vc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OFU7CFNorhBVGsTPusWn+2sB59iM24W5vkZAelhW2wpuZbetl9L3u54yCOub2dJNr 4tR1g6rPlZAcL3IbMmvOpicB5iUYFwNPTt3zuEXOuckwfjU4q92d9YbEJU4W/+vJg0 yT4sbK1J2OlRyJyPWINGU8yABBlFPqvJHesziCxX2i9Dg/pdNyYVISyPtXOocB6K8P HhTsWJKCHgBOBKZWmKHpUr9kdTuYLufJ3J0qIQW8kucynqyYgc1WrPtZCaLsT0O5J/ 4CEC8NxeW5fU0wNp3GsuuaZD0/Dw/oLlo0Ci4Zd0/7wqV8Rj5gGG+pYi5PVYUjug57 3OJbAaIpsws4Q== Message-ID: Date: Tue, 30 Jan 2024 22:53:45 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv5 1/1] block: introduce content activity based ioprio Content-Language: en-US To: Zhaoyang Huang Cc: "zhaoyang.huang" , Andrew Morton , Jens Axboe , Matthew Wilcox , Yu Zhao , Niklas Cassel , "Martin K . Petersen" , Hannes Reinecke , Linus Walleij , linux-mm@kvack.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, steve.kang@unisoc.com References: <20240130084207.3760518-1-zhaoyang.huang@unisoc.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/30/24 22:28, Zhaoyang Huang wrote: >> That information does not belong to the ioprio. And which scheduler acts on a >> number of pages anyway ? The scheduler sees requests and BIOs. It can determine >> the number of pages they have if that is an information it needs to make >> scheduling decisison. Using ioprio to pass that information down is a dirty hack. > No. IO scheduler acts on IOPRIO_CLASS which is transferred from the > page's activity by the current method. I will implement another > version of iterating pages before submit_bio and feed back to the list Then why are you modifying the ioprio user API to add the 7 bits of activity ? If the scheduler only needs the priority class, then only set that and do not touch the user facing API. -- Damien Le Moal Western Digital Research