Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1684067

Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for ITS tables

Path csiph.com!goblin1!goblin2!goblin.stu.neva.ru!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Ganapatrao Kulkarni <gpkulkarni@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for ITS tables
Date Mon, 10 Jul 2017 11:00:03 +0200
Message-ID <u1CHV-2Lf-29@gated-at.bofh.it> (permalink)
References <tWhXr-6Sh-5@gated-at.bofh.it> <tXU0F-7Ql-1@gated-at.bofh.it> <tXUtI-8g6-21@gated-at.bofh.it> <tXZWq-3cX-25@gated-at.bofh.it> <tZaws-2Ha-63@gated-at.bofh.it> <tZaZr-2UC-21@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fISDQSSfWaW0XPfzvF0vyFgPA2RPcqiP6a5igblNPCQ=; b=h5lHydISRfl1HjVess+pynab60aNAAqiqxSvjdMYH3lE18niI3UIMZU2kyVR39s5j2 XPDCXRZ/crcpRvttOUSZYZ7FnaDgM+HTxokWBZ/mRcWll6iZ2ZUOKgsBW45vq63brzqN wxMLqt7baXvUuphCfG3ONELHjx0yiAkifk4P2V0E9AIHSjwm+DdAPZHbe/YNwHx7jAsP ylJ1ab/XOR+CUMAyYbz/iYFTanfokOWYPCDiZF0wvUYVLkMyXhb5ANHd7/vFVcVPTwyd I7+kTU4HZHHK4YiD+Drr6yXpbt78jE3Osz70SWaTxVdGx1HYOyBT/CpfHdlKGNtlPsBL vMaQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fISDQSSfWaW0XPfzvF0vyFgPA2RPcqiP6a5igblNPCQ=; b=lJkKVn3QKQW8CfS6YyZJgWlSCfFF69MW13dcUMlVmVkgc45UGIWEnfePLs48ypZGwz BpK5eQXFmHDbqV1zCOEvHYp/c4UGtE5kmB0OWSINOWjtpdSANo706e8pfG2p52rFE6SC 8/8TS9RmI2tZbWG1Di/uh69wOZe5FrwTKui06u+AZVk8A9pPNG/XVZ0l+meHssmIJfYi BzezmRqcg75Cjy+NKuwfGdVfwoIDceIF4e/brGj58BU+7b9/OB5j+7ZztpruvRbyDOEY cEFBrL5li85N7lE4TxeILRTdI88VwtmZjlgkjnsPX7XC8fn6GZLaikrXhyMDdB2fBn+P Ae+g==
X-Gm-Message-State AIVw111R0CBN0vcOISdxLQ1XSfxQ6XKNCht28NPjitiIoEeX7juF+8qY jHpA7+E0Ce0g6tAyWAEpU74I55JwFA==
X-Received by 10.202.78.15 with SMTP id c15mr9333095oib.203.1499676510243; Mon, 10 Jul 2017 01:48:30 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 70
Organization linux.* mail to news gateway
X-Original-Cc Shanker Donthineni <shankerd@codeaurora.org>, linux-kernel <linux-kernel@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Jason Cooper <jason@lakedaemon.net>, Vikram Sethi <vikrams@codeaurora.org>, Jayachandran C <jnair@caviumnetworks.com>, "ganapatrao.kulkarni@cavium.com" <ganapatrao.kulkarni@cavium.com>
X-Original-Date Mon, 10 Jul 2017 14:18:29 +0530
X-Original-Message-ID <CAFpQJXVVeAB7RgGKGX-hwo-0ZU8KHzy9ipgbXN0NHorUpk-5Kw@mail.gmail.com>
X-Original-References <1498405569-463-1-git-send-email-shankerd@codeaurora.org> <CAFpQJXU84OTEp-1BteQeSqNy3Ya2hDskZA=Th_0f47qtS9-ucw@mail.gmail.com> <CAFpQJXVh0ojzwqZmT5OgBArx9rpK0_yDw_+gyP8LAkT1e4HWrQ@mail.gmail.com> <ab7e26a8-5ab7-7c47-f19c-cb02fbd397b6@arm.com> <ba64069e-f3a3-de85-df47-01008d7b3513@codeaurora.org> <27b46938-ae23-9750-e0c7-09fa472d3297@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1684067

Show key headers only | View raw


Hi Marc,

On Mon, Jul 3, 2017 at 8:23 PM, Marc Zyngier <marc.zyngier@arm.com> wrote:
> Hi Shanker,
>
> On 03/07/17 15:24, Shanker Donthineni wrote:
>> Hi Marc,
>>
>> On 06/30/2017 03:51 AM, Marc Zyngier wrote:
>>> On 30/06/17 04:01, Ganapatrao Kulkarni wrote:
>>>> On Fri, Jun 30, 2017 at 8:04 AM, Ganapatrao Kulkarni
>>>> <gpkulkarni@gmail.com> wrote:
>>>>> Hi Shanker,
>>>>>
>>>>> On Sun, Jun 25, 2017 at 9:16 PM, Shanker Donthineni
>>>>> <shankerd@codeaurora.org> wrote:
>>>>>> The NUMA node information is visible to ITS driver but not being used
>>>>>> other than handling errata. This patch allocates the memory for ITS
>>>>>> tables from the corresponding NUMA node using the appropriate NUMA
>>>>>> aware functions.
>>>>
>>>> IMHO, the description would have been more constructive?
>>>>
>>>> "All ITS tables are mapped by default to NODE 0 memory.
>>>> Adding changes to allocate memory from respective NUMA NODES of ITS devices.
>>>> This will optimize tables access and avoids unnecessary inter-node traffic."
>>>
>>> But more importantly, I'd like to see figures showing the actual benefit
>>> of this per-node allocation. Given that both of you guys have access to
>>> such platforms, please show me the numbers!
>>>
>>
>> I'll share the actual results which shows the improvement whenever
>> available on our next chips. Current version of Qualcomm qdf2400 doesn't
>> support multi socket configuration to capture results and share with you.
>>
>> Do you see any other issues with this patch apart from the performance
>> improvements. I strongly believe this brings the noticeable improvement
>> in numbers on systems where it has multi node memory/CPU configuration.
>
> I agree that it *could* show an improvement, but it very much depends on
> how often the ITS misses in its caches. For this kind of patches, I want
> to see two things:
>
> 1) It brings a measurable benefit on NUMA platforms

Did some measurement of interrupt response time for LPIs and we don't
see any major
improvement due to caching of Tables. However, we have seen
improvements of around 5%.
IMO, we should merge this patch to have NUMA aware allocations and to
avoid unwanted inter-node transactions.

Tested-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>

> 2) it doesn't adversely impact non-NUMA systems
AFAIK, no impact on non-NUMA and on single node NUMA systems.

>
> I can deal with (2), but I have no way of evaluating (1), mostly for the
> lack of an infrastructure exercising multiple ITSs at the same time.
>
> Thanks,
>
>         M.
> --
> Jazz is not dead. It just smells funny...

thanks
Ganapat

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Shanker Donthineni <shankerd@codeaurora.org> - 2017-07-03 16:30 +0200
  Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Marc Zyngier <marc.zyngier@arm.com> - 2017-07-03 17:00 +0200
    Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Shanker Donthineni <shankerd@codeaurora.org> - 2017-07-03 17:20 +0200
    Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Ganapatrao Kulkarni <gpkulkarni@gmail.com> - 2017-07-10 11:00 +0200
      Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Ganapatrao Kulkarni <gpkulkarni@gmail.com> - 2017-07-10 11:10 +0200
        Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Marc Zyngier <marc.zyngier@arm.com> - 2017-07-10 11:30 +0200
          Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Ganapatrao Kulkarni <gpkulkarni@gmail.com> - 2017-07-10 12:30 +0200
            Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Shanker Donthineni <shankerd@codeaurora.org> - 2017-07-10 14:40 +0200
              Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Marc Zyngier <marc.zyngier@arm.com> - 2017-07-10 16:00 +0200
            Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Marc Zyngier <marc.zyngier@arm.com> - 2017-07-10 16:00 +0200
              Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Shanker Donthineni <shankerd@codeaurora.org> - 2017-07-10 17:00 +0200
                Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Marc Zyngier <marc.zyngier@arm.com> - 2017-07-10 17:20 +0200
      Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for  ITS tables Marc Zyngier <marc.zyngier@arm.com> - 2017-07-10 11:10 +0200

csiph-web