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 X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2110C43331 for ; Sat, 28 Mar 2020 13:04:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 65415206F6 for ; Sat, 28 Mar 2020 13:04:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="unknown key version" (0-bit key) header.d=tlapnet.cz header.i=@tlapnet.cz header.b="QuugFF+E" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726295AbgC1NEc (ORCPT ); Sat, 28 Mar 2020 09:04:32 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41173 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbgC1NEc (ORCPT ); Sat, 28 Mar 2020 09:04:32 -0400 Received: by mail-qk1-f193.google.com with SMTP id q188so13898859qke.8 for ; Sat, 28 Mar 2020 06:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tlapnet.cz; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=c9FsYZw+j8qUJiGGl70LuVf0xQZB6yDoobx3XMK0yCo=; b=QuugFF+ERGyMYP1pIpE9/p4lHidE/7V/A8wyeLWR9mvEtos9yPpj52RS1mje8YcCW/ AIpzCe9PoqPPrrQL9CFf/HaU0otl61+Cr71bJaFhCe2VvTltLE43IxAyYqaLejIBYBu7 R49peHK1UpBMaOcnrcqBrNt3+8R0lJlJRfm4y2U7Yyb3FfEA4+QKH7b5mHGREcjwCz9n UpdLuwaakUyUBc+I2gU0YcGPeaeGGxAfDRMsmdMEtaFgPxqBLx5RyLZbjU2F8Usw3Fby zSR7vvKZzTonZSkSH1MjV8zt7zncD+Flv31CYuQcEaQ6/NvqKUWZDh7f8fXwfv6Frw15 Wy5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=c9FsYZw+j8qUJiGGl70LuVf0xQZB6yDoobx3XMK0yCo=; b=eT7c82z0exGBEMGn7fRvZtrP0i8W2/fqHYD7bUc2hTxjiheYcTeHc6JdolhZ/8BNS3 RKTJycgRV/vV3lC3rSCzyKRMcwow7uqdTPR6EE5QFJjSyiKNo1nrBsngbjHhpPpjEXcN B7qmKyUQiA6S4juCiFO++mMnqi7W0iJMrqjKZSxkKn8/8Ub+T0yv/riQdgZWCCwYdEM8 l0R+QfFVbwAzItHZKblXAA0NxGsqWXIeQIRep47Ttwk7bFLriWkachjz5xtXGKq2V5fg 1G5JUBQNcbvn4/n+zIA44RGrI5IQRIpOVp8J6gspqQu+vVhXwqUJ9wYYDE3A+rtD8VYa mmAQ== X-Gm-Message-State: ANhLgQ3wibDrW2eZrVLD02Wtic+13UQQVtrZIO42zCKBvWtKuU3dsNEp 5ncG/g6H4EKzjuWfQRsheUu6iO86cvdxTg4RfpHYRQ== X-Google-Smtp-Source: ADFU+vtzON+IN0UshcC1IDUvlig3jjicZBMB/xIlCfJIE6WCWpY3iw6aJuK0VWxoHNAVMRqslxpTb0hRrTt+dXxzfGM= X-Received: by 2002:a37:9e05:: with SMTP id h5mr3716801qke.71.1585400670913; Sat, 28 Mar 2020 06:04:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?V=C3=A1clav_Zindulka?= Date: Sat, 28 Mar 2020 14:04:19 +0100 Message-ID: Subject: Re: iproute2: tc deletion freezes whole server To: Cong Wang Cc: Linux Kernel Network Developers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Mar 27, 2020 at 11:35 AM V=C3=A1clav Zindulka wrote: > > Your assumption is not totally wrong. I have added some printks into > fq_codel_reset() function. Final passes during deletion are processed > in the if condition you added in the patch - 13706. Yet the rest and > most of them go through regular routine - 1768074. 1024 is value of i > in for loop. Ok, so I went through the kernel source a little bit. I've found out that dev_deactivate is called only for interfaces that are up. My bad I forgot that after deactivation of my daemon ifb interfaces are set to down. Nevertheless after setting it up and doing perf record on ifb0 numbers are much lower anyway. 13706 exits through your condition added in patch. 41118 regular exits. I've uploaded perf report here https://github.com/zvalcav/tc-kernel/tree/master/20200328 I've also tried this on metallic interface on different server which has a link on it. There were 39651 patch exits. And 286412 regular exits. It is more than ifb interface, yet it is way less than sfp+ interface and behaves correctly. BTW sorry for previous missformated mail. I was trying to put it inside perf report for better visibility.