Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21605582ybl; Mon, 6 Jan 2020 07:50:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwZApGCmYu5fFLyaqYdPuxf5oEyPHua72mLvvzFKPhvx/eYEZ3NR/grOQfSYZk2R+9o4orz X-Received: by 2002:a9d:32f:: with SMTP id 44mr66544589otv.234.1578325809331; Mon, 06 Jan 2020 07:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578325809; cv=none; d=google.com; s=arc-20160816; b=Huexh6P6WjgywnrL3qR0+RKgNtus9jjhUmHrtZrNhEP7V0UJwRdYfGnrlItZhPWviN Lk5ykyKhRdgSpVokEHQCh3LnIrx1fFs6ycb4WrCFQvDUFsYnV4p47g/F90Zw9D/OeS63 FPBvQtAfQsYZ2BeFRHhxfWedk/S57VEyMRPbwBi85xBLE36NS1kIZhDiweIipOAzJZ+B vllVn7tEVdgoP9WrKkUi2zQUpCSbKS2EJEB78axqEmjV+VvSQmUejKA0TuUacGFP5LuG 1wd3/phDDeR94uy6yLGfaQ1FyuoPpy40QyCJfJ94EuNC/arUn8OD5lCxUwtxPxlRVRl5 lj/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=i1na0HCsb535wuonLgk59/teYCiL0OwsWypEFZrgy9w=; b=RAhiMPa+aWz53GAh/W5bJ0BsjHJh6r7T8yBtIdpxZuyDscZa0oJ734KIH31Py85q8g X8b/NnTdQfFiDBQ8kNE60zm9apV1aPSC6Mb4Keq54mVRu4c1jm390cF5pRz3g5Rcgrlm 1YGKpoSgT4srzLkanzz7t3yOxuBQT/7j4SCvE5eQBVrWsU3qZ6AP0CwTh2zUm5JQbW9o D3UnXqnfTTFE0yxJggQOGEF6rAZwuiXbHk1Jl/D7hysv0fpcn+we97aeMzngZYVYeenU 1nwEfOj5kZR+WmvhaVcu1vIGSx6Lx/7l/SkN/p0G16Mv2UmBJJvJOe7spnRAE4v4AfLT nH/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k89si34277910otk.173.2020.01.06.07.49.50; Mon, 06 Jan 2020 07:50:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726690AbgAFPsE convert rfc822-to-8bit (ORCPT + 99 others); Mon, 6 Jan 2020 10:48:04 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46276 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgAFPsD (ORCPT ); Mon, 6 Jan 2020 10:48:03 -0500 Received: by mail-lf1-f66.google.com with SMTP id f15so36644911lfl.13 for ; Mon, 06 Jan 2020 07:48:02 -0800 (PST) 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=JwvXY9tqurF7UPby/hKiLmI+vwuu8lkFlUh/uN9hNic=; b=Hn/cweu2M6FZ7choq4dMiPWtJyJuTvwAJEut5S/zWR7D76XVoe1o4aHzIHoRGb+Lhe J4i8qcwRd75Ym7qIE37Ea4qyGi5rfgC09+/aqsAKU/rU3yRMvV2betpz5YQJFV77FyKQ XW3wn6r/x+J7DwvThnbpQCxWVdTu0LsOENniHwIVVEFMa19FDZOQir6pC3jE9LyFMRAt O9BSAKhak8dp3zAU5wduF7V72mT3WEmMoWTlSNHjB1MF2mlC7QpKV5YQN8GvFjbywvPu YP2M1QCA4IxM7cFeE6O4U/LsHpa4xyv91L0jbx2QTs8nj6jzg3wymqqRTwoHH6Jv2yxh 3BCg== X-Gm-Message-State: APjAAAWBphkSSyDzPuGCTH5U3cXxrDx8VHtipjPgDqlQrSiONy/tw47/ RZ6M8gs4nyG1tBl/FcQ2nfBQgZpavz5jAELVfHs= X-Received: by 2002:a19:5f05:: with SMTP id t5mr57935506lfb.149.1578325681927; Mon, 06 Jan 2020 07:48:01 -0800 (PST) MIME-Version: 1.0 References: <20191222172423.131033-1-toke@redhat.com> <5bab549a72d526f4fd0f708f14b49a7af6e2c0b9.camel@sipsolutions.net> <87r20ck3x9.fsf@toke.dk> In-Reply-To: <87r20ck3x9.fsf@toke.dk> From: John Yates Date: Mon, 6 Jan 2020 10:47:50 -0500 Message-ID: Subject: Re: [Make-wifi-fast] [PATCH v5] mac80211: Switch to a virtual time-based airtime scheduler To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Johannes Berg , linux-wireless , Kan Yan , Make-Wifi-fast , Yibo Zhao , Rajkumar Manoharan , Felix Fietkau Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Jan 6, 2020 at 10:20 AM Toke Høiland-Jørgensen wrote: > Or do a middle ground thing where we use 32-bit arithmetic > for the per-station weights, but go to 64-bit for the weight sum? I > don't really have a good grip on how much of a performance impact we're > talking about here, so I'm not sure which I prefer... Double width accumulation is very common in many applications. Double width addition and comparison are _much_ cheaper than double width multiplication and division. /john