Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7F442D1F40 for ; Wed, 1 Oct 2025 10:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759314608; cv=none; b=h3cP1nR/JeX2oWuCIspNAaN3Ui6es2lwBdGOD9e8ru7C9hjnPGYSwGaeMyrXMviX1NWNbFRcpTz5NCdg2ArMaAGdZL0BwVPcg3TJ2BMGKY8Pj3GxldyDhfcJW5uv/EkhfGEOfyyjo1pxzsxeqkbks4OTLHQCJO8JsIksA/Mn/P8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759314608; c=relaxed/simple; bh=lpcbaTnRUfRuUjlxvKbi7MippNxGb5EWhV7oCbjdFdE=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jgPah5EOKPCyB2rGaVTa3hR89pfiTPqALcO9seq9h87c/Ga89NZch/cNtKTsFHvTPjq4HpXeHenaVuOID9pGVB1jd5g9XuLDVnO84xB5/HLrM6RxJFbVqIOHvWS5ITaIEM0HvUoKV7I1iKJ2iE4sLO1n0dvWawS9n8nDKUVM/UY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LN4oECF6; arc=none smtp.client-ip=209.85.216.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LN4oECF6" Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-33082aed31dso7770681a91.3 for ; Wed, 01 Oct 2025 03:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759314604; x=1759919404; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=+Fvvc2wJV4y/adOnS6TVe7Zorj1unil+xBTIrzA8bkw=; b=LN4oECF6HYqrTDe+J/1iFgvvBgpF+ylX/BvnGJ2gzWGqCOLBwZWzVdVZe4YDBcofmA WRGYXuZgjyGX4wJyaCo5qH9daAPc+L9Z+dZ0coRPFX88n5596085TpgMmfcSrQ1pr3Rs qG07v2FlTmy/4HxWEeme1eptGO9PgQ8Nay2iwYnvZkCGT3tkx3q09RPAibF/iUnJDh/f HrnFByyQmiinRkIQTG/Fdk2pxRRbHCBd1HnnJ5w6llR8z+uBoaMMa9xPQ3mpcXhdMtDx t9EWKjOEyjBE1uwIVJ3ayJz4Wy4TzVgev76WVQNCUfKGxwCRmivNXvrpXEVfypdWca1/ 9EZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759314604; x=1759919404; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+Fvvc2wJV4y/adOnS6TVe7Zorj1unil+xBTIrzA8bkw=; b=TWEkzEVg+XxWl4wHtPyAPbNNXAMYsulOF2fWwy/2tKBMHB80HwWz9xOLTPjEhnfreP XpsyxlgsW20W2nxNQU3Ihyzn8JJsFnUk4TN1Ho25ZdPEXPeqRSP5H1gDBCenwMMlCxG9 lNdDlyAKqCwXojwbQovgzSA2gpPnqaZX0tU3WEfGuN2m7hTfg2zjjSmC2MMEpDdCU8/0 usprcG4HRmcUJ6vOlAkMGyv438BShn+qh7WXeHc8HqRXNjndFxlZqblv3SU6NUTvCSj1 aWJ3iw5NrQLkvfmp0ORqJyZFpelaOVYSzP7eE8TOvJv3Uyscz+icPBnK9txbYBPMQG/z S4+g== X-Forwarded-Encrypted: i=1; AJvYcCVz/ze18faFvrQgW+zyBKSqhmnt/PegLBbd7xkxB46W3jhEW+q7eCWv18A6EOgXxYOSL3O45TgAp24=@vger.kernel.org X-Gm-Message-State: AOJu0YxoX6tdiClWzKThJE2HzTUSjd8Ac+lsA13RtXi8IS+lH34latfK mZKLf2dbw10XzEe7IDSSrJqSIiTu3RpC7+i6rreXrZAJGUhMr7GSU8k2 X-Gm-Gg: ASbGnctZvBTw5tB5/Y94La2Bz5beJEOvF8ZjpWGGP3DqfLLvFb56yWx07Q54BQTMWfk rgRuV4T2dL8vwVF3G7ujvt6iU5XG5CCQ8ZlIEUS32YKjksX8yVIJXnJD3O1nYHu+B+zYUL9jrcC d0e57pARnw2W1TceMXh//a1JsSvy7HDXEOCedHmNMhPZDJ3ppgsH9XPYICGFbmm9QZXAYySJmip qxAWrRQONxNgLQHAgbivkW7TLEqMJqDPg88B8+YvH553vnzq3FF2iAe64F76nCDNvHGtACpeEkl Wd4rsFPCHWHYHugiSWIyUNNjzjipsmMNZflg9MEvghRDCRZeKaR74Yf83u+L5ZOJ/Ce7Akv/OdB r2MaTt6kG4fu6y5b8qn9yxRqTwkbkQtxWyBJKd6XBpvn+RWeCOw== X-Google-Smtp-Source: AGHT+IGlOP08FechFri9XhBd09rOWOVrXywqRW8pZP7UrkJv21iqrkorW0M3GD4lm+V6u0a1W3KkFQ== X-Received: by 2002:a17:90b:4d06:b0:30a:4874:5397 with SMTP id 98e67ed59e1d1-339a6ea3208mr2952898a91.9.1759314603841; Wed, 01 Oct 2025 03:30:03 -0700 (PDT) Received: from archie.me ([103.124.138.155]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b608f0fe65esm643463a12.0.2025.10.01.03.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 03:30:02 -0700 (PDT) Received: by archie.me (Postfix, from userid 1000) id E93B544507EC; Wed, 01 Oct 2025 17:29:59 +0700 (WIB) Date: Wed, 1 Oct 2025 17:29:59 +0700 From: Bagas Sanjaya To: Halil Pasic , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , "D. Wythe" , Dust Li , Sidraya Jayagond , Wenjia Zhang , Mahanta Jambigi , Tony Lu , Wen Gu , Guangguan Wang , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH net-next v5 1/2] net/smc: make wr buffer count configurable Message-ID: References: <20250929000001.1752206-1-pasic@linux.ibm.com> <20250929000001.1752206-2-pasic@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XTnKR8OXozLogMib" Content-Disposition: inline In-Reply-To: <20250929000001.1752206-2-pasic@linux.ibm.com> --XTnKR8OXozLogMib Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 29, 2025 at 02:00:00AM +0200, Halil Pasic wrote: > diff --git a/Documentation/networking/smc-sysctl.rst b/Documentation/netw= orking/smc-sysctl.rst > index a874d007f2db..5de4893ef3e7 100644 > --- a/Documentation/networking/smc-sysctl.rst > +++ b/Documentation/networking/smc-sysctl.rst > @@ -71,3 +71,39 @@ smcr_max_conns_per_lgr - INTEGER > acceptable value ranges from 16 to 255. Only for SMC-R v2.1 and later. > =20 > Default: 255 > + > +smcr_max_send_wr - INTEGER > + So called work request buffers are SMCR link (and RDMA queue pair) level So-called > + resources necessary for performing RDMA operations. Since up to 255 > + connections can share a link group and thus also a link and the number > + of the work request buffers is decided when the link is allocated, > + depending on the workload it can be a bottleneck in a sense that threads > + have to wait for work request buffers to become available. Before the > + introduction of this control the maximal number of work request buffers > + available on the send path used to be hard coded to 16. With this contr= ol > + it becomes configurable. The acceptable range is between 2 and 2048. > + > + Please be aware that all the buffers need to be allocated as a physical= ly > + continuous array in which each element is a single buffer and has the s= ize > + of SMC_WR_BUF_SIZE (48) bytes. If the allocation fails we give up much > + like before having this control. > + > + Default: 16 > + > +smcr_max_recv_wr - INTEGER > + So called work request buffers are SMCR link (and RDMA queue pair) level Ditto. > + resources necessary for performing RDMA operations. Since up to 255 > + connections can share a link group and thus also a link and the number > + of the work request buffers is decided when the link is allocated, > + depending on the workload it can be a bottleneck in a sense that threads > + have to wait for work request buffers to become available. Before the > + introduction of this control the maximal number of work request buffers > + available on the receive path used to be hard coded to 16. With this co= ntrol > + it becomes configurable. The acceptable range is between 2 and 2048. > + > + Please be aware that all the buffers need to be allocated as a physical= ly > + continuous array in which each element is a single buffer and has the s= ize > + of SMC_WR_BUF_SIZE (48) bytes. If the allocation fails we give up much > + like before having this control. > + > + Default: 48 Thanks. --=20 An old man doll... just what I always wanted! - Clara --XTnKR8OXozLogMib Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCaN0CowAKCRD2uYlJVVFO o0wMAQC5im7T2Vp9QlkibFW/54g3imCkfNlm7IUNsqBjTp2m9AEA1GNBLgxsziTy v2vNJmcJSA7s6ugOR+dFS8j67OYO3Qs= =jHsY -----END PGP SIGNATURE----- --XTnKR8OXozLogMib--