linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mattias Nissler <mattias.nissler@gmx.de>
To: Stefano Brivio <stefano.brivio@polimi.it>
Cc: Nick Kossifidis <mickflemm@gmail.com>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	"John W. Linville" <linville@tuxdriver.com>,
	Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [RFC][PATCH] mac80211: Use PID controller for TX rate control
Date: Tue, 04 Dec 2007 18:40:47 +0100	[thread overview]
Message-ID: <1196790047.7472.5.camel@localhost> (raw)
In-Reply-To: <20071204110135.1835a57e@morte>


On Tue, 2007-12-04 at 11:01 +0100, Stefano Brivio wrote:
> On Tue, 04 Dec 2007 09:15:03 +0100
> Mattias Nissler <mattias.nissler@gmx.de> wrote:
> 
> > Um, if Nick says the device has problems transmitting frames, IMHO this
> > will make it quite impossible to get the PID rate control right by
> > tuning parameters. Of course you can set the failed frames percentage
> > target to 100, but that's certainly not what we want.
> 
> Ok, sure. But to some degree, having problems in transmitting frames
> because of driver issues is an approximation of a noisy environment.
> However, we can't do so much in this specific case.

I don't think this data is useful for tuning the TX control algorithm at
all. In the case of a noisy channel, you can improve the rate of
successful transmission by switching to a more-robust rate. However, if
the driver just gets the parameters wrong, a slower rate won't help at
all, thus the feedback loop model on which the PID controller relies is
severely flawed.

> 
> > Just an idea for your hack: wouldn't it be easier if we had all these
> > parameters accessible via debugfs instead of module parameters? Also, it
> > might be useful to have the parameters in sysfs so they can be changed
> > also for production systems, once mac80211 is stable.
> 
> They are in sysfs. You just need to set perm to 0644. But this is racy, and
> you should implement some locking, and I just didn't want to bother about
> this. It's not racy, if you make sure that the interface is down while you
> write parameters. Of course, if we want these parameters to get into
> mac80211, proper locking should be implemented.

Ah, ok, module parameters show up in sysfs. This is good for testing,
but if we want to make some parameters available for everybody, we
cannot rely on module parameters, i.e. when mac80211 is compiled int the
kernel. I'd say we even want to be able to tweak the parameters on a per
device basis, we should really add them to mac80211 sysfs.

Mattias


  reply	other threads:[~2007-12-04 17:40 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-02 19:05 [RFC][PATCH] mac80211: Use PID controller for TX rate control Mattias Nissler
2007-12-03  3:16 ` Stefano Brivio
2007-12-03  3:26   ` Stefano Brivio
2007-12-03 11:03   ` Mattias Nissler
2007-12-03 11:21     ` Tomas Winkler
2007-12-03 11:31       ` Mattias Nissler
2007-12-04 13:40         ` Johannes Berg
2007-12-04 17:45           ` Mattias Nissler
2007-12-05 10:16             ` Johannes Berg
2007-12-04 17:48           ` Stefano Brivio
2007-12-03 11:58       ` Stefano Brivio
2007-12-03 11:54     ` Stefano Brivio
2007-12-03 11:59       ` Mattias Nissler
2007-12-03 12:06         ` Stefano Brivio
2007-12-03 22:42           ` Nick Kossifidis
2007-12-03 23:36             ` Mattias Nissler
2007-12-04  1:41             ` Stefano Brivio
2007-12-04  8:15               ` Mattias Nissler
2007-12-04 10:01                 ` Stefano Brivio
2007-12-04 17:40                   ` Mattias Nissler [this message]
2007-12-04 17:57                     ` Stefano Brivio
2007-12-04 18:33                       ` Mattias Nissler
2007-12-04 18:40                         ` Stefano Brivio
2007-12-04 20:50                     ` Holger Schurig
2007-12-04 20:57                       ` Mattias Nissler
2007-12-04 22:05               ` Nick Kossifidis
2007-12-05  7:49                 ` Holger Schurig
2007-12-05  9:04                   ` Mattias Nissler
2007-12-05  9:52                   ` Stefano Brivio
2007-12-05 12:13                     ` rc80211-pid: some tuning test results Stefano Brivio
2007-12-08  3:42                       ` Stefano Brivio
2007-12-08 10:39                         ` Mattias Nissler
2007-12-08 11:17                           ` Stefano Brivio
2007-12-08  9:45               ` [RFC][PATCH] mac80211: Use PID controller for TX rate control Stefano Brivio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1196790047.7472.5.camel@localhost \
    --to=mattias.nissler@gmx.de \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mickflemm@gmail.com \
    --cc=stefano.brivio@polimi.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).