linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Zhaoyang Huang <huangzhaoyang@gmail.com>
To: Damien Le Moal <dlemoal@kernel.org>
Cc: "zhaoyang.huang" <zhaoyang.huang@unisoc.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	 Jens Axboe <axboe@kernel.dk>, Yu Zhao <yuzhao@google.com>,
	 Niklas Cassel <niklas.cassel@wdc.com>,
	"Martin K . Petersen" <martin.petersen@oracle.com>,
	 Hannes Reinecke <hare@suse.de>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-mm@kvack.org,  linux-block@vger.kernel.org,
	linux-kernel@vger.kernel.org,  steve.kang@unisoc.com
Subject: Re: [PATCHv3 1/1] block: introduce content activity based ioprio
Date: Fri, 26 Jan 2024 09:14:30 +0800	[thread overview]
Message-ID: <CAGWkznHdE_zJ1pnxf-0-D3M=8aBwn-gFNte333WbKPioygGdLA@mail.gmail.com> (raw)
In-Reply-To: <CAGWkznF_mQdA0ebTfyXKnJ0xu6v=iqhr9yDJ4DohL38mRgeTrw@mail.gmail.com>

On Thu, Jan 25, 2024 at 6:10 PM Zhaoyang Huang <huangzhaoyang@gmail.com> wrote:
>
> On Thu, Jan 25, 2024 at 5:54 PM Damien Le Moal <dlemoal@kernel.org> wrote:
> >
> > 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.
> Yes, that is what I suggested in patchv3 which keeps the block layer
> clean by introducing a set of helper functions which wrap up the
> activity things for FS utilization.
Maybe I misunderstand Damien's opinion which suggests iterating the
bio->bvec here via a new API. I think it is more costly than counting
activities when adding pages to bio and need more modifications on
each fs.
> >
> > > submit_bio(3)
> >
> >
> > --
> > Damien Le Moal
> > Western Digital Research
> >


  reply	other threads:[~2024-01-26  1:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25  7:19 zhaoyang.huang
2024-01-25  7:40 ` Damien Le Moal
2024-01-25  7:52   ` Zhaoyang Huang
2024-01-25  8:26     ` Damien Le Moal
2024-01-25  9:32       ` Zhaoyang Huang
2024-01-25  9:37         ` Zhaoyang Huang
2024-01-25  9:54           ` Damien Le Moal
2024-01-25 10:10             ` Zhaoyang Huang
2024-01-26  1:14               ` Zhaoyang Huang [this message]
2024-01-26  7:59 ` Zhaoyang Huang
2024-01-26  8:55   ` Matthew Wilcox
2024-01-26  9:28     ` Zhaoyang Huang
2024-01-26  9:36       ` Matthew Wilcox
2024-01-26  9:49         ` Zhaoyang Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGWkznHdE_zJ1pnxf-0-D3M=8aBwn-gFNte333WbKPioygGdLA@mail.gmail.com' \
    --to=huangzhaoyang@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=axboe@kernel.dk \
    --cc=dlemoal@kernel.org \
    --cc=hare@suse.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=martin.petersen@oracle.com \
    --cc=niklas.cassel@wdc.com \
    --cc=steve.kang@unisoc.com \
    --cc=yuzhao@google.com \
    --cc=zhaoyang.huang@unisoc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox