From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2.tohojo.dk (mail2.tohojo.dk [77.235.48.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id C471C3B2F7 for ; Fri, 23 Sep 2016 15:59:26 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail2.tohojo.dk DKIM-Filter: OpenDKIM Filter v2.10.3 mail2.tohojo.dk 2896541621 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=201310; t=1474660764; bh=m+d6nEiDmiuImYPHuhfnSTbNK4HMnVNBlbYub/ljEtA=; h=From:To:Cc:Subject:Date:From; b=JuyFt32Eth73nh7/lQAKLFfxQuVnrzCrFGW7b04/GRb4wULd05U0BW8Tsb46whaIY Rbwify3dkLE0URtMwn+ZD83fnXxE76ICBDYCmcIRNbpTmRpXxmDAWOd5qgl9VoYOWM s59/MBpOJXoCj+yHymT5AYzw+mBXLbZzgMcknBlU= Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id C5C399635; Fri, 23 Sep 2016 21:59:21 +0200 (CEST) From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= To: make-wifi-fast@lists.bufferbloat.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Date: Fri, 23 Sep 2016 21:59:08 +0200 Message-Id: <20160923195911.4572-1-toke@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Make-wifi-fast] [PATCH 0/3] Add memory limits to fq.h and mac80211 TXQ 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: Fri, 23 Sep 2016 19:59:26 -0000 This is a series of small patches to avoid OOM conditions on small wireless devices with the mac80211 intermediate TXQ structure. The current default limit in fq.h translates to up to 16 Mbytes of memory usage, which can be fatal to a device with 32 MBytes of total RAM. Rather than just change the fq_limit, this ports the memory limit mechanism from the fq_codel qdisc. The second patch in the series just adds the new fields to the mac80211 'aqm' debugfs file. The third patch changes mac80211 to set a lower memory limit for non-VHT devices. The assumption is that (a) for 802.11n and lower 4 Mbytes of total queue (2048 packets, 64 max-size aggregates) is plenty, and so it is safe to simply limit the queue size. And (b) that VHT-capable devices are usually installed in systems equipped with more system memory. Toke H=C3=B8iland-J=C3=B8rgensen (3): fq.h: Port memory limit mechanism from fq_codel mac80211: Export fq memory limit information in debugfs mac80211: Set lower memory limit for non-VHT devices include/net/fq.h | 3 +++ include/net/fq_impl.h | 7 ++++++- net/mac80211/debugfs.c | 8 ++++++++ net/mac80211/tx.c | 18 ++++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) --=20 2.9.3 base-commit: fb2a3d5c7c85cb6e8bc88192be919b4ef8d6e630