Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp232716imu; Thu, 10 Jan 2019 22:44:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XhJAgpDIVqDi5sEwdOfX5pQAY/dErH2tO7tMlYCDCRhSQFkHD168NT9ZKFgy6/h1sYsRS X-Received: by 2002:a17:902:7687:: with SMTP id m7mr13351495pll.187.1547189071658; Thu, 10 Jan 2019 22:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547189071; cv=none; d=google.com; s=arc-20160816; b=nbEVnm3AXFxUSb+1pBYZkZTS/b6oiU/LqqKAajZHL97utqZqwodTkVdL++53/tI4KK 9mspq5DXRkALUiHfPYnN2ZICStmIFOKcVTh6/WkTKygulG5Yznw46tN5Ptp4Yq7Ohg42 QPWvZKTD8PdxNaMiEx7kNnH5QfPx+Ip2b9t0+yERPV3ZxPm7zT5AonvXsM9eunJyyQrj WKnKCeYqo1I/soRqlCkOooT4XYjbu2l/OMs5NqQz3f4zjOSayAQjZ4M70VbPRk6YMQWt dLPpeTFViypehTvmmnncjWZjueS2HS5TY/O2EYoU//9FiGClbLCS0ZIImhoXeUMzei5o pwPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Mh8Y13SDTRaV+A1oBQTFShssINOe7TO814WDWYQK8PQ=; b=w9CPaFgqeEcSN0dqRkjNg91HBb1ViYL6XsXV4npMRDBD8dEBVs/cg5Yk3LumZlXUCn +DzXBsw9RG35SnCKzG4PGPh5KqKtJl5LrPwLvyEJz2VyO+kZeiI9sl246igPmJa4baHi eIR1PRtpvizOZk74xWdveCCV0T57/L9Tj+ooyr6W3vjxS9TwIEj7aKCFPa9HchBvK0zk qxAtVUaW5uihoviXciLeTI7RtEP8O1yCO/5B6s0PGFfcMh6tqv1lajUE6Z0qLgUN7mxL UaA362nme+hVe/hlMYaFPllQMfzQ0uv2wcSOzRgqqGHlGS4k7acJFmv4dxaun8O9E1EL lovA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eIDfgAtl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si74963751pgm.238.2019.01.10.22.44.16; Thu, 10 Jan 2019 22:44:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eIDfgAtl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730390AbfAKDyK (ORCPT + 99 others); Thu, 10 Jan 2019 22:54:10 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:46618 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728825AbfAKDyJ (ORCPT ); Thu, 10 Jan 2019 22:54:09 -0500 Received: by mail-ot1-f66.google.com with SMTP id w25so11974797otm.13 for ; Thu, 10 Jan 2019 19:54:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mh8Y13SDTRaV+A1oBQTFShssINOe7TO814WDWYQK8PQ=; b=eIDfgAtldZAUkxiAEktyusIxFrSMYnws+/L0hQWS//wF4Y0HA+7ZIl+Mmdy+qfeAVo iHks2mCHLn6TkXfgMTIOT97fyZ7rPdCdyx6+U/HG4f7f/fwXu8UnYY5LMvCN+lf2m0T8 Cs7HBAjdcNi5IxDxypz7by0O0/0/iIzJNs/YnIQ0St2g2op8hLI3WyX+JJHUz70JhGgp fhHC2xCsL0VWsuQWKpNUF3DxamDenll90bycc6Ts1C3I44Y7jQQhSdN0IbXHzZak+cEt WpxUrf4/FOX0HspiJ2k/bIUBF2tONoocrXF65kL5E32PP0E9nl4Nn4M+zpQqZeYVadi2 6LpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mh8Y13SDTRaV+A1oBQTFShssINOe7TO814WDWYQK8PQ=; b=gf/rSdNOIPwsKHrfP2ti6h6GBwOalKTdt1K7sVNVxHPWqeMLnp4H40kLASFNNMh4Dv dqF7A0YUi1nhJT3F9VmYIM/nrS6381dSPf6M8OP88d2HeiGFivezkf29D0/Sa5szbfa+ krl1/1wdgPDLHUr8TXqXgLeOWkEB7DSdNBgsoQdwX1tmrOb+OiUizTIuV4YieVBamGZR h8c7zqM5VRqocEjjrjcKc+FHCodttnZ7OOYyMcbS4Nz0Mu+/ZKgzQoo4g9pald1WoPiu LIZ8RwLoJv5BkNLzIgMPVNWAnm4bScQhQ2iHo6hu6mxHb4xwDRJBl0bkIlS5wGXttgES V7qw== X-Gm-Message-State: AJcUukc9Se+BasfRHDT5thcT+E5NwsiWaOj5pNWSMdBIzdlwYyYZrjmS uuNG8Md1ttuD1MPIMEJ0qVRFsBqsgPa3WXyI2cX95ZS/ X-Received: by 2002:a9d:14e:: with SMTP id 72mr8898399otu.54.1547178848846; Thu, 10 Jan 2019 19:54:08 -0800 (PST) MIME-Version: 1.0 References: <20181213105924.30384-1-shameerali.kolothum.thodi@huawei.com> <4fe81519-1ddc-1d73-8c7a-cd0865299b53@arm.com> In-Reply-To: <4fe81519-1ddc-1d73-8c7a-cd0865299b53@arm.com> From: Ganapatrao Kulkarni Date: Fri, 11 Jan 2019 09:23:57 +0530 Message-ID: Subject: Re: [PATCH v3] irqchip: gicv3-its: Use NUMA aware memory allocation for ITS tables To: Marc Zyngier Cc: Shameer Kolothum , LKML , shankerd@codeaurora.org, Ganapatrao Kulkarni , Robert Richter , Hanjun Guo , John Garry , linux-arm-kernel@lists.infradead.org, Linuxarm , "Nair, Jayachandran" , gkulkarni@marvell.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shameer, Patch looks OK to me, please feel free to add, Reviewed-by: Ganapatrao Kulkarni On Thu, Dec 13, 2018 at 5:25 PM Marc Zyngier wrote: > > On 13/12/2018 10:59, Shameer Kolothum wrote: > > From: Shanker Donthineni > > > > The NUMA node information is visible to ITS driver but not being used > > other than handling hardware errata. ITS/GICR hardware accesses to the > > local NUMA node is usually quicker than the remote NUMA node. How slow > > the remote NUMA accesses are depends on the implementation details. > > > > This patch allocates memory for ITS management tables and command > > queue from the corresponding NUMA node using the appropriate NUMA > > aware functions. This change improves the performance of the ITS > > tables read latency on systems where it has more than one ITS block, > > and with the slower inter node accesses. > > > > Apache Web server benchmarking using ab tool on a HiSilicon D06 > > board with multiple numa mem nodes shows Time per request and > > Transfer rate improvements of ~3.6% with this patch. > > > > Signed-off-by: Shanker Donthineni > > Signed-off-by: Hanjun Guo > > Signed-off-by: Shameer Kolothum > > --- > > > > This is to revive the patch originally sent by Shanker[1] and > > to back it up with a benchmark test. Any further testing of > > this is most welcome. > > > > v2-->v3 > > -Addressed comments to use page_address(). > > -Added Benchmark results to commit log. > > -Removed T-by from Ganapatrao for now. > > > > v1-->v2 > > -Edited commit text. > > -Added Ganapatrao's tested-by. > > > > Benchmark test details: > > -------------------------------- > > Test Setup: > > -D06 with dimm on node 0(Sock#0) and 3 (Sock#1). > > -ITS belongs to numa node 0. > > -Filesystem mounted on a PCIe NVMe based disk. > > -Apache server installed on D06. > > -Running ab benchmark test in concurrency mode from a remote m/c > > connected to D06 via hns3(PCIe) n/w port. > > "ab -k -c 750 -n 2000000 http://10.202.225.188/" > > > > Test results are avg. of 15 runs. > > > > For 4.20-rc1 Kernel, > > ---------------------------- > > Time per request(mean, concurrent) = 0.02753[ms] > > Transfer Rate = 416501[Kbytes/sec] > > > > For 4.20-rc1 + this patch, > > ---------------------------------- > > Time per request(mean, concurrent) = 0.02653[ms] > > Transfer Rate = 431954[Kbytes/sec] > > > > % improvement ~3.6% > > > > vmstat shows around 170K-200K interrupts per second. > > > > ~# vmstat 1 -w > > procs -----------------------memory-- - -system-- > > r b swpd free in > > 5 0 0 30166724 102794 > > 9 0 0 30141828 171148 > > 5 0 0 30150160 207185 > > 13 0 0 30145924 175691 > > 15 0 0 30140792 145250 > > 13 0 0 30135556 201879 > > 13 0 0 30134864 192391 > > 10 0 0 30133632 168880 > > .... > > > > [1] https://patchwork.kernel.org/patch/9833339/ > > The figures certainly look convincing. I'd need someone from Cavium to > benchmark it on their hardware and come back with results so that we can > make a decision on this. Hi Marc, My setup got altered during Lab migration from Cavium to Marvell office. I don't think, i will have same setup anytime soon. > > Thanks, > > M. > -- > Jazz is not dead. It just smells funny... Thanks, Ganapat