Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp412646rwe; Thu, 25 Aug 2022 02:42:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR6T0rgAi0xyaQgG+wK0uVz+RPP00U7sppz7RSFiitaf0vHegpYTzvqwQwoOKKsBHkzjXYK9 X-Received: by 2002:a17:903:2c9:b0:172:57d5:d6f0 with SMTP id s9-20020a17090302c900b0017257d5d6f0mr3206804plk.61.1661420550910; Thu, 25 Aug 2022 02:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661420550; cv=none; d=google.com; s=arc-20160816; b=s7LvQ1XErcz62uUcR059SQaaTPI81Kvp6OWkwE+xQH+kNSO2+Vg0LE+uOCYpT53aPI bHuS0fU8r03ycdQbuGe3hbSnCdKQN7bVFX5txaF1VCCpm+cmw3qSCzvSaxgjdh7cEaas 0mVTUeqK0StZgrCXSMtnAIGTMqKQqiUsm7AxoSf6vNQCEVvHg2KQ9pvUfaRHZD5Rd8g3 xPFRPJH0wUr8ZCcVuB9GHmGIzGDgWWZlP8O0HxY0y7ll6p8JIixhAECT7zvSOCbsCk1A RWrB92n/vw8oOKPhvnV9DsvuW5bYr9sYOZcvgMlbch6FXxIo9qsYkCp8N2d6ViZ9JF/4 rriw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bHJbCxqGrMvRJ8HABrOLQY8kdlTtP1fT6llzjdoahEI=; b=YoYIXA3Hg+cGwbiiauY43Z2pK7MZa8gImIKqLGSS0J1oNLZsGthNc8A87YC++XGOJY vNU7qho9n6WGf8BqL9apoSbGISN+XEfb1VVKua0fLvd29waOM4uhJ7ji9zAY+MCkUelO PEJLSxKPE2glXsSdVdLgaCM3SSdwb7MIL6DdjDAkQUNvGPG8UE+kKXlwpEWa5vsmRp2h WKIojyQQITDkyGO+wORRNP5C2K/O61bM3S1QpHuX2adfnWQC6pBMp9UzARtfjY2Y+0z6 562wAd8FgQC8ex7t9V9lp9njhVO2N9eVFQmVc9qdx4mer/CBpY9nVYOyFOMLteTAEwOW YEKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F6dgYpp2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x25-20020aa79579000000b005379d1ed662si614272pfq.82.2022.08.25.02.42.19; Thu, 25 Aug 2022 02:42:30 -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=@gmail.com header.s=20210112 header.b=F6dgYpp2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239961AbiHYJ2M (ORCPT + 63 others); Thu, 25 Aug 2022 05:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237349AbiHYJ2C (ORCPT ); Thu, 25 Aug 2022 05:28:02 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C4E3A4B0A; Thu, 25 Aug 2022 02:28:01 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id q18so17833125ljg.12; Thu, 25 Aug 2022 02:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=bHJbCxqGrMvRJ8HABrOLQY8kdlTtP1fT6llzjdoahEI=; b=F6dgYpp2CWa9EjXLyNUb2hkEr++WEmvoD1Es9jHGjD3nl2s+cUcKf5qo2cYDMhDudh IMnajyC+ijg09SfazUHsyiO0CJsRSfB0wPEfyb0993Y1r4EIbJi/1LdCi3HDAa2NJJ8x +zC5tDOVxxCwf6bf8VbNmzwnczL/SPqiYvkU52CUK7TS4elW2cXs3FEUXudhl83S8u0e SrcF8UkWbV35NopLBg8rBAeTUzSBCzzYntRNyOVr8P409yXN8j/WZFl0g97yIgcnKXs1 p38SZYMTy2HmGrbnncEsoQwuSsGvytdaxcgP4HxRFbYOOD0lP9V8LJKk3fFJvFeIQvoT SqiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=bHJbCxqGrMvRJ8HABrOLQY8kdlTtP1fT6llzjdoahEI=; b=R70juOU0TZ9gLbX2BipB38LuUSDYFWfiARCxU9idVW5wvqDp4piQ0V+Cc/RAz5MTod rUxqbSLs53l9TkzUwAQ/ZGqJL/T+LrQrUgYvIT9xoV2vkIiKdcqMdVm4JW2JjMUuQKr6 sycDa5QQVuvgbpoqPtIIY3oP9k2Nh9mf0Fj15LE74zx0pkaCaGHNB1GAsvQVhR/Ws0mE I+/SJbvM3zsbRPrkF/mE7ztNDQ72iIxh4oEoWwmKMsHovB44Tfd8MEAch6RsHfdzQ00x 21rzPuN7281bQffBfVX6AY28ce9Dtwf9hASyNCjrhhnpZDS2V/qHQ1cOQ2k0ykj+T6YP QPPA== X-Gm-Message-State: ACgBeo2SEXae4RP46q+6S/Tj+qclO6MOprNmYSv5uIUYTyb5dD+Enpt+ VpWaM5LLZxHl7VF49ynvtBgcowwCC6RXXpt7AZ8= X-Received: by 2002:a2e:b0ca:0:b0:261:d46a:4672 with SMTP id g10-20020a2eb0ca000000b00261d46a4672mr775822ljl.460.1661419679767; Thu, 25 Aug 2022 02:27:59 -0700 (PDT) MIME-Version: 1.0 References: <20220719123525.3448926-1-gasmibal@gmail.com> <20220719123525.3448926-3-gasmibal@gmail.com> In-Reply-To: From: Baligh GASMI Date: Thu, 25 Aug 2022 11:27:48 +0200 Message-ID: Subject: Re: [RFC/RFT v5 2/4] mac80211: add periodic monitor for channel busy time To: Johannes Berg Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:MAC80211" , "open list:NETWORKING [GENERAL]" , open list , Felix Fietkau , Toke Hoiland-Jorgensen , Linus Lussing , Kalle Valo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Ok, noted ! I will try to find a way or maybe remove this part, since the busy time is not trivial to be used in the estimation, as I thought. Thanks for your reply. Le jeu. 25 ao=C3=BBt 2022 =C3=A0 10:58, Johannes Berg a =C3=A9crit : > > On Tue, 2022-07-19 at 14:35 +0200, Baligh Gasmi wrote: > > Add a worker scheduled periodicaly to calculate the busy time average o= f > > the current channel. > > > > This will be used in the estimation for expected throughput. > > > > I really don't think you should/can do this - having a 1-second periodic > timer (for each interface even!) is going to be really bad for power > consumption. > > Please find a way to inline the recalculation with statistics updates > and/or queries. > > johannes