linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Juuso Oikarinen <juuso.oikarinen@nokia.com>
To: ext Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC PATCHv3 1/2] mac80211: Determine dynamic PS timeout based on ps-qos network latency
Date: Mon, 26 Apr 2010 15:23:07 +0300	[thread overview]
Message-ID: <1272284587.6205.10424.camel@wimaxnb.nmp.nokia.com> (raw)
In-Reply-To: <1272283911.3619.29.camel@jlt3.sipsolutions.net>

On Mon, 2010-04-26 at 14:11 +0200, ext Johannes Berg wrote:
> On Mon, 2010-04-26 at 15:04 +0300, Juuso Oikarinen wrote:
> 
> > > Well I would argue that if the user requires a certain network latency,
> > > that should take precedence. The user is unlikely to be thinking in
> > > terms of "I want my battery to last that long"; rather they want to last
> > > it as long as possible given their quality of service demand
> > > constraints?
> > 
> > Well, this is not entirely correct. In the situation I'm thinking about,
> > the user (the user space network manager is acting on behalf of him)
> > thinks exactly on the lines of "I want my battery to last that long, or
> > longer." The device is in the users pocket, WLAN associated. He does not
> > care about latency at all, so the network manager sets a large enough
> > latency value that allows the WLAN subsystem to sacrifice all latency to
> > just reduce power consumption.
> 
> But in that case you also don't care about latency, obviously. So you
> can just say "don't care about latency", and get all the power savings
> that are possible in such a situation.

Well throw me a bone here! :)

That is essentially what I try to accomplish here! There just currently
isn't a way to say that to cfg80211. You can't say "I don't care about
latency, save as much power as you can."

> Basically there's a trade-off here between power consumption and
> latency. I'm arguing that one should control latency, and power
> consumption follows "best effort", but you seem to also be arguing that
> in some situations one should control power consumption, and latency
> gets bad.
> 
> > > > The ps_timeout could be calculated based on the latency too, I guess.
> > > > I'm just not aware of any simple formula to do this.
> > > 
> > > But you did just base it on that?
> > 
> > Yeah, sorry, I intended to say "based on beacon interval and latency."
> 
> Which might actually make sense, because if for instance required
> latency >> beacon interval, there's not much gain from dynamic power
> saving timeouts.
> 
> > > It just seems to me that you're putting the power consumption
> > > requirements after the quality of service demands, which would seem
> > > wrong?
> > 
> > I'm sorry, I don't understand this statement (literally). To argue
> > anyway: I'm thinking I'm binding power consumption requirements together
> > with QoS demands. :)
> 
> Yeah, but I have a feeling you're thinking about power consumption too
> much. I understand that is a goal, but shouldn't the goal be stated as
> "provide the lowest power consumption under the latency QoS
> constraints"?


Heh, I could in turn say that you think too little about power
consumption :) This particular thing, dynamic ps timer, has a *huge*
effect on the total power consumption just because it's so frequent.

I'm basically open for any means to tell cfg80211 that it should
sacrifice service quality in the name of saving as much power as it can
(apart from shutting the thing down :). Can you give me a hint on what
you would consider an acceptable way to do this?

-Juuso


> johannes
> 



  reply	other threads:[~2010-04-26 12:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-16  9:14 [RFC PATCHv3 0/2] mac80211: cfg80211: dynamic ps timeout based on pm-qos Juuso Oikarinen
2010-04-16  9:14 ` [RFC PATCHv3 1/2] mac80211: Determine dynamic PS timeout based on ps-qos network latency Juuso Oikarinen
2010-04-19 14:42   ` Johannes Berg
2010-04-20  5:08     ` Juuso Oikarinen
2010-04-22  8:45       ` Johannes Berg
2010-04-22  8:55         ` Juuso Oikarinen
2010-04-22  9:05           ` Johannes Berg
2010-04-22  9:07           ` Johannes Berg
2010-04-22  9:29             ` Juuso Oikarinen
2010-04-26 11:54               ` Johannes Berg
2010-04-26 12:04                 ` Juuso Oikarinen
2010-04-26 12:11                   ` Johannes Berg
2010-04-26 12:23                     ` Juuso Oikarinen [this message]
2010-04-26 12:30                       ` Johannes Berg
2010-04-27  4:27                         ` Juuso Oikarinen
2010-04-16  9:14 ` [RFC PATCHv3 2/2] cfg80211: Remove default dynamic PS timeout value Juuso Oikarinen
2010-04-19 14:43   ` Johannes Berg
2010-04-20  4:58     ` Juuso Oikarinen
2010-04-22  8:46       ` Johannes Berg

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=1272284587.6205.10424.camel@wimaxnb.nmp.nokia.com \
    --to=juuso.oikarinen@nokia.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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).