From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422720AbcHaR4v (ORCPT ); Wed, 31 Aug 2016 13:56:51 -0400 Received: from mail-cys01nam02on0133.outbound.protection.outlook.com ([104.47.37.133]:52093 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161366AbcHaR4q (ORCPT ); Wed, 31 Aug 2016 13:56:46 -0400 From: KY Srinivasan To: Greg KH CC: "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "vkuznets@redhat.com" , "jasowang@redhat.com" , "leann.ogasawara@canonical.com" , "K. Y. Srinivasan" Subject: RE: [PATCH 1/1] Drivers: hv: Introduce a policy for controlling channel affinity Thread-Topic: [PATCH 1/1] Drivers: hv: Introduce a policy for controlling channel affinity Thread-Index: AQHR19y9lBhzH6u8d06FYon7GhWP46BjOXuAgAB4u/A= Date: Wed, 31 Aug 2016 17:56:42 +0000 Message-ID: References: <1467853335-9374-1-git-send-email-kys@exchange.microsoft.com> <20160831104409.GA22845@kroah.com> In-Reply-To: <20160831104409.GA22845@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=kys@microsoft.com; x-originating-ip: [103.194.21.41] x-ms-office365-filtering-correlation-id: cf40ed05-fc43-4dce-a7ba-08d3d1c82ad5 x-microsoft-exchange-diagnostics: 1;DM2PR0301MB0783;6:bAcz8CHmgQWuT35oxwDx1ld2MJoNXbipoP0x9vsN0H38m3PZwjZME8YugV/n3p6JUX7F5lc/yTYGRxd/mnwORah6nMuzEWk9wFxlcCOjV4zQaqTrjUXLCVDVIsLcPWYH7dkWolWngPHqgcwTdOQ6srzUTjrp7GyAzT6TtGXD3uOdHLTv2/SGN/KUBGhgvvpNZFsK+uovUEq5+FKzynm8RVI+U0FDoRRbZQmtUu2ZJM2MpOmLXggBPokF+Oyv5/HoOjDDic5bA6fagNPSC35uLRSMfPZpRk/yNzxaN1FkBMPh1k8C3wj5fukRR4qj5gtqL4ZXw0eOmkMM32g2KEa/Tg==;5:ZHOFgSdkRqcPqSy6Gn0fGcIP5EPphxtcJ2U0UiMv/FqXTOF62Vk7/mz68dtTa7/nDNY4URF7y2k/tZJWzlZpS41AbaTE5ijM27qbrytRNSBPFi3wbSGFf2imzoc/ldGDamyN7i6nbjPC18yz1AAFgw==;24:k1SwNo9gnNfdn0kFC8uSqA1PqLD6sr+pX9uICgFVFxeAPpbf/MAziM6GMRJw+nhEZkyHPFPTnmNbgLPamlyNjWmGFjJaoIJQRC/90yIUL2E=;7:HrTDO/GknWhqfj70WIy0Psw0UW9Ui240+GwFzknEJ8ShpTFVrgSlx8COD8vYpkhyK6qwymv0RMHGlT9pgdq9gLS5rgsCXaMsqbKp171ZijGZtMOYA6SpnLWcOv+SyIDHhP3jQX3qOahKdDgFhnJb170DO9pwaWhvKjvBpy7IekCi0nK8HDrijcYl8TtMblMMzn7guDEIWJnyzVRdXp84FTQSjqBFK6mE27n5JQ6UohggSEsfcj3JaMvT8+ZyEzDi x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0783; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(278428928389397)(9452136761055)(140211028294663)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038);SRVR:DM2PR0301MB0783;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0783; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(13464003)(24454002)(377454003)(199003)(189002)(8936002)(81156014)(7846002)(8990500004)(11100500001)(5005710100001)(2950100001)(87936001)(105586002)(77096005)(9686002)(68736007)(4001430100002)(3660700001)(10090500001)(586003)(10290500002)(122556002)(305945005)(110136002)(86612001)(102836003)(97736004)(10400500002)(5660300001)(2900100001)(66066001)(19580405001)(81166006)(92566002)(76576001)(3280700002)(99286002)(189998001)(2906002)(4326007)(5002640100001)(76176999)(8676002)(106116001)(101416001)(54356999)(6116002)(19580395003)(3846002)(7696003)(74316002)(7736002)(50986999)(33656002)(86362001)(107886002)(106356001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB0783;H:DM2PR0301MB0783.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2016 17:56:42.9493 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0783 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u7VHuwIh006835 > -----Original Message----- > From: Greg KH [mailto:gregkh@linuxfoundation.org] > Sent: Wednesday, August 31, 2016 4:14 PM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; devel@linuxdriverproject.org; > olaf@aepfle.de; apw@canonical.com; vkuznets@redhat.com; > jasowang@redhat.com; leann.ogasawara@canonical.com; K. Y. Srinivasan > > Subject: Re: [PATCH 1/1] Drivers: hv: Introduce a policy for controlling channel > affinity > > On Wed, Jul 06, 2016 at 06:02:15PM -0700, kys@exchange.microsoft.com > wrote: > > From: K. Y. Srinivasan > > > > Introduce a mechanism to control how channels will be affinitized. We will > > support two policies: > > > > 1. HV_BALANCED: All performance critical channels will be dstributed > > evenly amongst all the available NUMA nodes. Once the Node is assigned, > > we will assign the CPU based on a simple round robin scheme. > > > > 2. HV_LOCALIZED: Only the primary channels are distributed across all > > NUMA nodes. Sub-channels will be in the same NUMA node as the primary > > channel. This is the current behaviour. > > > > The default policy will be the HV_BALANCED as it can minimize the remote > > memory access on NUMA machines with applications that span NUMA nodes. > > > > Signed-off-by: K. Y. Srinivasan > > Signed-off-by: K. Y. Srinivasan > > --- > > drivers/hv/channel_mgmt.c | 68 +++++++++++++++++++++++++--------------- > ---- > > include/linux/hyperv.h | 23 +++++++++++++++ > > 2 files changed, 62 insertions(+), 29 deletions(-) > > Also doesn't apply cleanly :( > I will fix this and resend. K. Y