From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41DC6C7EE29 for ; Thu, 25 May 2023 14:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241271AbjEYOil (ORCPT ); Thu, 25 May 2023 10:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233992AbjEYOij (ORCPT ); Thu, 25 May 2023 10:38:39 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00F4101; Thu, 25 May 2023 07:38:37 -0700 (PDT) Received: from dggpeml500001.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QRrCY2B65z18Lj2; Thu, 25 May 2023 22:34:01 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpeml500001.china.huawei.com (7.185.36.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 25 May 2023 22:38:31 +0800 From: kongweibin To: CC: , , , , , , , , , , , , , , , Subject: [bpf?] [net?] Questions about the impact of ebpf sockmap/redirection on socket performance improvement Date: Thu, 25 May 2023 22:38:14 +0800 Message-ID: <20230525143814.361127-1-kongweibin2@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500001.china.huawei.com (7.185.36.227) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm using ebpf sockmap/redirection to bypass the TCP/IP stack to improve socket communication performance (throughput, latency) between different PODs on the same machine. As concurrent connections or payloads increase, there may be unconspicuous performance improvement or even performance degradation compared to the TCP/IP stack. I have retrieved some performance data, but it does not seem to involve high concurrency and high payloads, I would like to know if community have conducted relevant tests on these scenarios and have any opinions on the poor performance improvement in these scenarios.