[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9819bc7a-f560-2b6f-6ec2-41c9bb9ed6df@grimberg.me>
Date: Thu, 2 Nov 2017 09:57:24 +0200
From: Sagi Grimberg <sagi@...mberg.me>
To: Jes Sorensen <jsorensen@...com>
Cc: Networking <netdev@...r.kernel.org>, leonro@...lanox.com,
Saeed Mahameed <saeedm@...lanox.com>,
Kernel Team <kernel-team@...com>,
Christoph Hellwig <hch@....de>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: mlx5 broken affinity
Jes,
> I am all in favor of making the automatic setup better, but assuming an
> automatic setup is always right seems problematic. There could be
> workloads where you may want to assign affinity explicitly.
Adding Thomas to the thread.
My understanding that the thought is to prevent user-space from
messing up the nice linear assignment, but maybe this might be too
conservative?
The patch that prevented user-space from touching managed irq affinity
assignments:
--
commit 45ddcecbfa947f1dd8e8019bad9e90d6c9f2665c
Author: Thomas Gleixner <tglx@...utronix.de>
Date: Mon Jul 4 17:39:25 2016 +0900
genirq: Use affinity hint in irqdesc allocation
Use the affinity hint in the irqdesc allocator. The hint is used to
determine
the node for the allocation and to set the affinity of the interrupt.
If multiple interrupts are allocated (multi-MSI) then the allocator
iterates
over the cpumask and for each set cpu it allocates on their node
and sets the
initial affinity to that cpu.
If a single interrupt is allocated (MSI-X) then the allocator uses
the first
cpu in the mask to compute the allocation node and uses the mask
for the
initial affinity setting.
Interrupts set up this way are marked with the AFFINITY_MANAGED flag to
prevent userspace from messing with their affinity settings.
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Christoph Hellwig <hch@....de>
Cc: linux-block@...r.kernel.org
Cc: linux-pci@...r.kernel.org
Cc: linux-nvme@...ts.infradead.org
Cc: axboe@...com
Cc: agordeev@...hat.com
Link:
http://lkml.kernel.org/r/1467621574-8277-5-git-send-email-hch@lst.de
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
--
Powered by blists - more mailing lists