Linux wireless drivers development
 help / color / mirror / Atom feed
From: Florian Zumbiehl <florz@florz.de>
To: Andrea Merello <andreamrl@tiscali.it>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
	herton@mandriva.com.br, htl10@users.sourceforge.net,
	linux-wireless@vger.kernel.org
Subject: Re: Power consumption of RTL8187 (driver)/recommendations for low-power USB 802.11 adapter?
Date: Sat, 19 Dec 2009 02:13:06 +0100	[thread overview]
Message-ID: <20091219011306.GG2512@florz.florz.dyndns.org> (raw)
In-Reply-To: <c68f135e0912181615p7cd36bd0n7054b43f2b453599@mail.gmail.com>

Hi,

[...]
> As someone told before this management traffic is for examples beacons.

IC - I hadn't thought that softmac really meant basically "radio only" =:-)

> Probably your prism2 card was a so called "fullmac" card. That menas
> that all this management stuff can be done on the wifi card without
> generating load on the host CPU.

Yeah, it is.

> One thing I can say is that the ieee 802.11 protocol allows certains
> power save functionalities but, provided that mac80211 / rtl8187
> driver support it (and I'm really not sure), this will probably only
> reduces power consumption on the USB, not on the host processor.

That certainly would be nice, too, but it seems that most of the power
consumption really comes from the host processor. I guess I should
measure the current going through the USB connetion ...

> Well, it may be interesting to do a serious analisys about how much
> power is drained by the card when it is up and in RX, when the
> mac80211 sends probes, and how much is related to the CPU, however,
> because you estimated that the power drain increase is too much for
> being directly related to the usb stuff, I think is really possible
> that the big problem is related to beacons.

I'll play around with AP settings a bit and report back to you.
If you can think of any particular useful tests I could do, please
let me know, I'll see what I can do.

But yeah - even if the device draws more than the allowed 500 mA,
I hope very much that it doesn't draw anywhere close to 3 A ... ;-)

[...]
> This means that, IMHO, there is no way to avoid the CPU work on
> rtl8187 when you are connected to a network (unless the network AP is
> yours and you reduce beacon interval as someone suggested). Maybe you
> can force some powersave mode on the CPU, by scaling the cpu clock
> frequency, avoiding taht some "ondemand" policy can rise the clock
> when the CPU is loaded (I doubt beacons processing is enough to
> trigger this), but If you tracked down that interrupts are the causes
> of the CPU don't entering C3 state, I _think_ you can't do much..

I would assume that it's some timers you are using? As I understand it,
other interrupts (which cannot really be predicted) don't prevent
the power management code from switching the CPU into deep sleep
modes?!

It's only a PIII, which is too slow with frequency changes for
the ondemand governor, and the speedstep driver also causes other
yet-unresolved problems (audio stuttering) when loaded.
So it's not really a solution in this case, even though you are
right that the actual CPU cycles used would suggest that newer
processors should be able to stay at their minimum frequency with
the ondemand governor.

> So far If you are looking for a card that make you save power, I
> suggest you to get a fullmac one.

Any suggestions as to how to recognize those? Or even a recommendation
for a specific device/chipset?

Florian

  reply	other threads:[~2009-12-19  1:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-18 18:02 Power consumption of RTL8187 (driver)/recommendations for low-power USB 802.11 adapter? Florian Zumbiehl
2009-12-18 18:20 ` Larry Finger
2009-12-18 18:59   ` Florian Zumbiehl
2009-12-18 23:28     ` Larry Finger
2009-12-19  0:15       ` Andrea Merello
2009-12-19  1:13         ` Florian Zumbiehl [this message]
2009-12-19 10:30           ` Andrea Merello
2009-12-19 15:32             ` Hin-Tak Leung
2009-12-19 18:44             ` Florian Zumbiehl
2009-12-19 23:31               ` Hin-Tak Leung
2009-12-21 21:27                 ` Florian Zumbiehl
2009-12-20 18:43         ` Kalle Valo
2009-12-19  0:37       ` Florian Zumbiehl
2009-12-19 10:19         ` Andrea Merello

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=20091219011306.GG2512@florz.florz.dyndns.org \
    --to=florz@florz.de \
    --cc=Larry.Finger@lwfinger.net \
    --cc=andreamrl@tiscali.it \
    --cc=herton@mandriva.com.br \
    --cc=htl10@users.sourceforge.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