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 50782C3F6B0 for ; Thu, 25 Aug 2022 08:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234556AbiHYI6M (ORCPT ); Thu, 25 Aug 2022 04:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbiHYI6M (ORCPT ); Thu, 25 Aug 2022 04:58:12 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49B0EA7AAA; Thu, 25 Aug 2022 01:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=ixxsyxgLb973PnRaZa2775xCgd4CdHjjz5+/rMoW9tU=; t=1661417891; x=1662627491; b=GgXpL1ags4HlmSkJh5UdDoT9KDH9BCb89wB5FiUB5iw/Owm 7xaOMOZkS4S3DMD4rBg6i4hM84uedQpkq9vat+vIEfD64uy+w2CnkrVYp4xvSx1mvehiOO58E21Ev 9XhhhNq5IlwvYD//MDAtUMLXsni8y4uMRQ4JNu++ENVNeLGSbB9eBW/PEmTfchMjEthT3BKRuRMU1 2iv1mUJUoJdqM2yIc4+7KuYthD/fKA2Rw1v+fCp4CniF+rCMacti2gGYxnzvxHDiC1SKmPDwK/NHy M4NJ55aidbmu5GJDoQdN2xvbEm17hozK6GEaeki0+kl3oeccVXfFvHZkGLkGDT+Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1oR8gg-00GzbT-0g; Thu, 25 Aug 2022 10:58:06 +0200 Message-ID: Subject: Re: [RFC/RFT v5 2/4] mac80211: add periodic monitor for channel busy time From: Johannes Berg To: Baligh Gasmi Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Felix Fietkau , Toke Hoiland-Jorgensen , Linus Lussing , Kalle Valo Date: Thu, 25 Aug 2022 10:58:05 +0200 In-Reply-To: <20220719123525.3448926-3-gasmibal@gmail.com> References: <20220719123525.3448926-1-gasmibal@gmail.com> <20220719123525.3448926-3-gasmibal@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 2022-07-19 at 14:35 +0200, Baligh Gasmi wrote: > Add a worker scheduled periodicaly to calculate the busy time average of > the current channel. >=20 > This will be used in the estimation for expected throughput. >=20 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