Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1653647rdb; Thu, 25 Jan 2024 02:03:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWkJkSEakYWdYczkAZHLl5GpWxF9wxT9hXhDEwsMY3bqgND/0oxvAq5yq1g42IbbdPuR61 X-Received: by 2002:a05:6358:52d3:b0:175:b57e:7be1 with SMTP id z19-20020a05635852d300b00175b57e7be1mr853504rwz.52.1706177032056; Thu, 25 Jan 2024 02:03:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706177032; cv=pass; d=google.com; s=arc-20160816; b=OqtbzqpYd/qBQ9Tui1VkAsEvOhfYScsNgXRzgrWzTSdxsd0HMVQ6+db84NDTEKyfXg BaTSRXz6as8EjRm2dDTfSDFUjZR10SGYxXZz/d88NWdZIDrl2chy/QoHQOZ2DQybc0WL vVb0q2UzHOwBMCl3m71ttstXuQRtmg1I75761sMR2/9xeBABukCl+SViSCcUU2bV40Mj 2GwcDCfIL6b3LcnGJ3/GM8ND6uf9IFRQo5IcJwbetIyTRp2F1TmBvtSCqseE9YUllWL/ //Ry1pgf0maO9rvo+/wTbxPaY/yArShWwm2nyuz8zr9w8bGaWbx35dg9LoSWc0f26+On 9pZw== 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=xeuc1MBS2voT/jq/uu7/08D5W8Ihyb89jkbUYt4zZD8=; fh=TPK5dH4cAsVK5KAaYniAIsbaoew/adpw6hACO0iub8U=; b=lIceOArbii2z0ruaFvnqdWW1HusbxSm2FogFocmXQ5cvRwgeIx6wUeP47px4148YhZ J930hda2pwB65vJmH2Pw37s30E2ia0v8jV0ji9IGW1MuNj+3ny0cpbOSZveuEZVEGM8f 6FNfi4pjBbg/rW5rikLWIpAecrqUYAyK85o8OAm4iE0tP+HcERFxd/2IzkzpvHzp2Wy4 0cZftV9ZhwDAeJOKDNUpPHBP8SBykFiIrS+JtGAPKh/jvv/XI9bg5QrYHTST3eOTSg/y 3F4HDt/qwtU1Thr+M8cZDVGQcdFTT1yySrkkWJE74CZGrPqb4a++F4rqKGCe8erO/ZEk Dt4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SUxdD07i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38340-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38340-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w7-20020a056a0014c700b006ddc43ddc61si1286526pfu.257.2024.01.25.02.03.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:03:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38340-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SUxdD07i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-38340-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38340-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7725A2943EB for ; Thu, 25 Jan 2024 09:54:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 328661CA95; Thu, 25 Jan 2024 09:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SUxdD07i" 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 5B6531BDE1; Thu, 25 Jan 2024 09:54:32 +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=1706176472; cv=none; b=cEw/DBVkWkgx8Th9xZ00pBit9//7vWrhGjXE6C/x+WyuyMlJhnpp0nk1zxYsubHjkebmrHtyoFWLgQTr0S0Qvpxd4xIePdencVcL/PVQrKrjgV9iPSsfKOxUtBc2OE/2Ohl7k08gz6LTn6Ylrd0N2qLE0zPl28fhW5qw21N4Zjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706176472; c=relaxed/simple; bh=8sV11cCodbI7pM5kIxaj6DbkQcEBI2nlp/GIYjsNtag=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IcgI8ivt5hMF1r5INhPkvT8/SUHtO48VfNMbxObystU3uxyLKaDeRd9xiSmATFPYMRZoM8RbcKNXtQGZA1jiZ90XVekEF7PKgbC+tU8KMGEDycS1RnB5INSq+X99yobt3/mUHO8VK3dyVey2A4pDARCoLn7bwAHHVuakWYHSBNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SUxdD07i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5470EC433F1; Thu, 25 Jan 2024 09:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706176472; bh=8sV11cCodbI7pM5kIxaj6DbkQcEBI2nlp/GIYjsNtag=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SUxdD07iIGwk8Aw2N8NsyEgJXNF4/m0+uvuV4Q1uBshNvQWo6CP2idSHtrGOp9ug7 Bu7jBFIBRJg6T6EBD8PXUKZ7nn8n4h3YlRN7Z0T01UfqHJq2pQydq81wfWDZlvU5B5 Gvi+0KFyyvORYL0jsEVQpMQRv3dfG5bW4kx7xbJ8IuxWbj/ir18e5g2cQZpnAsekxd joaKG3MEE7EEbS6g2dQLmo4FjmUGcThNG+FkcTd5hmMcZyz+yQZULbj1JyDD6bfHec VB7MqNsUIyMeKm2b+Ha+MCZyMks9ECvEx8jT2cHdsBEIAKHfzl2/O67RbbyNH9sT5k KmyHvMFGMmMWA== Message-ID: <15d07953-aeff-460e-81fe-ea7fc2f6145d@kernel.org> Date: Thu, 25 Jan 2024 18:54:28 +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: [PATCHv3 1/1] block: introduce content activity based ioprio Content-Language: en-US To: Zhaoyang Huang Cc: "zhaoyang.huang" , Andrew Morton , Jens Axboe , Yu Zhao , Niklas Cassel , "Martin K . Petersen" , Hannes Reinecke , Linus Walleij , linux-mm@kvack.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, steve.kang@unisoc.com References: <20240125071901.3223188-1-zhaoyang.huang@unisoc.com> <6b2d5694-f802-43a4-a0fd-1c8e34f8e69a@kernel.org> <95082224-a61d-4f4b-bc96-1beea8aa93a9@kernel.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/25/24 18:37, Zhaoyang Huang wrote: > Actually, the activity information comes from page's history (recorded > at page cache's slot) instead of user space in step(1) and can be > associate with bio in step(2) or iterate the bio in step(3) > page fault(or vfs)(1) > | > alloc_pages > | > add_page_to_pagecache(get the page's activity information) > | > fs_readpage > | > bio_add_page(2) > | set your prio here. No change to the block layer needed. That is FS land. > submit_bio(3) -- Damien Le Moal Western Digital Research