Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2652951rwp; Fri, 14 Jul 2023 09:11:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFlfxWjAG+ZMNsuRobJX2AcJGOy8ztx401OHjd0k6e51TOLdyeEzA3znkbk5BVsdyVLGc8k X-Received: by 2002:a05:6a20:1611:b0:132:f61e:7d41 with SMTP id l17-20020a056a20161100b00132f61e7d41mr5960233pzj.5.1689351095730; Fri, 14 Jul 2023 09:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689351095; cv=none; d=google.com; s=arc-20160816; b=lWSbx3rz8CMYP/f5Stasu0PCNjp3ftze2V93VYf5rW8pwlNb0PoktcIM3Hwgbdp62l BweR2QN5VmGjXvVMz0EoXoy/yGeOqsR2buNRvribWer6aMUtpdAdwdVY84463ei69tdX GlbWpxZ2FTA+AK+SzoA2Fm5EH1wEOJj69z6rHzbIuIK6vL43LVwU7RhDquEr4X5Z9jZF 4/SQKWnhufIu2qvbwLBaKn322034sIu/1redI4cwZwuRfgnPdVAMNHP/jppGdRnrS6Fk dtw7VKdPJB3uNVX4L55L/oHsIPpvPedMuG/ZVLjGyr91hANEshHSqrirZLszzs/65NQc yfAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=23iFgtcXrSM/wqHFC50gmHfN2DfdTspVrWVZMTWF67M=; fh=KEiuP4mU0wkkKa+nJR0RWWtNziPYT33Qo0Vv1mpjqbo=; b=tU5rEu1iISuwzCdTYktje+2brqGPm6rqh66s1PYHpSEJfA+mwDuRxX5Ib0HBUwDRrG UrHJkGftk/Fdv/pi499nQ0BsDk3U84FWo1MvjNZvvSKjArRb8l9Rmm3xhuz6AtdiaflG KuvuZW8UX6SR7N0o4hAQs7KeCA0hFw2+mhoZho3lKHQOP6sLShREVu96flcHM1ypw34G KuAcGNxJ8I+SxeGHyiAV3WI10N7Fz0rPzKYfP2N4fz/0/dAHsTOTmn6nzadQAkioqJOi VU52pI6pMIF3x7f8ju3JIy3ryt2e2DVKjrkb0aPvfD1bV/IV1XsHyRwlDyaC9ngOkOTI VyfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=jVVndNxS; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv124-20020a632e82000000b0053f01212571si7203888pgb.257.2023.07.14.09.11.22; Fri, 14 Jul 2023 09:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@ziepe.ca header.s=google header.b=jVVndNxS; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236112AbjGNPzJ (ORCPT + 59 others); Fri, 14 Jul 2023 11:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjGNPzI (ORCPT ); Fri, 14 Jul 2023 11:55:08 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5B17359F for ; Fri, 14 Jul 2023 08:55:06 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-668704a5b5bso2013848b3a.0 for ; Fri, 14 Jul 2023 08:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1689350106; x=1691942106; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=23iFgtcXrSM/wqHFC50gmHfN2DfdTspVrWVZMTWF67M=; b=jVVndNxSJywFc3NlTe7W4yP3yU7NCgigpzMr+FQbbEvXGao5yncV705uEsUHe+SsoH 99ahIHBc808HZFPmudJtgOEMfoALXOrhBGEH/5iOoJP0M0QQaAurUJwVbwvDh8rCWyFm 0mOdTbt8hmBwtxDeUh5QRPqHwXPIqgVZNGldoXiTm0eDhVqBfh+70yBcJwuiProAPmNP q/bsMSOuP5fGR6gpmHPhHBCAGFMboGnKQPaY5xYLCGUxj9eKBY7inLb+03hQDErrcHpw o1qif2uGPWsACD+WU5iH4kmBUQe/D+z7BmCSmmyvl9y8UNGUZZpD2xWPHtSqInNnfuFp 5rXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689350106; x=1691942106; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=23iFgtcXrSM/wqHFC50gmHfN2DfdTspVrWVZMTWF67M=; b=TOwD7JDMw6ybScwlvQiRBwpei+gATYeu/KnbXnyCg9wi76uqPBa+TuKYSSPJzlEV+X sg9CfYAmqwoex5cEQasuWXU5aLLfy0ORAyQZizDvuARs2uBuimPzWio+33Okjg3gPfF8 +cLL/HMlPoos9nmocSe12dGaUjxKmG4hqyjoe/A30PjP/Rm86yFdMgCUbgZwytWdeA0A fBIXX6GWp+yvcSqgEzJaDQE0W6D+rvIfm7/wlzKdeX36PpkyAonbu0LgfZfqwgicL6iB RVoCGmWfHaswPeM4ffrSlz2nrosfnhPgxw7vlxG06BvIGk7pGxeB51E/EQm+zqK4nW1f Q2DA== X-Gm-Message-State: ABy/qLYdKxdlHn6NvvbCOQdNtQd5VbkaOW1kuqCICRXgV6SV5bOT5/5B F5SDjoqEVo/djmIslzhBq5Fexg== X-Received: by 2002:a05:6a00:1951:b0:668:731b:517e with SMTP id s17-20020a056a00195100b00668731b517emr5873790pfk.24.1689350106259; Fri, 14 Jul 2023 08:55:06 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-25-194.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.25.194]) by smtp.gmail.com with ESMTPSA id t9-20020a63b709000000b0055be951145csm7037672pgf.36.2023.07.14.08.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 08:55:05 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qKL8K-0017jv-8O; Fri, 14 Jul 2023 12:55:04 -0300 Date: Fri, 14 Jul 2023 12:55:04 -0300 From: Jason Gunthorpe To: Mina Almasry Cc: Christian =?utf-8?B?S8O2bmln?= , Hari Ramakrishnan , David Ahern , Samiullah Khawaja , Willem de Bruijn , Jakub Kicinski , Christoph Hellwig , John Hubbard , Dan Williams , Jesper Dangaard Brouer , brouer@redhat.com, Alexander Duyck , Yunsheng Lin , davem@davemloft.net, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Bianconi , Yisen Zhuang , Salil Mehta , Eric Dumazet , Sunil Goutham , Geetha sowjanya , Subbaraya Sundeep , hariprasad , Saeed Mahameed , Leon Romanovsky , Felix Fietkau , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , Matthias Brugger , AngeloGioacchino Del Regno , Jesper Dangaard Brouer , Ilias Apalodimas , linux-rdma@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jonathan Lemon , logang@deltatee.com, Bjorn Helgaas Subject: Re: Memory providers multiplexing (Was: [PATCH net-next v4 4/5] page_pool: remove PP_FLAG_PAGE_FRAG flag) Message-ID: References: <04187826-8dad-d17b-2469-2837bafd3cd5@kernel.org> <20230711093224.1bf30ed5@kernel.org> <20230711133915.03482fdc@kernel.org> <2263ae79-690e-8a4d-fca2-31aacc5c9bc6@kernel.org> <143a7ca4-e695-db98-9488-84cf8b78cf86@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-wireless@vger.kernel.org On Fri, Jul 14, 2023 at 07:55:15AM -0700, Mina Almasry wrote: > Once the skb frags with struct new_abstraction are in the TCP stack, > they will need some special handling in code accessing the frags. But > my RFC already addressed that somewhat because the frags were > inaccessible in that case. In this case the frags will be both > inaccessible and will not be struct pages at all (things like > get_page() will not work), so more special handling will be required, > maybe. It seems sort of reasonable, though there will be interesting concerns about coherence and synchronization with generial purpose DMABUFs that will need tackling. Still it is such a lot of churn and weridness in the netdev side, I think you'd do well to present an actual full application as justification. Yes, you showed you can stick unordered TCP data frags into GPU memory sort of quickly, but have you gone further with this to actually show it is useful for a real world GPU centric application? BTW your cover letter said 96% utilization, the usual server configuation is one NIC per GPU, so you were able to hit 1500Gb/sec of TCP BW with this? Jason