From: Long Li <longli@microsoft.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "longli@linuxonhyperv.com" <longli@linuxonhyperv.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
KY Srinivasan <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Stephen Hemminger <sthemmin@microsoft.com>,
Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Hans de Goede <hdegoede@redhat.com>,
"Williams, Dan J" <dan.j.williams@intel.com>,
Maximilian Luz <luzmaximilian@gmail.com>,
Mike Rapoport <rppt@kernel.org>,
Ben Widawsky <ben.widawsky@intel.com>,
Jiri Slaby <jirislaby@kernel.org>,
Andra Paraschiv <andraprs@amazon.com>,
Siddharth Gupta <sidgup@codeaurora.org>,
Hannes Reinecke <hare@suse.de>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: RE: [Patch v2 2/3] Drivers: hv: add Azure Blob driver
Date: Thu, 1 Jul 2021 17:24:29 +0000 [thread overview]
Message-ID: <BY5PR21MB15065D01F0AC2DBFE1E40C47CE009@BY5PR21MB1506.namprd21.prod.outlook.com> (raw)
In-Reply-To: <YN2MtVFOC+yd/rRZ@kroah.com>
> Subject: Re: [Patch v2 2/3] Drivers: hv: add Azure Blob driver
>
> On Thu, Jul 01, 2021 at 06:58:35AM +0000, Long Li wrote:
> > > Subject: Re: [Patch v2 2/3] Drivers: hv: add Azure Blob driver
> > > > +
> > > > +static struct az_blob_device az_blob_dev;
> > > > +
> > > > +static int az_blob_ringbuffer_size = (128 * 1024);
> > > > +module_param(az_blob_ringbuffer_size, int, 0444);
> > > > +MODULE_PARM_DESC(az_blob_ringbuffer_size, "Ring buffer size
> > > > +(bytes)");
> > >
> > > This is NOT the 1990's, please do not create new module parameters.
> > > Just make this work properly for everyone.
> >
> > The default value is chosen so that it works best for most workloads while
> not taking too much system resources. It should work out of box for nearly all
> customers.
>
> Please wrap your email lines :(
>
> Anyway, great, it will work for everyone, no need for this to be changed.
> Then just drop it.
>
> > But what we see is that from time to time, some customers still want to
> change those values to work best for their workloads. It's hard to predict their
> workload. They have to recompile the kernel if there is no module parameter
> to do it. So the intent of this module parameter is that if the default value
> works for you, don't mess up with it.
>
> Can you not just determine at runtime that these workloads are overflowing
> the buffer and increase the size of it? That would be best otherwise you are
> forced to try to deal with a module parameter that is for code, not for devices
> (which is why we do not like module parameters for drivers.)
>
> Please remove this for now and if you _REALLY_ need it in the future, make it
> auto-tunable. Or if that is somehow impossible, then make it a per-device
> option, through something like sysfs so that it will work correctly per-device.
>
> thanks,
>
> greg k-h
I got your point, will be removing this.
Thanks,
Long
next prev parent reply other threads:[~2021-07-01 17:24 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 6:30 [Patch v2 0/3] Introduce a driver to support host accelerated access to Microsoft Azure Blob longli
2021-06-26 6:30 ` [Patch v2 1/3] Drivers: hv: vmbus: add support to ignore certain PCIE devices longli
2021-06-28 20:47 ` Michael Kelley
2021-06-26 6:30 ` [Patch v2 2/3] Drivers: hv: add Azure Blob driver longli
2021-06-26 7:18 ` kernel test robot
2021-06-28 17:12 ` Enrico Weigelt, metux IT consult
2021-06-28 17:39 ` Wei Liu
2021-06-28 20:50 ` Michael Kelley
2021-07-01 6:51 ` Long Li
2021-07-01 16:02 ` Michael Kelley
2021-07-02 23:59 ` Long Li
2021-07-03 14:37 ` Michael Kelley
2021-07-09 2:09 ` Michael Kelley
2021-07-09 19:44 ` Long Li
2021-07-12 3:58 ` Michael Kelley
2021-06-29 6:24 ` Greg Kroah-Hartman
2021-06-29 10:41 ` Enrico Weigelt, metux IT consult
2021-06-29 12:18 ` Greg Kroah-Hartman
2021-06-30 15:29 ` Enrico Weigelt, metux IT consult
2021-07-01 6:58 ` Long Li
2021-07-01 9:36 ` Greg Kroah-Hartman
2021-07-01 17:24 ` Long Li [this message]
2021-06-29 6:25 ` Greg Kroah-Hartman
2021-07-01 6:59 ` Long Li
2021-06-29 8:43 ` Jiri Slaby
2021-07-01 7:09 ` Long Li
2021-07-01 15:16 ` Joe Perches
2021-07-01 22:41 ` Long Li
2021-06-26 6:30 ` [Patch v2 3/3] Drivers: hv: Add to maintainer for " longli
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=BY5PR21MB15065D01F0AC2DBFE1E40C47CE009@BY5PR21MB1506.namprd21.prod.outlook.com \
--to=longli@microsoft.com \
--cc=andraprs@amazon.com \
--cc=ben.widawsky@intel.com \
--cc=bjorn.andersson@linaro.org \
--cc=corbet@lwn.net \
--cc=dan.j.williams@intel.com \
--cc=decui@microsoft.com \
--cc=gregkh@linuxfoundation.org \
--cc=haiyangz@microsoft.com \
--cc=hare@suse.de \
--cc=hdegoede@redhat.com \
--cc=jirislaby@kernel.org \
--cc=kys@microsoft.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longli@linuxonhyperv.com \
--cc=luzmaximilian@gmail.com \
--cc=rppt@kernel.org \
--cc=sidgup@codeaurora.org \
--cc=sthemmin@microsoft.com \
--cc=wei.liu@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).