From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 28C973B29D for ; Mon, 29 Jun 2020 06:26:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593426364; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lVKvWmLGIRvQpyR4vQ8DIedtUocb/PxNeIZaoSaX1xg=; b=gJAzPAU3tsknOFCxNc1nMvtpsDj/gBsb0Lb6m2F7m+akYtFa3DiuW/2fqCPGkjcy174KXO xCD1a9EKOYOP/LixAsY5QmSGdAYRxYW61Tka1F/6eePuGAJel9GGbybTDyUFrNoABg15yz OpYL+x73fSxX8s51ETc5RmiB3ZP+IUE= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-240-z0dgk-rDNXu2XK7wacvejQ-1; Mon, 29 Jun 2020 06:26:02 -0400 X-MC-Unique: z0dgk-rDNXu2XK7wacvejQ-1 Received: by mail-qt1-f200.google.com with SMTP id d45so4067418qte.12 for ; Mon, 29 Jun 2020 03:26:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Af4KpIzEgr4pIiV2LebnToq75R4GNH67/fmvTzeBA6Q=; b=FpelyLG3+s1+4yUDC7EvHuHbWRr8ftZG4uD+x9Pw3Czxy1HumEfoqgYRjNY+P0O8Hu eNbmA2wmi+erCnjVpCb5OWXkoEdZsl2eXiI1KTUGTg71+cxS3DvqDAAbl3AvvXelDpq4 z8XuFhtPaUG/3AN96eJeCR5zASKSqSatQno35XjU4m2zllkRMHUrOMZ0i3HBFOp86Xjp xjXdmI31VmNcqJmfKAbQcGYiuL5aQ+kdSDZJ7Dps48sG6dAx6j9xt7Z4XavGw9F5hOE5 b2xr6fJVmUAE3RgETBg8iJ6ug9lduzWvRG3t7OVnvSuALPGJh+kcIBtNcmh3sFhKg2Re IHAg== X-Gm-Message-State: AOAM530U6xuLZQ3ibsceSAQq2STSty44oyzalXh/YAmVs+nFL+7tb5EA vuYoeH/IlTgMuc+Hl4UrWjNBTszyajsW8ZXJ50AUuqXakTcAzboe2Kaec3j0rgrFueToYB/f42q qTiWMx3OrbjxaAAkmS3HST1MekqLeglRcumI= X-Received: by 2002:a37:4d0f:: with SMTP id a15mr14187681qkb.313.1593426361503; Mon, 29 Jun 2020 03:26:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVNgQ/1N8oN2928Xm86slDPHkUprPaGNArIarkd0p/jTYrFZfUMeJZ6rsi2b4L6AaDaOvVEw== X-Received: by 2002:a37:4d0f:: with SMTP id a15mr14187663qkb.313.1593426361130; Mon, 29 Jun 2020 03:26:01 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id d135sm3005834qkg.117.2020.06.29.03.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 03:26:00 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 04E011808CF; Mon, 29 Jun 2020 12:25:56 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Miguel Catalan Cid Cc: make-wifi-fast@lists.bufferbloat.net, linux-wireless@vger.kernel.org In-Reply-To: References: <87zh8uruou.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 29 Jun 2020 12:25:56 +0200 Message-ID: <87366ei2x7.fsf@toke.dk> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Make-wifi-fast] Support for airtime scheduling using ath10k X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 10:26:05 -0000 Miguel Catalan Cid writes: > El mar., 23 jun. 2020 a las 11:35, Toke H=C3=B8iland-J=C3=B8rgensen > () escribi=C3=B3: >> >> Miguel Catalan Cid writes: >> >> > Hi, >> > >> > we are trying to apply different airtime weights to different stations= in >> > order to have some prioritization among connected stations. While this= is >> > working pretty well with ath9k, with ath10k we always obtain a fair >> > distribution of the airtime (i.e. 50%-50% in the case of two stations)= , >> > regardless of the airtime weight specified. >> > >> > E.g. STA1: >> > RX: 0 us >> > TX: 2295610622 us >> > >> > *Weight: 200*Deficit: VO: 256 us VI: 256 us BE: 34 us BK: 256 us >> > >> > E.g. STA2: >> > RX: 0 us >> > TX: 162597077 us >> >> 2295610622/162597077 ~=3D 14 >> >> which is not *too* far from the 20/1 ratio you've configured? Does the >> ratio change at all when you change the weights (i.e., if they are >> equal, do you get closer to a 50/50 split?). >> >> Do the two stations have roughly the same signal strength / rate? > > In this case I started the STA1 a bit earlier, so it had a higher > airtime aggregate. Indeed, to compare the airtime share, I was > continuously monitoring the "airtime rate" (i.e. the difference > between Airtime(now) and Airtime (now-4s)) and the results of both > STAs were the same (i.e. 50/50 split) independently of the weight > being used. But when using ath9k the same test runs perfectly > according to the weights. > >> >> > *Weight: 10*Deficit: VO: 256 us VI: 256 us BE: 9 us BK: 256 us >> > >> > We are using Compex WLE650V5-18A cards. >> > >> > So, does ath10k support airtime scheduling? In such a case, do we need >> > specific Wi-Fi cards? >> >> It should. My guess would be that maybe you're not getting enough >> backpressure for the scheduler to actually enforce things correctly. You >> could try to look at the TXQ output and see if you actually have any >> drops ('iw dev wlan0 station dump -v' and look at the drops/marks >> columns). > > ok, i will check! Another thing to check is the value of 'new_flows' in the TXQ output; if that is high, it indicates that the queues run empty a lot, which can prevent the airtime fairness scheduler from working properly. >> What kernel version are you running? If it's not new enough to have AQL, >> that might help moving the backlog to where the scheduler can do more >> with it. > > Kernel 5.5.5. Hmm, that should have AQL, actually. -Toke