Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp552484imw; Wed, 13 Jul 2022 03:46:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vIKNiN2D+m4ZjdinFsiWExDZy/v1LLVEhYkCNXeQZCEcrtJ8jf8pvW8QtCU/TFKMBhqhmg X-Received: by 2002:a17:90a:8044:b0:1ef:7a95:9910 with SMTP id e4-20020a17090a804400b001ef7a959910mr3197144pjw.165.1657709172199; Wed, 13 Jul 2022 03:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657709172; cv=none; d=google.com; s=arc-20160816; b=u0SEo08Vuyeu1N3aKuMn7+tjm9RA0gY7Mva9GVl+CdJOE9w5zNt84O9SgyR7rVY02P vLbV62uP/UFHjmhHif4hu1cgGpPcTDvSRMG4OJ/B8aXUXZ3cliIzMr7DDMqi7FndfmxQ /nOTsjG3snWRaewB785oQeE/+yqO5pEze2DkfsipHEfi2qX4du8hEdVO+5XIpMa454X5 6DNCerEbOssYAdYvJ+KM4aSphWfPreMjcW0hE8CBOAChugB9IIE293fpvfvJrjeLx8NG 2zI+TsITw/AwYip2qk1x5xfT7qpWaRPGtp6ehsTx0b712MMrKNoSMvHXpFITnZzoyICz COdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wHmQ4QutF9xLy8a32/xGDr4CB2rcz5qRvqhIsboHxus=; b=amfIEBKZk/xMAAadpF4UQUKpeTqijQfPMDFr6VkyE2lPtsTgnkt1IX4VXBE7ZYx+6j XMOf/Hpz7oDpmzdFK7Sp8Pr/q3gl2YNM/OI38wsLMJT+wAqaIn9ugm86enwL6jIst+cf 7I5vl+48/HQacngtjcqBcbMAOReBE7hOyKHbb7KymU+MEW4iHcVshy17nGSP5YpOSKav KesWXiwX7PMKnIntRlNlSJqfQExGsp2I/yS9kldysJkC9PCwgR8cNmSf3wHBg1CThQBT jgZMgESe+9kbntNjhy92lyNBMuqpm8KnpNYEq/FOOCe3XcW8wkPm3gxQ5A/jW5qbilhW Wfaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=FCMpJerl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb8-20020a17090b4a4800b001f025888a0fsi2230674pjb.129.2022.07.13.03.45.58; Wed, 13 Jul 2022 03:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=FCMpJerl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235972AbiGMKXm (ORCPT + 99 others); Wed, 13 Jul 2022 06:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236021AbiGMKX3 (ORCPT ); Wed, 13 Jul 2022 06:23:29 -0400 Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D81FB8E9; Wed, 13 Jul 2022 03:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=wHmQ4QutF9xLy8a32/xGDr4CB2rcz5qRvqhIsboHxus=; b=FCMpJerlIFQDhcbFGN31XMhAlB Dyb1l9AOPzR26jZVjqfwDKgBNmKaTYL7nVXoA1xai6NsXQeQQ82Qzu589JcDOZfcDGzuAiO+R0o5g fIPQi9dnf81OW5s4HZkKLLqY5LPwNfFrvSe6ACpDCPVthMmSBMHdVr/kHEC8kiR3izaHxZdceeGhi 5romADZ0TD7SoBKMNsygQcPINfBc3vg8Wa4Gfp/ewx5OvPWnpxN37hKdt8ufHXwkp86aVv7eNXrBc i8tYPo8uVO8dhZecQCjxTogwEK95Oqp498g+hstlJm/xJ/+3FFEprFpk+AYMbbbfweuppmgQlAArX QrKjHzP2FnJp6E/eu7UF5UzyLsdnmlX3O6hZKPsvDox7jAUBpwb+rDXDUhmFK8jkmLTNFHdRKELW+ a33x8rNmc+JRWYifK1WMN/pIqHBwGXvm8yxhj5uJAVnsRLqBYcXphx6xtTq7qJTXMAvgbl03FM8+D CutdT+XiAoBlWHfbOz3balCpDiXuYsx30BwPfQybZ3B3V2uSg2N69pJzgSaGipwn3tofYDBSqOARK 76E4aiOGlLSh+xAG0nYZtr1PofnrUboxRWnapzHgqWT3cR4oej7MaDMiRGnBy3Of+zEj4YCMcYRpI GzK3XIU2qpRX+/RTTFVzP1jnbeDC77jN4sjQvyA8Y=; From: Christian Schoenebeck To: Dominique Martinet Cc: Latchesar Ionkov , Eric Van Hensbergen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Nikolay Kichukov Subject: Re: [V9fs-developer] [PATCH v5 11/11] net/9p: allocate appropriate reduced message buffers Date: Wed, 13 Jul 2022 12:22:50 +0200 Message-ID: <3177156.tURSKFNe1E@silver> In-Reply-To: References: <4284956.GYXQZuIPEp@silver> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mittwoch, 13. Juli 2022 11:29:57 CEST Dominique Martinet wrote: > Christian Schoenebeck wrote on Wed, Jul 13, 2022 at 11:19:48AM +0200: > > > - for this particular patch, we can still allocate smaller short buffers > > > for requests, so we should probably keep tsize to 0. > > > rsize there really isn't much we can do without a protocol change > > > though... > > > > Good to know! I don't have any RDMA setup here to test, so I rely on what > > you say and adjust this in v6 accordingly, along with the strcmp -> flag > > change of course. > > Yeah... I've got a connect-x 3 (mlx4, got a cheap old one) card laying > around, I need to find somewhere to plug it in and actually run some > validation again at some point. > Haven't used 9p/RDMA since I left my previous work in 2020... > > I'll try to find time for that before the merge > > > As this flag is going to be very RDMA-transport specific, I'm still > > scratching my head for a good name though. > > The actual limitation is that receive buffers are pooled, so something > to like pooled_rcv_buffers or shared_rcv_buffers or anything along that > line? OK, I'll go this way then, as it's the easiest to do, can easily be refactored in future if someone really cares, and it feels less like a hack than injecting "if transport == rdma" into client code directly. Best regards, Christian Schoenebeck