Skip to contentSkip to conversation

AP Limitation because of ATH9K_HTC_MAX_STA

ath9k-devel David Jardin 8 participants 25 messages Jul 8, 2013 – Nov 26, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I'm organizing all the technical stuff for several conferences about Joomla (opensource content managment system) with 200-300 participants and therefore I was looking for a low-budget wifi-solution that is able to handle this number of clients. I decided to use a few raspberry pi's with atheros-based usb wifi dongles which worked great in my little test environment but crashed in the real conference setup.

I took a look at the logfiles and it seems that the issue is related to the number of clients that can be handled by the driver/firmware, which is 8 (ATH9K_HTC_MAX_STA). Is there any chance to increase this limit to make the dongles usable in large-scale applications?

David

#1 lore raw

The ath9k_htc stuff isn't ready to do what you want. And even if it was, the performance would be sub-par compared to the SoC designs. There's just not a lot of RAM on these things; even if we do eventually push almost everything into the driver instead of firmware, there's still only a limited amount of RAM for packet buffers. So you're never going to reach the same level of performance as direct-attach.

I suggest you spend the money on some slightly more useful access points. You'll likely be able to serve at least 2x the clients on a single 2x2 tplink or dlink access point for about $50-$70 each.

Good luck,

-adrian
(Why does everyone see "Raspberry pi" as the solution to everything these days? Sheesh..)

Quoted 19 lines · David Jardin

Hi,

I'm organizing all the technical stuff for several conferences about Joomla (opensource content managment system) with 200-300 participants and therefore I was looking for a low-budget wifi-solution that is able to handle this number of clients. I decided to use a few raspberry pi's with atheros-based usb wifi dongles which worked great in my little test environment but crashed in the real conference setup.

I took a look at the logfiles and it seems that the issue is related to the number of clients that can be handled by the driver/firmware, which is 8 (ATH9K_HTC_MAX_STA). Is there any chance to increase this limit to make the dongles usable in large-scale applications?

David
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#2 lore raw

Hi Adrian,

thanks for the response. That's bad news.

I thought about using the Pi's as they have much more RAM and CPU power than normal consumer access points have - which seems to be the limiting factor of clients on those devices. And as we are a non profit organization we simply can't afford business class access points (Cisco etc.) as they are way to expensive.

David

Am 08.07.13 22:07, schrieb Adrian Chadd:

Quoted 40 lines

The ath9k_htc stuff isn't ready to do what you want. And even if it was, the performance would be sub-par compared to the SoC designs. There's just not a lot of RAM on these things; even if we do eventually push almost everything into the driver instead of firmware, there's still only a limited amount of RAM for packet buffers. So you're never going to reach the same level of performance as direct-attach.

I suggest you spend the money on some slightly more useful access points. You'll likely be able to serve at least 2x the clients on a single 2x2 tplink or dlink access point for about $50-$70 each.

Good luck,

-adrian
(Why does everyone see "Raspberry pi" as the solution to everything these days? Sheesh..)

Quoted 19 lines · David Jardin

Hi,

I'm organizing all the technical stuff for several conferences about Joomla (opensource content managment system) with 200-300 participants and therefore I was looking for a low-budget wifi-solution that is able to handle this number of clients. I decided to use a few raspberry pi's with atheros-based usb wifi dongles which worked great in my little test environment but crashed in the real conference setup.

I took a look at the logfiles and it seems that the issue is related to the number of clients that can be handled by the driver/firmware, which is 8 (ATH9K_HTC_MAX_STA). Is there any chance to increase this limit to make the dongles usable in large-scale applications?

David
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#3 lore raw

How replacing AP with about MESH or AdHock+BATMAN?

Am 09.07.2013 10:46, schrieb David Jardin:

Quoted 36 lines

Hi Adrian,

thanks for the response. That's bad news.

I thought about using the Pi's as they have much more RAM and CPU power than normal consumer access points have - which seems to be the limiting factor of clients on those devices. And as we are a non profit organization we simply can't afford business class access points (Cisco etc.) as they are way to expensive.

David

Am 08.07.13 22:07, schrieb Adrian Chadd:

Quoted 23 lines

The ath9k_htc stuff isn't ready to do what you want. And even if it was, the performance would be sub-par compared to the SoC designs. There's just not a lot of RAM on these things; even if we do eventually push almost everything into the driver instead of firmware, there's still only a limited amount of RAM for packet buffers. So you're never going to reach the same level of performance as direct-attach.

I suggest you spend the money on some slightly more useful access points. You'll likely be able to serve at least 2x the clients on a single 2x2 tplink or dlink access point for about $50-$70 each.

Good luck,

-adrian
(Why does everyone see "Raspberry pi" as the solution to everything these days? Sheesh..)

Quoted 2 lines · David Jardin

Hi,

Signature · 2 lines
Regards,
Oleksij
#4 lore raw
Quoted 1 line · Oleksij Rempel

How replacing AP with about MESH or AdHock+BATMAN?

Why? That sounds like a recipe for disaster to me (at least for conference networks). The ath9k_htc stuff can't handle more peers in mesh/ad-hoc than clients in AP mode.
In setting up a conference network, you have to think about what the primary bottleneck is. When using consumer APs, the bottleneck isn't CPU/RAM, it's usually limited channel airtime!

- Felix

#5 lore raw

Am 09.07.2013 11:18, schrieb Felix Fietkau:

Quoted 11 lines · Oleksij Rempel
Quoted 1 line

How replacing AP with about MESH or AdHock+BATMAN?

Why? That sounds like a recipe for disaster to me (at least for conference networks). The ath9k_htc stuff can't handle more peers in mesh/ad-hoc than clients in AP mode.
In setting up a conference network, you have to think about what the primary bottleneck is. When using consumer APs, the bottleneck isn't CPU/RAM, it's usually limited channel airtime!

- Felix

Not with ath9k_htc. AdHock+BATMAN can be split in different groups on different channels. ath9k_htc can be used as STA to primer AP and second interface on some laptops. But sure -- it is worst case scenario with no extra cost.

Signature · 2 lines
Regards,
Oleksij
#6 lore raw
Quoted 10 lines · Oleksij Rempel

Am 09.07.2013 11:18, schrieb Felix Fietkau:

Quoted 9 lines · Oleksij Rempel
Quoted 1 line

How replacing AP with about MESH or AdHock+BATMAN?

Why? That sounds like a recipe for disaster to me (at least for conference networks). The ath9k_htc stuff can't handle more peers in mesh/ad-hoc than clients in AP mode.
In setting up a conference network, you have to think about what the primary bottleneck is. When using consumer APs, the bottleneck isn't CPU/RAM, it's usually limited channel airtime!

Quoted 7 lines
Quoted 2 lines

- Felix

Not with ath9k_htc. AdHock+BATMAN can be split in different groups on different channels. ath9k_htc can be used as STA to primer AP and second interface on some laptops. But sure -- it is worst case scenario with no extra cost.

What does this have to do with handling wifi clients of 200-300 participants?

- Felix

#7 lore raw
In reply to David Jardin

The newer, higher end tplink/dlink devices that use AR9344 ship with 128mb RAM and a 500MHz mips74k core.

I think that's enough for your needs.

-adrian

Quoted 54 lines · David Jardin

Hi Adrian,

thanks for the response. That's bad news.

I thought about using the Pi's as they have much more RAM and CPU power than normal consumer access points have - which seems to be the limiting factor of clients on those devices. And as we are a non profit organization we simply can't afford business class access points (Cisco etc.) as they are way to expensive.

David

Am 08.07.13 22:07, schrieb Adrian Chadd:

Quoted 40 lines

The ath9k_htc stuff isn't ready to do what you want. And even if it was, the performance would be sub-par compared to the SoC designs. There's just not a lot of RAM on these things; even if we do eventually push almost everything into the driver instead of firmware, there's still only a limited amount of RAM for packet buffers. So you're never going to reach the same level of performance as direct-attach.

I suggest you spend the money on some slightly more useful access points. You'll likely be able to serve at least 2x the clients on a single 2x2 tplink or dlink access point for about $50-$70 each.

Good luck,

-adrian
(Why does everyone see "Raspberry pi" as the solution to everything these days? Sheesh..)

Quoted 19 lines · David Jardin

Hi,

I'm organizing all the technical stuff for several conferences about Joomla (opensource content managment system) with 200-300 participants and therefore I was looking for a low-budget wifi-solution that is able to handle this number of clients. I decided to use a few raspberry pi's with atheros-based usb wifi dongles which worked great in my little test environment but crashed in the real conference setup.

I took a look at the logfiles and it seems that the issue is related to the number of clients that can be handled by the driver/firmware, which is 8 (ATH9K_HTC_MAX_STA). Is there any chance to increase this limit to make the dongles usable in large-scale applications?

David
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#9 lore raw
Quoted 3 lines · Gustavo

Hi David, how you resolve this problem?

What you do?

You may end up having to re-write firmware, and perhaps significantly.

That is not likely to be very easy....

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#10 lore raw

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

Thanks

Quoted 18 lines · Ben Greear
Quoted 3 lines · Gustavo

Hi David, how you resolve this problem?

What you do?

You may end up having to re-write firmware, and perhaps significantly.

That is not likely to be very easy....

Thanks,
Ben

--
Ben Greear <[email protected]>
Candela Technologies Inc http://www.candelatech.com

Signature · 4 lines
Gustavo Azambuja - Linux User: 275813
http://gazambuja.com

Uruguay:     091 300 333 (Montevideo - Mobile)
#11 lore raw

Am 20.11.2013 20:01, schrieb Gustavo Azambuja:

Quoted 4 lines

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

It's all about USB, RAM and power.
If you use usb to communicate with wireless hardware, then your first problem is usb - it is too slow! Some times it is too slow even for one connection. This is why we have usb wifi adapters with internal cpu, ram and firmware (micro operation system). If you wont to add more connections you will need more ram and may be more cpu power. This will need more power from usb, which is limited to 500mA.
In this case, just take some AP, connect it over ethernet and you will get same result.

Quoted 24 lines

Thanks

Quoted 18 lines · Ben Greear
Quoted 3 lines · Gustavo

Hi David, how you resolve this problem?

What you do?

You may end up having to re-write firmware, and perhaps significantly.

That is not likely to be very easy....

Thanks,
Ben

--
Ben Greear <[email protected]>
Candela Technologies Inc http://www.candelatech.com

Signature · 2 lines
Regards,
Oleksij
#12 lore raw
Quoted 6 lines · Oleksij Rempel

Am 20.11.2013 20:01, schrieb Gustavo Azambuja:

Quoted 4 lines

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

Quoted 9 lines

It's all about USB, RAM and power.
If you use usb to communicate with wireless hardware, then your first problem is usb - it is too slow! Some times it is too slow even for one connection. This is why we have usb wifi adapters with internal cpu, ram and firmware (micro operation system). If you wont to add more connections you will need more ram and may be more cpu power. This will need more power from usb, which is limited to 500mA.
In this case, just take some AP, connect it over ethernet and you will get same result.

The RAM is certainly an issue, but just adding more stations should not have much CPU impact as the total throughput is unlikely to increase as more stations are added.

Changing software to make better use of RAM is also unlikely to increase power usage, though adding more RAM to the hardware might.

Out of curiosity, does anyone know how much RAM is on those adapters?

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#13 lore raw

Am 22.11.2013 15:40, schrieb Ben Greear:

Quoted 17 lines · Oleksij Rempel
Quoted 6 lines

Am 20.11.2013 20:01, schrieb Gustavo Azambuja:

Quoted 4 lines

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

Quoted 9 lines

It's all about USB, RAM and power.
If you use usb to communicate with wireless hardware, then your first problem is usb - it is too slow! Some times it is too slow even for one connection. This is why we have usb wifi adapters with internal cpu, ram and firmware (micro operation system). If you wont to add more connections you will need more ram and may be more cpu power. This will need more power from usb, which is limited to 500mA.
In this case, just take some AP, connect it over ethernet and you will get same result.

Quoted 6 lines

The RAM is certainly an issue, but just adding more stations should not have much CPU impact as the total throughput is unlikely to increase as more stations are added.

Changing software to make better use of RAM is also unlikely to increase power usage, though adding more RAM to the hardware might.

patches are welcome

Quoted 1 line

Out of curiosity, does anyone know how much RAM is on those adapters?

http://wikidevi.com/wiki/AR9271
http://wikidevi.com/wiki/AR7010

Signature · 2 lines
Regards,
Oleksij
#14 lore raw
Quoted 18 lines · Oleksij Rempel

Am 22.11.2013 15:40, schrieb Ben Greear:

Quoted 17 lines · Oleksij Rempel
Quoted 15 lines

Am 20.11.2013 20:01, schrieb Gustavo Azambuja:

Quoted 4 lines

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

It's all about USB, RAM and power.
If you use usb to communicate with wireless hardware, then your first problem is usb - it is too slow! Some times it is too slow even for one connection. This is why we have usb wifi adapters with internal cpu, ram and firmware (micro operation system). If you wont to add more connections you will need more ram and may be more cpu power. This will need more power from usb, which is limited to 500mA.
In this case, just take some AP, connect it over ethernet and you will get same result.

Quoted 8 lines
Quoted 6 lines

The RAM is certainly an issue, but just adding more stations should not have much CPU impact as the total throughput is unlikely to increase as more stations are added.

Changing software to make better use of RAM is also unlikely to increase power usage, though adding more RAM to the hardware might.

patches are welcome

I'm sure :)

My customers are all interested in /AC these days, so I'm putting my effort there. If/when someone opens an /AC firmware to the public I will be all over it!

Quoted 4 lines
Quoted 1 line

Out of curiosity, does anyone know how much RAM is on those adapters?

http://wikidevi.com/wiki/AR9271
http://wikidevi.com/wiki/AR7010

Thanks, that is good info.

Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#15 lore raw

Am 22.11.2013 16:00, schrieb Ben Greear:

Quoted 27 lines · Oleksij Rempel
Quoted 26 lines

Am 22.11.2013 15:40, schrieb Ben Greear:

Quoted 24 lines · Oleksij Rempel
Quoted 6 lines

Am 20.11.2013 20:01, schrieb Gustavo Azambuja:

Quoted 4 lines

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

Quoted 10 lines

It's all about USB, RAM and power.
If you use usb to communicate with wireless hardware, then your first problem is usb - it is too slow! Some times it is too slow even for one connection. This is why we have usb wifi adapters with internal cpu, ram
and firmware (micro operation system). If you wont to add more connections you will need more ram and may be more cpu power. This will need more power from usb, which is limited to 500mA.
In this case, just take some AP, connect it over ethernet and you will get same result.

The RAM is certainly an issue, but just adding more stations should not have much CPU impact as the total throughput is unlikely to increase as more stations are added.

Changing software to make better use of RAM is also unlikely to increase power usage, though adding more RAM to the hardware might.

Quoted 7 lines
Quoted 1 line

patches are welcome

I'm sure :)

My customers are all interested in /AC these days, so I'm putting my effort there. If/when someone opens an /AC firmware to the public I will be all over it!

AC?

Signature · 2 lines
Regards,
Oleksij
#16 lore raw
Quoted 30 lines · Oleksij Rempel

Am 22.11.2013 16:00, schrieb Ben Greear:

Quoted 29 lines · Oleksij Rempel
Quoted 27 lines

Am 22.11.2013 15:40, schrieb Ben Greear:

Quoted 18 lines · Oleksij Rempel
Quoted 6 lines

Am 20.11.2013 20:01, schrieb Gustavo Azambuja:

Quoted 4 lines

Ben, thanks for you reply.
I need to convert my rPi into a AP (is not an option a "real" AP) to get at less 30 stations. You know some way to get a list of devices/drivers can support this?

Quoted 10 lines

It's all about USB, RAM and power.
If you use usb to communicate with wireless hardware, then your first problem is usb - it is too slow! Some times it is too slow even for one connection. This is why we have usb wifi adapters with internal cpu, ram
and firmware (micro operation system). If you wont to add more connections you will need more ram and may be more cpu power. This will need more power from usb, which is limited to 500mA.
In this case, just take some AP, connect it over ethernet and you will get same result.

Quoted 6 lines

The RAM is certainly an issue, but just adding more stations should not have much CPU impact as the total throughput is unlikely to increase as more stations are added.

Changing software to make better use of RAM is also unlikely to increase power usage, though adding more RAM to the hardware might.

patches are welcome

Quoted 9 lines
Quoted 5 lines

I'm sure :)

My customers are all interested in /AC these days, so I'm putting my effort there. If/when someone opens an /AC firmware to the public I will be all over it!

AC?

802.11 ac, for instance ath10k.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#17 lore raw
In reply to Ben Greear

QCA stated the firmware source can be opened for the "selected customers". We need to know who and how select the customers. Can the open source community be included in this category? Something hints me what it never happens. :(

#18 lore raw
Quoted 3 lines · Alex Hacker

QCA stated the firmware source can be opened for the "selected customers". We need to know who and how select the customers. Can the open source community be included in this category? Something hints me what it never happens. :(

Sorry, but which firmware are you referring to ? The firmware for ath9k_htc is open: https://github.com/qca/open-ath9k-htc-firmware

Sujith

#19 lore raw

Sorry for the offtopic Sujith, we talk about QCA9880 firmware. Regards,
Alex.

#20 lore raw

You need to be a big customer that requires that QCA open up the firmware to open source, much like what's driven ath9k support.

I heartily encourage this.

-adrian

Quoted 7 lines · Alex Hacker

Sorry for the offtopic Sujith, we talk about QCA9880 firmware. Regards,
Alex.
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#21 lore raw
Quoted 4 lines · Adrian Chadd

You need to be a big customer that requires that QCA open up the firmware to open source, much like what's driven ath9k support.

I heartily encourage this.

If it's just money, maybe they could name their price and see if someone will pay it :)

Either way, QCA seems more open to sharing firmware than anyone else, so it could be worse.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#22 lore raw
Quoted 11 lines · Ben Greear
Quoted 4 lines · Adrian Chadd

You need to be a big customer that requires that QCA open up the firmware to open source, much like what's driven ath9k support.

I heartily encourage this.

If it's just money, maybe they could name their price and see if someone will pay it :)

Either way, QCA seems more open to sharing firmware than anyone else, so it could be worse.

IT's the irony of the situation. If they're lead by their customer requirements then all it will take is a couple of customers requiring the firmware source be open sourced and open licenced. It will kick off another regulatory discussion, but besides that, it'll make things happen.

-adiran

#23 lore raw

Open source community is a biggest of the biggest customers, isn't it? It is a huge market, I speak about millions of gadgets and plastic boxes working under some sort of Linux or BSD. Adrian, did you told something like that when worked for QCA? But IMO the reason is different. QCA prefers to close any access to a hardware, especially to non-standard PHY/Radio features. The same role be played by HAL in older Atheros chips.
Sorry for the offtopic again, initially I wanted to leave only a small note to the Ben's post. We need to move this discussion to the ath10k-devel list. Regards,
Alex.

#24 lore raw
Quoted 6 lines · Alex Hacker

Open source community is a biggest of the biggest customers, isn't it? It is a huge market, I speak about millions of gadgets and plastic boxes working under some sort of Linux or BSD. Adrian, did you told something like that when worked for QCA? But IMO the reason is different. QCA prefers to close any access to a hardware, especially to non-standard PHY/Radio features. The same role be played by HAL in older Atheros chips.

Sure, but they're all initially sold to .. not us. :-)

They're sold to laptop, access point and (increasingly majority by number) phones and tablets.

Those are the companies that you have to lobby in general to get improved open source support for these kinds of things. Those are the customers the hardware manufacturers will care about.

We in the open source community get that "for free" as a side effect of someone else signing a purchase order for x million a year.

Quoted 4 lines

Sorry for the offtopic again, initially I wanted to leave only a small note to the Ben's post. We need to move this discussion to the ath10k-devel list. Regards,
Alex.

-adrian