From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 DF5A52BE649 for ; Wed, 1 Oct 2025 10:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759314607; cv=none; b=ujjnlTGYnplR7dhfKTs2Tf4RLyAgJuErKY+p5FvdvDhDJDqUnlWwh5jZqJg6Y5DSbTBsKP3hC8FKeIRcEnkuEV3NMQ+SzUJ2Y4nGHbe3RXfr6Q+rGfk9hXlhwMojZz+9ySkUJlsmIf3DMzKL2j7WjoFvCe4CoB0gOkCwoihAFkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759314607; c=relaxed/simple; bh=lpcbaTnRUfRuUjlxvKbi7MippNxGb5EWhV7oCbjdFdE=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PNcXyo+moS/iA24HiT5uDzPr62h/jXBKPZ6n3fsu+Ejh6duam72fwscCePKE66dRmzXb8tv1/MUvTu29JvvDd5km+gw1dOAJCmVdS2aCfADOgi66Mm6213LRZYuusAb2jo4gR+KkE51raAQhs+Cocfy5eqn3TR4SKAhSSmjd8+c= 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.46 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-f46.google.com with SMTP id 98e67ed59e1d1-32ed19ce5a3so5974923a91.0 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=IicsAb9He/NKVtQ/Zqz0FIaWNxceMokW6EQeGnCQ/KHT16P2zIU3W1dA0hOj00V73r meMNlJnBpQytdvYYBBaiWx2fUaNZHINtRbwATiWnXVwPiFg7l4ywS4+2G7i4F66JKiGt 9zJOCfk5PdEsSG85YYFR7IMWyGrvhmrFTzEvrKY5oBGUSYmgIaveOo2Eh6ImWJjl4Xv4 bPknTBHug2SNF7ewy0Kt8+og+3S5LqLZONB21KeTGuEd/4hjnPwe3byH6uonj4QK0+ok mZ/cmIwArCJGLINZeD3vBQnwAMtBCYB6g59C6RL+5bjkDdJuePjR2XWvcYQy67WBBGBY 9IaA== X-Forwarded-Encrypted: i=1; AJvYcCU1vvh6FANvOd0gn1lvxq+6yzbyWwWUw0dQrnpNl8ux4FvraRO6yFQ4LVMuJ+1PO/B3he//xYofMQN9foU=@vger.kernel.org X-Gm-Message-State: AOJu0YzHSltc2xlXUqbybNEEPDGoRpE0+U4FFe+tnTkiQGDhtxX6IhTM Ab5IE/R0EhCQJ/wcFZ/ZgTevRWk7K/ezLhWWeEP+B6wrbuiyjoNTZDbQ X-Gm-Gg: ASbGncuM3eQT8MqEgc1q0c80Am9+1zLM/2FGSqZAlWNqthIHAaUNtxatIch6XLygy7P 4fXuMzX98Qg0p0hC/ybVtjyN8IhCkKyE7/sSioMFmSaecSfRI91vDt4x+vIVeVFCpM4tHBhpUYS EuLVYKUoKygqAYRH1R8EZdreZLlcS42Kq/2rUGvSgKPXRttEvuDVPK9VYLYhapDW7GgPN5opvPZ r4cvv/MBeotAANoW2doj98JNOgSdt/h619ykKorApLwV/7Vr0aJ3tBcyQzjxgjFz9JASLx5jdXu 6+K6Vu39H8Hd6klFsWb+3MxCVmv2l42KLBYAKl2yo5o4F8YGbnsVsKIqSAYSTqlBB1GbiJRBzw2 YYRaGAVx6ly/cN2Qb/OqKoan+P6cPe0vaMIzxIXSluePPKWsolw== 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-kernel@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--