On 11 February 2015 at 14:17, Eric Dumazet <eric.dumazet@xxxxxxxxx> 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 linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html