From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759588AbcHaKoE (ORCPT ); Wed, 31 Aug 2016 06:44:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:32837 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758348AbcHaKoA (ORCPT ); Wed, 31 Aug 2016 06:44:00 -0400 Date: Wed, 31 Aug 2016 12:44:09 +0200 From: Greg KH To: kys@microsoft.com 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 Message-ID: <20160831104409.GA22845@kroah.com> References: <1467853335-9374-1-git-send-email-kys@exchange.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467853335-9374-1-git-send-email-kys@exchange.microsoft.com> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :(