linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there no upper limit on mac80211 pending xmit queue size?
@ 2012-05-29 21:14 Ben Greear
  2012-05-29 21:37 ` Dave Taht
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Greear @ 2012-05-29 21:14 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

The tx pending queues doesn't seem to be limitted, allowing
run-away memory usage when something like pktgen is
sending packets faster than the system can actually
send them.

[root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000001/40076
03: 0x00000000/0
[root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000001/52649
03: 0x00000000/0
[root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
00: 0x00000000/0
01: 0x00000000/0
02: 0x00000001/107939
03: 0x00000000/0

I think this is what is causing my OOM issues when sending
with (my hacked version of) pktgen.

Shouldn't there be an upper limit on the number of pending frames
that mac80211 will queue?

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there no upper limit on mac80211 pending xmit queue size?
  2012-05-29 21:14 Is there no upper limit on mac80211 pending xmit queue size? Ben Greear
@ 2012-05-29 21:37 ` Dave Taht
  2012-05-29 21:41   ` Ben Greear
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Taht @ 2012-05-29 21:37 UTC (permalink / raw)
  To: Ben Greear; +Cc: linux-wireless@vger.kernel.org

On Tue, May 29, 2012 at 2:14 PM, Ben Greear <greearb@candelatech.com> wrote:
> The tx pending queues doesn't seem to be limitted, allowing
> run-away memory usage when something like pktgen is
> sending packets faster than the system can actually
> send them.
>
> [root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
> 00: 0x00000000/0
> 01: 0x00000000/0
> 02: 0x00000001/40076
> 03: 0x00000000/0
> [root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
> 00: 0x00000000/0
> 01: 0x00000000/0
> 02: 0x00000001/52649
> 03: 0x00000000/0
> [root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
> 00: 0x00000000/0
> 01: 0x00000000/0
> 02: 0x00000001/107939
> 03: 0x00000000/0
>
> I think this is what is causing my OOM issues when sending
> with (my hacked version of) pktgen.
>
> Shouldn't there be an upper limit on the number of pending frames
> that mac80211 will queue?

something bql-like would help a lot.

>
> Thanks,
> Ben
>
>
> --
> Ben Greear <greearb@candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there no upper limit on mac80211 pending xmit queue size?
  2012-05-29 21:37 ` Dave Taht
@ 2012-05-29 21:41   ` Ben Greear
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Greear @ 2012-05-29 21:41 UTC (permalink / raw)
  To: Dave Taht; +Cc: linux-wireless@vger.kernel.org

On 05/29/2012 02:37 PM, Dave Taht wrote:
> On Tue, May 29, 2012 at 2:14 PM, Ben Greear<greearb@candelatech.com>  wrote:
>> The tx pending queues doesn't seem to be limitted, allowing
>> run-away memory usage when something like pktgen is
>> sending packets faster than the system can actually
>> send them.
>>
>> [root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
>> 00: 0x00000000/0
>> 01: 0x00000000/0
>> 02: 0x00000001/40076
>> 03: 0x00000000/0
>> [root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
>> 00: 0x00000000/0
>> 01: 0x00000000/0
>> 02: 0x00000001/52649
>> 03: 0x00000000/0
>> [root@ct520-2011 ~]# cat /debug/ieee80211/wiphy0/queues
>> 00: 0x00000000/0
>> 01: 0x00000000/0
>> 02: 0x00000001/107939
>> 03: 0x00000000/0
>>
>> I think this is what is causing my OOM issues when sending
>> with (my hacked version of) pktgen.
>>
>> Shouldn't there be an upper limit on the number of pending frames
>> that mac80211 will queue?
>
> something bql-like would help a lot.

Might help more righteous protocols, but I'm not sure it will help
with pktgen.  I'm working on an upper limit implemented as a module
parameter.  Hopefully that will at least keep the system from
going OOM.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-29 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 21:14 Is there no upper limit on mac80211 pending xmit queue size? Ben Greear
2012-05-29 21:37 ` Dave Taht
2012-05-29 21:41   ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).