linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Minstrel rate-setting question
       [not found]                       ` <1232664643.4589.5.camel@note-tatin>
@ 2009-01-23  0:16                         ` Larry Finger
  2009-01-23  2:21                           ` Felix Fietkau
  0 siblings, 1 reply; 3+ messages in thread
From: Larry Finger @ 2009-01-23  0:16 UTC (permalink / raw)
  To: wireless; +Cc: Martín Ernesto Barreyro, Felix Fietkau, Johannes Berg

In the patch I just submitted, I added TX retry info to the driver for RTL8187L devices.
One of the testers of the patch reports that the rate is being adjusted, but that the rate
is overestimated and he has to limit it to 11M. His minstrel statistics and his comments
are as follows:

> rate     throughput  ewma prob   this prob  this succ/attempt   success
> attempts
>      1         0.2       29.8       12.5          1(  8)         51
> 86
>      2         0.4       22.6       14.2          0(  0)          6
> 25
>   P  5.5       2.7       54.2      100.0          0(  0)         41
> 109
>     11         1.9       20.5       12.5          0(  0)          6
> 30
>      6         2.1       38.4       20.0          0(  0)          7
> 24
>      9         2.0       24.8        8.3          0(  0)          6
> 25
>     12         2.4       21.9       12.5          0(  0)          6
> 52
>     18         3.2       19.9       12.5          0(  0)          6
> 44
>     24         4.7       22.2       12.5          0(  0)         15
> 109
>     36         4.4       14.5        9.0          0(  0)        495
> 2036
>  t  48         5.2       13.4       12.5          0(  0)        209
> 1220
> T   54         8.6       19.8       14.2          1(  7)        556
> 4514
> 
> But It still is a little to optimistic. But I supose is the algorithm
> fault. It gets a little laggy and I have to limit the rate to 11Mbps.
> 
> If I do that the conection works perfect.
> 
> But the algorithm is working, maybe its just how it should work.
> What do you think?

The losses for all rates seem to be a little high, and I plan to see if he can change
channels, but I would like an expert's analysis of these data.

Thanks,

Larry


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

* Re: Minstrel rate-setting question
  2009-01-23  0:16                         ` Minstrel rate-setting question Larry Finger
@ 2009-01-23  2:21                           ` Felix Fietkau
  2009-01-23  3:39                             ` Larry Finger
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Fietkau @ 2009-01-23  2:21 UTC (permalink / raw)
  To: Larry Finger; +Cc: wireless, Martín Ernesto Barreyro, Johannes Berg

Larry Finger wrote:
> In the patch I just submitted, I added TX retry info to the driver for RTL8187L devices.
> One of the testers of the patch reports that the rate is being adjusted, but that the rate
> is overestimated and he has to limit it to 11M. His minstrel statistics and his comments
> are as follows:
> 
>> rate     throughput  ewma prob   this prob  this succ/attempt   success
>> attempts
>>      1         0.2       29.8       12.5          1(  8)         51
>> 86
>>      2         0.4       22.6       14.2          0(  0)          6
>> 25
>>   P  5.5       2.7       54.2      100.0          0(  0)         41
>> 109
>>     11         1.9       20.5       12.5          0(  0)          6
>> 30
>>      6         2.1       38.4       20.0          0(  0)          7
>> 24
>>      9         2.0       24.8        8.3          0(  0)          6
>> 25
>>     12         2.4       21.9       12.5          0(  0)          6
>> 52
>>     18         3.2       19.9       12.5          0(  0)          6
>> 44
>>     24         4.7       22.2       12.5          0(  0)         15
>> 109
>>     36         4.4       14.5        9.0          0(  0)        495
>> 2036
>>  t  48         5.2       13.4       12.5          0(  0)        209
>> 1220
>> T   54         8.6       19.8       14.2          1(  7)        556
>> 4514
>> 
>> But It still is a little to optimistic. But I supose is the algorithm
>> fault. It gets a little laggy and I have to limit the rate to 11Mbps.
>> 
>> If I do that the conection works perfect.
>> 
>> But the algorithm is working, maybe its just how it should work.
>> What do you think?
> 
> The losses for all rates seem to be a little high, and I plan to see if he can change
> channels, but I would like an expert's analysis of these data.
I believe that it's not minstrel's fault. According to the information that
I have about RTL8187L, the chip implements rate fallback. If the chip changes
rates during retransmissions, the status information the way you gather it
will not be accurate and will trick minstrel into believing that higher rates
actually work (which in fact they don't). 
Please do some transmissions at 54M and run a monitor mode capture on a different
card to see if it changes the rate during transmission and how frequently it
uses one rate before falling back (if indeed my theory is correct).
This information could be used to provide some more accurate feedback through
multi-rate retry status information.

- Felix

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

* Re: Minstrel rate-setting question
  2009-01-23  2:21                           ` Felix Fietkau
@ 2009-01-23  3:39                             ` Larry Finger
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Finger @ 2009-01-23  3:39 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: wireless, Martín Ernesto Barreyro, Johannes Berg

Felix Fietkau wrote:
> I believe that it's not minstrel's fault. According to the information that
> I have about RTL8187L, the chip implements rate fallback. If the chip changes
> rates during retransmissions, the status information the way you gather it
> will not be accurate and will trick minstrel into believing that higher rates
> actually work (which in fact they don't). 
> Please do some transmissions at 54M and run a monitor mode capture on a different
> card to see if it changes the rate during transmission and how frequently it
> uses one rate before falling back (if indeed my theory is correct).
> This information could be used to provide some more accurate feedback through
> multi-rate retry status information.


I believe you have the clue. There is a register named RATE_FALLBACK
and a bit called RTL818X_RATE_FALLBACK_ENABLE. I'm testing a patch
that leaves this bit unset.

Thanks,

Larry

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

end of thread, other threads:[~2009-01-23  3:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <BLU144-W4266C309A1F9CD0F4B5C21B2D90@phx.gbl>
     [not found] ` <496CE438.6020408@lwfinger.net>
     [not found]   ` <BLU144-W164FB7B41C703C52AAAF9BB2D90@phx.gbl>
     [not found]     ` <496D2772.4060104@lwfinger.net>
     [not found]       ` <BLU144-W254C2D7845CD9E851F745DB2D60@phx.gbl>
     [not found]         ` <496D3118.7060906@lwfinger.net>
     [not found]           ` <BLU144-W40A7F7D25BE3B92EABD5C7B2D60@phx.gbl>
     [not found]             ` <496D665A.90608@lwfinger.net>
     [not found]               ` <BLU144-W102912CECD6EE0D07D1BD8B2D50@phx.gbl>
     [not found]                 ` <4972B1E7.7000005@lwfinger.net>
     [not found]                   ` <BLU144-W211FE279F46EA07E0D35E0B2D10@phx.gbl>
     [not found]                     ` <4977612D.7050500@lwfinger.net>
     [not found]                       ` <1232664643.4589.5.camel@note-tatin>
2009-01-23  0:16                         ` Minstrel rate-setting question Larry Finger
2009-01-23  2:21                           ` Felix Fietkau
2009-01-23  3:39                             ` Larry Finger

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).