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 6B124EB64DA for ; Wed, 12 Jul 2023 17:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231893AbjGLRmQ (ORCPT ); Wed, 12 Jul 2023 13:42:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232117AbjGLRmO (ORCPT ); Wed, 12 Jul 2023 13:42:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06256CF for ; Wed, 12 Jul 2023 10:42:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9811B617DF for ; Wed, 12 Jul 2023 17:42:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3482C433C7; Wed, 12 Jul 2023 17:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689183732; bh=wG8UUXNP3lOA9oLQq/E55c0IUNpqh5X988ZONVpNi1w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h54a7qPL1C5+e+vdm81szDvXyNSBOWtx1CMu5QnsbncweaA9c6kZobdlNc0bbELxN fYgezlmaI09gWuV2meXrEroaPdAGaDvrH6yBkz6/z1I6nX2k1v/oTEOkoSPnKN8MEB e/Lb31yHKKIOrI7BX2UFWtHmal85yrJH+Qo2WgpA3QXENjfKIkyjYBRAnPm6NpipYM +0x+KtnveYOY5d0Aet1N4/zUElyO26VYyBZ8gJNOCQkiNCnak4b24ZIH1Pky8DAUZe 59VIIshp7XG3aLKahSfkXgzQykXSwGyYENUswAiZHKibY0g10kqwce2SJ9sN27CUrn jO+AielX9JudQ== Date: Wed, 12 Jul 2023 10:42:10 -0700 From: Jakub Kicinski To: Yan Zhai Cc: Ivan Babrou , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, Eric Dumazet , "David S. Miller" , Paolo Abeni , Steven Rostedt , Masami Hiramatsu , David Ahern Subject: Re: [RFC PATCH net-next] tcp: add a tracepoint for tcp_listen_queue_drop Message-ID: <20230712104210.3b86b779@kernel.org> In-Reply-To: References: <20230711043453.64095-1-ivan@cloudflare.com> <20230711193612.22c9bc04@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Jul 2023 11:42:26 -0500 Yan Zhai wrote: > The issue with kfree_skb is not that it fires too frequently (not in > the 6.x kernel now). Rather, it is unable to locate the socket info > when a SYN is dropped due to the accept queue being full. The sk is > stolen upon inet lookup, e.g. in tcp_v4_rcv. This makes it unable to > tell in kfree_skb which socket a SYN skb is targeting (when TPROXY or > socket lookup are used). A tracepoint with sk information will be more > useful to monitor accurately which service/socket is involved. No doubt that kfree_skb isn't going to solve all our needs, but I'd really like you to clean up the unnecessary callers on your systems first, before adding further tracepoints. That way we'll have a clear picture of which points can be solved by kfree_skb and where we need further work.