Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp842867pxv; Thu, 1 Jul 2021 10:26:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBTwzKWNTY//K4oU2BsFe1kk+fCvSI/ugOz52TJ2zuQPDbdk9DSYKz8deZH6237Bx6R9Ke X-Received: by 2002:a05:6402:313b:: with SMTP id dd27mr1268329edb.85.1625160413456; Thu, 01 Jul 2021 10:26:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625160413; cv=pass; d=google.com; s=arc-20160816; b=SShEcbYux3/8m8FLts1TfRgBV8IEL9zQvgBOhLXyMVkijrQScyUdLujT3ZOLiTnVS7 hBGH4n8KBp/BjJSA+I9aWZP5eiDSaYAZMVhQ4izobNoeJLjvqW4GrgW1TOvtJ/SEILsf cnBmje2IKauJXg65I7DOdVMixTV7Z5DxFMpBMkponGVNjTqXj97mySLNd9gJYJfJUOYe wUj9HBwruXaUJpSQe4ma0RG3sl14pIYyJqaLq9Es2cAHr/CsRxYMXB0Rt892XLH4KPLA 8yLFXKBF5MX+ld8CnVIGWPsqS+I/VCVM9hEAoR+jbtcA/PTNpmtVtVY/hGaxEjHt67+s xZ2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=cniL2Flm89r5AXpmDT5Og5sVJ0XxMmH/KVUt9ECFm88=; b=CLrIoZqLbXNsvSOH+hgyVSPahdK3ea97QTLxJfYdVQVrFQPkGJeaIpLaAhLqGTU4Yq VfWGaq9C4L8N3IMzosthS7MXZ8v8N2ZFe0gL4ZLX8stZ7GFpuyZGKxoyj9RoBsL7ofck 3Dze02m0E3rbdeY5pnjP60B7U98L9GF5ro+nIAg7go4jkXfpldZgWBwqdHpTibuV+7D2 E2QbuFHxAUjIIb7OLvGl1S+b/AixIDk4ptloEPI/jyz+bwq1+aQNSTMCDQlOFXtcJgmo c3w8LxkttsNmGitoczefPaIi6/pTxsWwYGgtBsrtfKHh38ZVkgDKS9zlVQjRB+ZQa3Tr 8JVg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b="dc/ksfsE"; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si564273ejf.364.2021.07.01.10.26.28; Thu, 01 Jul 2021 10:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b="dc/ksfsE"; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233300AbhGAR1F (ORCPT + 99 others); Thu, 1 Jul 2021 13:27:05 -0400 Received: from mail-bn8nam12on2110.outbound.protection.outlook.com ([40.107.237.110]:16161 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232977AbhGAR1C (ORCPT ); Thu, 1 Jul 2021 13:27:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i6qMPXDltNmi6hGBFpMu6jzBSB0qzO0jQVEy7KNp5Anklj3GTWDH0BR72V8GcAhDYgzwWpO3nPzFxuUSKUZCOTyaXG4ByLYJrOseFaxH6LIgMclPtwBJkUTj+eT7nHDM6N5ougeilvhmZrmDCKVjOr886uRvBGvmMhyVHktNv8cMjpFfsNIV9SW/vDwt4uEPCT2X4Q1ghwzi15CAp3p0owyuMMeoQPeYPqba9viiQ7wVGhkpbMNCVcsPLOJ+qehYEzDa8nPawsGXT1cZZvs2/JDJosja3gUQNgElwRCnsd8mf11gyY7NiCNjR1Q4wXsPfw5MeEHq+uP+SmJZHYvafg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cniL2Flm89r5AXpmDT5Og5sVJ0XxMmH/KVUt9ECFm88=; b=IGfE0A95Yb9ssExCySHA8O+satVomX+fahHxkHigaKa89r/Fgo9mwB8IwbCvUxxBTK/exhkvRTW4kDfsExOq9hoFSGIiHCPqA/+4vrmirgv719zA+1HcIG7XyVqYhRhdTECwjrXBZ68z2GGlzYVwbqNSupMh3J5nT9HeUSWqpGqPvZEimXodPdUjD6mUSv3A8jGQe251JTUDq8CBEYBBULfBRDG6+/gjghNh1DrwNkV6xvsAQtfs01C4YD15JEvJ7qRELCFtycRm6WFqu2GU9z630HKft9djlbdJQAD/YbaDgcfwpZHzY6jn8u54cqUTFzLvNwIj5fusavfhTxnCvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cniL2Flm89r5AXpmDT5Og5sVJ0XxMmH/KVUt9ECFm88=; b=dc/ksfsEvhoTtpND7oQevQxEicc4HCSi6q/A6Q5ALRgyVVfzwYOKKH+i8kI3PXFCoTFF0E8WxCkibtT2jg6z0tlTnMX7ZSDGrTVd5LybaGlhFWy7ch6d/rgn3P6dxrEwmKTzXzWd9N3vbNx1Rxob10Os6m0yUM2o3Q4K3l+VpvA= Received: from BY5PR21MB1506.namprd21.prod.outlook.com (2603:10b6:a03:23d::12) by BYAPR21MB1221.namprd21.prod.outlook.com (2603:10b6:a03:107::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.5; Thu, 1 Jul 2021 17:24:29 +0000 Received: from BY5PR21MB1506.namprd21.prod.outlook.com ([fe80::f126:bfd2:f903:62a3]) by BY5PR21MB1506.namprd21.prod.outlook.com ([fe80::f126:bfd2:f903:62a3%5]) with mapi id 15.20.4308.007; Thu, 1 Jul 2021 17:24:29 +0000 From: Long Li To: Greg Kroah-Hartman CC: "longli@linuxonhyperv.com" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , Jonathan Corbet , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Bjorn Andersson , Hans de Goede , "Williams, Dan J" , Maximilian Luz , Mike Rapoport , Ben Widawsky , Jiri Slaby , Andra Paraschiv , Siddharth Gupta , Hannes Reinecke , "linux-doc@vger.kernel.org" Subject: RE: [Patch v2 2/3] Drivers: hv: add Azure Blob driver Thread-Topic: [Patch v2 2/3] Drivers: hv: add Azure Blob driver Thread-Index: AQHXalTR5lVKFlOZkEmq8/y9Kgt/basqijaAgAMsL9CAAC4xgIAAgSdQ Date: Thu, 1 Jul 2021 17:24:29 +0000 Message-ID: References: <1624689020-9589-1-git-send-email-longli@linuxonhyperv.com> <1624689020-9589-3-git-send-email-longli@linuxonhyperv.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=0b452feb-7d61-4194-aeb5-4d3b5639905a;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-07-01T17:19:08Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6a44b2d5-e570-4b66-70d2-08d93cb5153b x-ms-traffictypediagnostic: BYAPR21MB1221: x-ms-exchange-transport-forked: True x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LEYBuRS3hUBhCkAmIvsoNA2rkMGOertdLiO/4tCZk1fmCBxbHGxWx1L+gLa6as97w+8pnJwOztOk3S4xQ4aK/RsiLYBRnmNjrWGN44pvFjl9MakGYiza1WDOPUhnA+zwCt+ew6S+YSfsHO844rhkKJ07pbWSKSkGRQmb2ayEZVHKs10gUe2l9SDd7CdOAgIPxWYliWKRNkbZ7O02r8gA6O7QiqhyNptXmNQUOrtmSCNQ7sngntqsgVT4QpV7hnIj+YvENgDTDi0OqN3w6YA3E5JlTfq5o03/rDIU1S4j5LanF071Frhuxi9+xt44hmvHeJDZKyapGVGlPfWgmmAp4EFUjhG6HfZLIGW4c0AOqUg0NpkBk8yD22JillHLU4pd6zdoeOQk20HcgcXac3M7nq4QS9RlBRk7xMrjh8w3db55ZzKSbgnye4ZosfkSE+M0uNmjZbGuSfmaV0JUQpCy9THn7etlruXGuK1Ai2TUm6+IZyB3PrmuTMNc2Z9/7eU1jM7qKyh4KDKIPwj1ytwwnOiqK6sMRLZQxexI/sAH/YsQ4ag2jRlHMh/jdebuc6cvjdMol8vsTqmBzGNNzrgo2QW317ckxYYonLI1/FoBzB2dKVkWip+FL/mXm4nYLy1aob/WOMBK9+47Wl0kA8QwoA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR21MB1506.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(5660300002)(52536014)(76116006)(66476007)(122000001)(7696005)(6506007)(478600001)(7416002)(55016002)(38100700002)(66946007)(33656002)(54906003)(8676002)(26005)(4326008)(2906002)(10290500003)(71200400001)(82950400001)(64756008)(82960400001)(86362001)(316002)(66556008)(66446008)(9686003)(6916009)(186003)(8936002)(8990500004);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?N7jH4MxA03iJJjrjs72vcT4+k1ZX3VAL2qux27DbZe/FZStZfOA1OmbpQb3S?= =?us-ascii?Q?BSUOoXyTaXCTTX/3D2mCIFUPQ4x/1JZi8+qqWEvhu7hTrI2WdqR6mAQO4nbC?= =?us-ascii?Q?7oCmy7qh/g0OIA1aZJlODGjn7xn3GIWp2gKPBgabVT5gfy2hxJq5y46XKycp?= =?us-ascii?Q?VDRokBJOlAUwxmUgEnepKKXVKwkl6TXacg8OxOjTFylt1U37bPZlvMlhROqu?= =?us-ascii?Q?1d3F/lBSUV6qtp4mEZMCwlwIOPVk0eAhVFgWUQxOseyTUiqUWsXqUc6ri12j?= =?us-ascii?Q?tvJBNCbqkDB4xZ8VOak79/3NVqgYuSJpmyiKbvqDc/rYbbpl/8FlAZXcAvn3?= =?us-ascii?Q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BEdmlZZZarQ?= =?us-ascii?Q?+shvsglfbTdRQ2ICftVFFFtsKSZNATkaYM3Bw7DugfbDYPTYpIQPhjcvC9od?= =?us-ascii?Q?wQEG7wJPasvglFdwb8ZXzmYW?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR21MB1506.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a44b2d5-e570-4b66-70d2-08d93cb5153b X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 17:24:29.0598 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bVEZ0qoE1rZVHjnNLUE0iGL7T3fDv8jN26v/JOxzyKD+BainaBjiXUo84xDGjUYh3hbIDTgY3zAv6Kpixz4Bow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR21MB1221 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [Patch v2 2/3] Drivers: hv: add Azure Blob driver >=20 > 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 =3D (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 wh= ile > not taking too much system resources. It should work out of box for nearl= y all > customers. >=20 > Please wrap your email lines :( >=20 > Anyway, great, it will work for everyone, no need for this to be changed. > Then just drop it. >=20 > > 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 predic= t their > workload. They have to recompile the kernel if there is no module paramet= er > to do it. So the intent of this module parameter is that if the default v= alue > works for you, don't mess up with it. >=20 > Can you not just determine at runtime that these workloads are overflowin= g > 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 d= evices > (which is why we do not like module parameters for drivers.) >=20 > Please remove this for now and if you _REALLY_ need it in the future, mak= e it > auto-tunable. Or if that is somehow impossible, then make it a per-devic= e > option, through something like sysfs so that it will work correctly per-d= evice. >=20 > thanks, >=20 > greg k-h I got your point, will be removing this.=20 Thanks, Long