[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210413111727.12999-1-nanich.lee@samsung.com>
Date: Tue, 13 Apr 2021 20:17:27 +0900
From: Changheun Lee <nanich.lee@...sung.com>
To: gregkh@...uxfoundation.org
Cc: Johannes.Thumshirn@....com, asml.silence@...il.com,
axboe@...nel.dk, bvanassche@....org, damien.lemoal@....com,
hch@...radead.org, jisoo2146.oh@...sung.com,
junho89.kim@...sung.com, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, ming.lei@...hat.com,
mj0123.lee@...sung.com, nanich.lee@...sung.com, osandov@...com,
patchwork-bot@...nel.org, seunghwan.hyun@...sung.com,
sookwan7.kim@...sung.com, tj@...nel.org, tom.leiming@...il.com,
woosung2.lee@...sung.com, yt0928.kim@...sung.com
Subject: Re: [PATCH v7 3/3] bio: add limit_bio_size sysfs
> On Tue, Apr 13, 2021 at 11:55:02AM +0900, Changheun Lee wrote:
> > Add limit_bio_size block sysfs node to limit bio size.
> > Queue flag QUEUE_FLAG_LIMIT_BIO_SIZE will be set if limit_bio_size is set.
> > And bio max size will be limited by queue max sectors via
> > QUEUE_FLAG_LIMIT_BIO_SIZE set.
> >
> > Signed-off-by: Changheun Lee <nanich.lee@...sung.com>
> > ---
> > Documentation/ABI/testing/sysfs-block | 10 ++++++++++
> > Documentation/block/queue-sysfs.rst | 7 +++++++
> > block/blk-sysfs.c | 3 +++
> > 3 files changed, 20 insertions(+)
>
> Isn't it too late to change the sysfs entry after the device has been
> probed and initialized by the kernel as the kernel does not look at this
> value after that?
Kernel will take a look this when page is merged to bio. And bio size will
be limited dynamically.
>
> Why do you need a userspace knob for this? What tool is going to ever
> change this, and what logic is it going to use to change it? Why can't
> the kernel also just "do the right thing" and properly detect this
> option as well as userspace can?
Actually I didn't considerate userspace knob at first. And there is no tool,
no logic to change it. It's a kind of policy about bio max size.
One time setting will be OK on system boot time actually.
At the first, I suggested 1MB bio max size. It is same with bio max size
before applying of multipage bvec. But there are requests of big bio size
on another system environment, and feedback of knob for utility too.
So I made this as a optional for each system, and a knob too.
>
> thanks,
>
> greg k-h
Thanks,
Changheun Lee
Powered by blists - more mailing lists