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.6 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 BF425C433E0 for ; Sun, 24 May 2020 10:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 408522076C for ; Sun, 24 May 2020 10:04:08 +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="DvA5rBSH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387587AbgEXKEH (ORCPT ); Sun, 24 May 2020 06:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728774AbgEXKEG (ORCPT ); Sun, 24 May 2020 06:04:06 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C64DC061A0E for ; Sun, 24 May 2020 03:04:06 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id 190so15182398qki.1 for ; Sun, 24 May 2020 03:04:06 -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=/4uOlFNcEo9hHnnj68o/7kmzl4EqZZsXbxLZ4h+0H7k=; b=DvA5rBSHmLnO94fkMmbFmKdyWYB/0v8sJd/pAUol/S6brM3AtxJEYe7iRF4//JvLwv 4X+9Hx/L6m+wwyf/Hhfoz8fIimBRWQujfqfgAX19nOjN76Qt2Jfx/dXjafVmTSqZ3QFq SEcjWYSGo5m3zErfkQ1noHSm58cmGAq3H8hidg3bZHv4Uwzd1m9Qpcpf8H8HUb4Df0E0 qnUi6ibrkhXk/L1KXj4A6mLU+nQ2L3upt8cR/btfpuyteVVsAW+wUO/ZixoBCkKQqitN chgnCgkaj7QTcWMJG05yBVsfSG/4EU6H7vEHS1QFLLMr81vh2MCuObEiJUg59SOk0Y6/ p72Q== 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=/4uOlFNcEo9hHnnj68o/7kmzl4EqZZsXbxLZ4h+0H7k=; b=YNOBrH6NZy+w9+iJoUxkg5OjO9s7mhV+dM6LUHG8+WyBdQaUmnysHS4mPEMJjN2dna tqNpCjf/b6/ozKUmF0Et0L8moITn+pHeQ+J7lPqNivDK/LTtJpwmMe26zVnmOAs/OpSL vR7k/9VX35hpisYWDC718pAW59ztttJAylVGTLxajCM0HAqWEVRCm6WN/HtZBYb5tjN8 cmotPLhhg58xwBK+No8vi6OWxvCa4g5Y5rFJeakhS0C2/9LN9OjQlqBTSZ6We1EidGpZ IchoIEgOdHT+WQqY9o9AnbLKAyFh0hJh5QoepOiJzX2n3YQdv1+/cIAqXKWu53fGaUSF Qugw== X-Gm-Message-State: AOAM532dzredpr3dl0LRx7IZRrGI0lKSrpolkV0s4QZqRW2j29zv5uIH nMmMfGu0a4DZzpHY93jWBOc7jtz8sE1Cx3SM1HpcUO7RKHwxcg== X-Google-Smtp-Source: ABdhPJzCx7UsUJqpbV5jk3kF06+e+1bk3dZx88aiao84qZVF70hXy7B4jjQQFRkRO80e5Wqc3R4ev8tmvqmyiyLdmq4= X-Received: by 2002:ae9:f811:: with SMTP id x17mr13576849qkh.71.1590314645379; Sun, 24 May 2020 03:04:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?V=C3=A1clav_Zindulka?= Date: Sun, 24 May 2020 12:03:54 +0200 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 Tue, May 19, 2020 at 7:57 PM Cong Wang wrote: > > On Tue, May 19, 2020 at 1:04 AM V=C3=A1clav Zindulka > wrote: > > > > > > Let me think how to fix this properly, I have some ideas and will pro= vide > > > you some patch(es) to test soon. > > > > Sure, I'll wait. I have plenty of time now with the main problem fixed = :-) > > Can you help to test the patches below? > https://github.com/congwang/linux/commits/qdisc_reset2 > > I removed the last patch you previously tested and added two > more patches on top. These two patches should get rid of most > of the unnecessary resets. I tested them with veth pair with 8 TX > queues, but I don't have any real physical NIC to test. > > Thanks. I've tested it and I have to admit that your Kung-fu is even better than mine :-D My large ruleset with over 13k qdiscs defined got from 22s to 520ms. I've tested downtime of interface during deletion of root qdisc and it corresponds to the time I measured so it is great. /usr/bin/time -p tc qdisc del dev enp1s0f0np0 root real 0.52 user 0.00 sys 0.52 I've even added my patch for only active queues but it didn't make any difference from your awesome patch :-) Thank you very much. You helped me really a lot.