Skip to contentSkip to conversation

Changing from Minstrel to PID

DISCUSSION Martín Ernesto Barreyro 4 participants 14 messages Nov 6, 2009 – Nov 10, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

Signature · 2 lines
Martín Ernesto Barreyro <[email protected]>
Analista Universitario en Redes de Datos.
#1 lore raw
Quoted 6 lines · Martín Ernesto Barreyro

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

No, but I wish there were...patches? Anyone?

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#2 lore raw
Quoted 9 lines · John W. Linville
Quoted 6 lines · Martín Ernesto Barreyro

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

No, but I wish there were...patches? Anyone?

Sorry for my ignorance, but how could I send a parameter to a module or use a configuration file? could be with sysctl?

Signature · 2 lines
Martín Ernesto Barreyro <[email protected]>
Analista Universitario en Redes de Datos.
#3 lore raw
Quoted 4 lines · Martín Ernesto Barreyro
Quoted 1 line

No, but I wish there were...patches?  Anyone?

Sorry for my ignorance, but how could I send a parameter to a module or use a configuration file? could be with sysctl?

You do have to compile them both, but once you do, if you have debugfs mounted, you can do:

echo 'pid' > /debug/ieee80211/phy0/rc/name

to switch to pid.

Signature · 1 line
Bob Copeland %% www.bobcopeland.com
#4 lore raw
Quoted 7 lines · Bob Copeland
Quoted 4 lines · Martín Ernesto Barreyro
Quoted 1 line

No, but I wish there were...patches? Anyone?

Sorry for my ignorance, but how could I send a parameter to a module or use a configuration file? could be with sysctl?

Quoted 7 lines

You do have to compile them both, but once you do, if you have debugfs mounted, you can do:

echo 'pid' > /debug/ieee80211/phy0/rc/name

to switch to pid.

Humm, if thats the only way, its better to recompile and forget about it.

It would be nice if a could change some file in /etc and never care for kernel upgrades.
I don't know much about kernel developing, i'm just wondering

Something better than adding echo 'pid' > /debug/ieee80211/phy0/rc/name to rc.local

Signature · 2 lines
Martín Ernesto Barreyro <[email protected]>
Analista Universitario en Redes de Datos.
#5 lore raw
In reply to Bob Copeland
Quoted 7 lines · Bob Copeland
Quoted 4 lines · Martín Ernesto Barreyro
Quoted 1 line

No, but I wish there were...patches?  Anyone?

Sorry for my ignorance, but how could I send a parameter to a module or use a configuration file? could be with sysctl?

Quoted 6 lines

You do have to compile them both, but once you do, if you have debugfs mounted, you can do:

echo 'pid' > /debug/ieee80211/phy0/rc/name

to switch to pid.

Does that work? I thought that was only informational (and readonly)?

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#6 lore raw
Quoted 5 lines · John W. Linville
Quoted 3 lines

echo 'pid' > /debug/ieee80211/phy0/rc/name

to switch to pid.

Does that work? I thought that was only informational (and readonly)?

Oh, yes, you are right. I was thinking of the ieee80211_default_rc_algo modparam for mac80211.

Signature · 1 line
Bob Copeland %% www.bobcopeland.com
#7 lore raw
In reply to John W. Linville
Quoted 11 lines · John W. Linville
Quoted 6 lines · Martín Ernesto Barreyro

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

No, but I wish there were...patches? Anyone?

John

I've been searching and it seems that it could be added something like modprobe mac80211 rc='pid'

Would it be a good idea?

Signature · 2 lines
Martín Ernesto Barreyro <[email protected]>
Analista Universitario en Redes de Datos.
#8 lore raw
Quoted 9 lines · Martín Ernesto Barreyro
Quoted 8 lines · John W. Linville
Quoted 6 lines · Martín Ernesto Barreyro

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

Quoted 8 lines
Quoted 3 lines

No, but I wish there were...patches? Anyone?

John

I've been searching and it seems that it could be added something like modprobe mac80211 rc='pid'

Would it be a good idea?

That's a reasonable approach, and it isn't too difficult either - somebody motivated enough could do a patch...

Hmm, I think I have a question and a suggestion here: what is it you have problem with minstrel ? I don't care which one but both works well enough here. Maybe you need that sorted instead.

The other thing is, you can probably patch compat-wireless to do something similiar or at least experiment with it, as long as your kernel is configured with most of them as modules. Switching compat-wireless is quite easy, and particularly with the 'driver-select rtl818x' option you just rebuild about 6 kernel modules instead of the usual 50+, which makes it quite quick and painless.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 7 lines · Martín Ernesto Barreyro

I don't know, I'll post the minstrel statistics, maybe it'll help you.Some
months ago the rate control wasn't working at all, and Larry took care of it. Since that both algorithms started working, the count of retrys was missing at that time.
Both algorithms started working, but minstrel sometimes works for while but then goes to the max rate, in my case 54mbps if i a don't change it to other with iwconfig, e.g iwconfig wlan0 rate 11M auto

I am sure somebody with more experience with tuning mistrel can give you some help...

Quoted 11 lines
Quoted 6 lines

The other thing is, you can probably patch compat-wireless to do something similiar or at least experiment with it, as long as your kernel is configured with most of them as modules. Switching compat-wireless is quite easy, and particularly with the 'driver-select rtl818x' option you just rebuild about 6 kernel modules instead of the usual 50+, which makes it quite quick and painless.

You are saying that i could give it a try for adding the option that i was asking for?
Iill give it a shot but i don't know how many time will it take me

Yes, compat-wlreless is useful for trying out small patches. Adding a module parameter isn't too much trouble, i think - and there are plenty of examples (many kernel module do parameters).

#11 lore raw
Quoted 22 lines · Hin-Tak Leung
Quoted 7 lines · Martín Ernesto Barreyro

I don't know, I'll post the minstrel statistics, maybe it'll help you.Some
months ago the rate control wasn't working at all, and Larry took care of it. Since that both algorithms started working, the count of retrys was missing at that time.
Both algorithms started working, but minstrel sometimes works for while but then goes to the max rate, in my case 54mbps if i a don't change it to other with iwconfig, e.g iwconfig wlan0 rate 11M auto

I am sure somebody with more experience with tuning mistrel can give you some help...

Quoted 8 lines
Quoted 6 lines

The other thing is, you can probably patch compat-wireless to do something similiar or at least experiment with it, as long as your kernel is configured with most of them as modules. Switching compat-wireless is quite easy, and particularly with the 'driver-select rtl818x' option you just rebuild about 6 kernel modules instead of the usual 50+, which makes it quite quick and painless.

Quoted 7 lines
Quoted 3 lines

You are saying that i could give it a try for adding the option that i was asking for?
Iill give it a shot but i don't know how many time will it take me

Yes, compat-wlreless is useful for trying out small patches. Adding a module parameter isn't too much trouble, i think - and there are plenty of examples (many kernel module do parameters).

I've my 2.31 kernel running (from archlinux repositories) and compat-wireless 2009-11-06 and now not even with pid i get it working good. It goes to the max rate available.

Quoted 1 line

From the distance that I'm from the AP i have to limit the rate to

11Mbps

I'll compile wireless testing and i'll post the statistics, or if someone tell the information they need to debug it i'll post it.

Signature · 2 lines
Martín Ernesto Barreyro <[email protected]>
Analista Universitario en Redes de Datos.
#12 lore raw
In reply to Martín Ernesto Barreyro
Quoted 9 lines · Martín Ernesto Barreyro
Quoted 8 lines · John W. Linville
Quoted 6 lines · Martín Ernesto Barreyro

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

Quoted 8 lines
Quoted 3 lines

No, but I wish there were...patches? Anyone?

John

I've been searching and it seems that it could be added something like modprobe mac80211 rc='pid'

Would it be a good idea?

Well if you are happy with a module option, we already have ieee80211_default_rc_algo.

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#13 lore raw

2009/11/7 John W. Linville <[email protected]>:

Quoted 19 lines · Martín Ernesto Barreyro
Quoted 9 lines · John W. Linville
Quoted 8 lines · Martín Ernesto Barreyro
Quoted 6 lines

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

Quoted 8 lines
Quoted 3 lines

No, but I wish there were...patches?  Anyone?

John

I've been searching and it seems that it could be added something like modprobe mac80211 rc='pid'

Would it be a good idea?

Quoted 8 lines

Well if you are happy with a module option, we already have ieee80211_default_rc_algo.

John
--
John W. Linville                Someday the world will need a hero, and you [email protected]                  might be all we have.  Be ready.

Yes I'm happy, I'll try it.
Is there any other way that it can be approached?

#14 lore raw
Quoted 29 lines · Martín Ernesto Barreyro

2009/11/7 John W. Linville <[email protected]>:

Quoted 19 lines · Martín Ernesto Barreyro
Quoted 9 lines · John W. Linville
Quoted 8 lines · Martín Ernesto Barreyro
Quoted 6 lines

Hello, I have a rtl8187 wireless card and I've allways have problems with the rate control using minstrel. So everytime my kernel updates (recently it went from 2.30 to 2.31) i have to recompile mi kernel setting pid as my default rate control algorithm.

Is there a way to change that without compiling the kernel?

Quoted 8 lines
Quoted 3 lines

No, but I wish there were...patches? Anyone?

John

I've been searching and it seems that it could be added something like modprobe mac80211 rc='pid'

Would it be a good idea?

Quoted 8 lines

Well if you are happy with a module option, we already have ieee80211_default_rc_algo.

John
--
John W. Linville Someday the world will need a hero, and you
[email protected] might be all we have. Be ready.

Quoted 7 lines

Yes I'm happy, I'll try it.
Is there any other way that it can be approached?
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

I suppose echo something into the /proc file system as john suggested in an earlier post would be even better than a module option. That's a bit more difficult to module option (module option is pretty much the blunt hammer and you can replace any behavior with any other bahavor with it, I think) as it makes the algorithm switch-able at run-time, and that might be a little more tricky as one has to probably stop a few things and restart a few things in the kernel... and I don't mean debugfs, although since it is already in debugfs it might be easier just to move that code out to general use.