Re: [PATCH rfc 6/6] nvme-rdma: use intelligent affinity based queue mappings

2017-04-06 Thread Sagi Grimberg
Use the geneic block layer affinity mapping helper. Also, generic nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); + nr_io_queues = min_t(unsigned int, nr_io_queues, + ibdev->num_comp_vectors); + Add a comment here? Will do

Re: [PATCH rfc 6/6] nvme-rdma: use intelligent affinity based queue mappings

2017-04-03 Thread Christoph Hellwig
On Sun, Apr 02, 2017 at 04:41:32PM +0300, Sagi Grimberg wrote: > Use the geneic block layer affinity mapping helper. Also, generic > nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); > + nr_io_queues = min_t(unsigned int, nr_io_queues, > +

[PATCH rfc 6/6] nvme-rdma: use intelligent affinity based queue mappings

2017-04-02 Thread Sagi Grimberg
Use the geneic block layer affinity mapping helper. Also, limit nr_hw_queues to the rdma device number of irq vectors as we don't really need more. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/nvme/host/rdma.