lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CA+BoTQn6ane-jSFxVhQd5BDCNUrATohCbtrD9zUJBMxnN6Zy6w@mail.gmail.com> Date: Thu, 12 Feb 2015 08:16:20 +0100 From: Michal Kazior <michal.kazior@...to.com> To: Eric Dumazet <eric.dumazet@...il.com> Cc: Neal Cardwell <ncardwell@...gle.com>, linux-wireless <linux-wireless@...r.kernel.org>, Network Development <netdev@...r.kernel.org>, Eyal Perry <eyalpe@....mellanox.co.il>, Johannes Berg <johannes@...solutions.net> Subject: Re: Throughput regression with `tcp: refine TSO autosizing` On 11 February 2015 at 14:17, Eric Dumazet <eric.dumazet@...il.com> wrote: > On Wed, 2015-02-11 at 09:33 +0100, Michal Kazior wrote: > >> If I set tcp_limit_output_bytes to 700K+ I can get ath10k w/ cushion >> w/ aggregation to reach 600mbps on a single flow. > > You know, there is a reason this sysctl exists in the first place ;) > > The first suggestion I made to you was to raise it. > > The default setting must stay as is as long default Qdisc is pfifo_fast. > > I believe I already mentioned skb->truesize tricks for drivers willing > to adjust the TSQ given their constraints. Right. truesize didn't help in my early tests and once the cushion thing came about I had assumed that it's not relevant anymore. I just checked: @@ -2620,6 +2621,12 @@ static void ath10k_tx(struct ieee80211_hw *hw, if (info->flags & IEEE80211_TX_CTL_NO_CCK_RATE) ath10k_dbg(ar, ATH10K_DBG_MAC, "IEEE80211_TX_CTL_NO_CCK_RATE\n"); + if (skb->sk) { + u32 trim = skb->truesize - (skb->truesize / 8); + skb->truesize -= trim; + atomic_sub(trim, &skb->sk->sk_wmem_alloc); + } With this I get 600mbps on a single flow. The /2 wasn't enough (it barely made a difference, 250->300mbps). The question is how do I know how much of trimming is too much? Could the tx completion delay be used to compute the trim factor, hmm.. Maybe this should be done in mac80211 as well? MichaĆ -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists