Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp902734ima; Wed, 6 Feb 2019 10:10:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IYHcHAN+Z+5ymfYczAzG//A7pnQ4km2n4G8QS7ZvW+f2tiPnnqKWGMlbqC8mV8HanIvzHA7 X-Received: by 2002:a17:902:1122:: with SMTP id d31mr11960363pla.246.1549476641458; Wed, 06 Feb 2019 10:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549476641; cv=none; d=google.com; s=arc-20160816; b=PpiXhURx8qDUm54un9/8OnC0VHd0M7PxeqWTnZVvqhbDoG9HsB6a3HlryuSMZZrAdq +GAqHzrfYyBXFJUgU25Hfmj/fd2ooEQPJvUFdfPVOI3XX4T2meRx21RvUUGATYRLIcxv +ut9huT0fv0vsOWrJ13ESPxWenX/4jxCZsMcVSQW5ik5iVKa7OLmRKPHVE4gXA6zRoEX WZwBSKIPsVZ6neUcBk5JPr5BXxm3AC1Xn7SShuE/mObOcOPnLNgoNiwubt13WZ+g8cM5 svY4Wp20js+OxyXDVf2r4CR7GbJSZPd9Mc8VOlUadgL6VVFWgLHwY+oAknsc4LK7LCp7 podw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=QXTfHkeFrG0ex4wvMhI+j3yv4z1h9CI012ygXRer8OE=; b=0LFAihLco2lzUY9g6AFQhrZMYXvOjccgw+OtfXAk/gyaH4kHQOrJ7XtZ4uEEOUX824 lCOSWVByiM/a1v6fp+BlaEt00CMZFqEv7849/ttyklKnDZ4sbGQJbI/brasUqjNVrS0s zRf27jZHuCkGFHh5CrtGOXNsAVzjAWN4Bvgv+kYHggU1t7M9YVzJKgoKUQUJjkBvnsYZ 5ydYqAtyNcntp9CLUb+xXHxa7DtK8xjuWKc0UQkAWfCiOZkXRB6Z8V9h16msIuYjnqA/ Pp64tMoEUS+AQEUXJwTp9GSJzgeWRXFgc50RKBBn3y4Jfe12/40BzqvJriPMrTDRoOcN MTaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=ZU31igy1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si7133722pgf.136.2019.02.06.10.10.20; Wed, 06 Feb 2019 10:10:41 -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=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=ZU31igy1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729112AbfBFSCf (ORCPT + 99 others); Wed, 6 Feb 2019 13:02:35 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53144 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbfBFSCe (ORCPT ); Wed, 6 Feb 2019 13:02:34 -0500 Received: by mail-wm1-f68.google.com with SMTP id m1so3454173wml.2 for ; Wed, 06 Feb 2019 10:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=QXTfHkeFrG0ex4wvMhI+j3yv4z1h9CI012ygXRer8OE=; b=ZU31igy1rYxPtd9veBDtLCPDar7NCvcvoT7nOR2PFJw+60elStCcMdh3T0vNYHCArs tqEPSg+woZg3g4vnfkRCnR3JhYgkTD9FKyCn1ksBfFwb2QuQkP60fOosISG+nDrWPiJM /1YnDQl0gP2zX1UyfK1SiuJ2HleHI/0XKi9qvAT1JwZAxmjTnIhJRwKO0qgUXwW9R16G ENVuF1FQM+KI6BkH3RuM926/GNhDTep5FeBXxDbygBYQ6bj7ppX4I11LaEGMM1YHkyZd EXh2vS6xyHZWtKsqvoW/10IP0EIVFdF/bU9unGmiRgUL4VawN3G1QKeg5W2phXhNQs8X cu0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=QXTfHkeFrG0ex4wvMhI+j3yv4z1h9CI012ygXRer8OE=; b=VAVVg/f09Gi4KkjAdNdN1BCYAeAoda7IRW7RNMVs9VEFps5Fe3S9TRJ35XoJLfENRc RBPXp8eEfW3B9ujiOQvtBESFf8+VYY3aDSjOjQExIU5uLMEUZDPSVL4V4oPdzL2Rs4mx 2Ag0Vf6a8JC+/fWEtN0BwviIfUJw+SF6ZP4WfYJqF0z/2dKdu/LYAPru7DqMveAQhKVv jQYbVahWJ0j2TipY5HMXbBbWv+ykWWuHnNMIRAjRV9Q8OE12wffHoqXnzgIbozu5K5fD VoOW72Raz+N6vsetisDhrh/RoPg4fluEWqUgTFLIYMQ+I26kDUBa7oTT92FFVti/vUd3 3lAw== X-Gm-Message-State: AHQUAuasASW8CWOJXRGEOv3NI0liVJqL8JqWdXAHtV5nnSNac65WmeFQ XplvAd18M4/tNvIqlAmnydOckQ== X-Received: by 2002:a1c:ed17:: with SMTP id l23mr4237612wmh.51.1549476153007; Wed, 06 Feb 2019 10:02:33 -0800 (PST) Received: from localhost ([5.102.238.15]) by smtp.gmail.com with ESMTPSA id z17sm17140910wrv.2.2019.02.06.10.02.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 10:02:32 -0800 (PST) Date: Wed, 6 Feb 2019 20:02:29 +0200 From: jackm To: =?ISO-8859-1?Q?H=E5kon?= Bugge Cc: Jason Gunthorpe , netdev@vger.kernel.org, OFED mailing list , rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mlx4_ib: Increase the timeout for CM cache Message-ID: <20190206200229.00002e2f@dev.mellanox.co.il> In-Reply-To: References: <20190131170951.178676-1-haakon.bugge@oracle.com> <20190205223608.GA23110@ziepe.ca> <13750147-482A-4F90-976A-033C52DCF85E@oracle.com> Organization: Mellanox X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Feb 2019 16:40:14 +0100 H=E5kon Bugge wrote: > Jack, >=20 > A major contributor to the long processing time in the PF driver > proxying QP1 packets is: >=20 > create_pv_resources > -> ib_create_cq(ctx->ib_dev, mlx4_ib_tunnel_comp_handler, =20 > NULL, ctx, cq_size, 0); >=20 > That is, comp_vector is zero. >=20 > Due to commit 6ba1eb776461 ("IB/mlx4: Scatter CQs to different EQs"), > the zero comp_vector has the intent of let the mlx4_core driver > select the least used vector. >=20 > But, in mlx4_ib_create_cq(), we have: >=20 > pr_info("eq_table: %p\n", dev->eq_table); > if (dev->eq_table) { > vector =3D dev->eq_table[mlx4_choose_vector(dev->dev, > vector, ibdev->num_comp_vectors)]; > } >=20 > cq->vector =3D vector; >=20 > and dev->eq_table is NULL, so all the CQs for the proxy QPs get > comp_vector zero. >=20 > I have to make some reservations, as this analysis is based on uek4, > but I think the code here is equal upstream, but need to double check. >=20 >=20 > Thxs, H=E5kon >=20 Hi Hakon and Jason, I was ill today (bad cold, took antihistamines all day, which knocked me out). I'll get to this tomorrow. -Jack