From: Willy Tarreau <w@1wt.eu>
To: "Kok, Auke" <auke-jan.h.kok@intel.com>
Cc: Pavel Machek <pavel@ucw.cz>,
Arjan van de Ven <arjan@infradead.org>,
kernel list <linux-kernel@vger.kernel.org>
Subject: Re: gigabit ethernet power consumption
Date: Tue, 9 Oct 2007 07:18:56 +0200 [thread overview]
Message-ID: <20071009051856.GT10199@1wt.eu> (raw)
In-Reply-To: <470AAFD7.9060002@intel.com>
Hi Auke,
On Mon, Oct 08, 2007 at 03:31:51PM -0700, Kok, Auke wrote:
> Pavel Machek wrote:
> > Hi!
> >
> > I've found that gbit vs. 100mbit power consumption difference is about
> > 1W -- pretty significant. (Maybe powertop should include it in the
> > tips section? :).
> >
> > Energy Star people insist that machines should switch down to 100mbit
> > when network is idle, and I guess that makes a lot of sense -- you
> > save 1W locally and 1W on the router.
> >
> > Question is, how to implement it correctly? Daemon that would watch
> > data rates and switch speeds using mii-tool would be simple, but is
> > that enough?
>
> you most certainly want to do this in userspace I think.
>
> One of the biggest problems is that link negotiation can take a significant amount
> of time, well over several seconds (1 to 3 seconds typical) with gigabit, and
> having your ethernet connection go offline for 3 seconds may not be the desired
> effect for when you want to get more bandwidth in the first place.
>
> However, when a laptop is in battery mode, switching down from gigabit to 100mbit
> makes a lot more sense, so this is something I would recommend. This can be as
> easy as changing the advertisement mask of the interface and renegotiating the
> link. Userspace could handle that very easily.
If something does that, it must *only* be in userspace so that we can
easily disable it. It's amazing how many laptops consider that you
don't want any performance when you run off batteries. I've seen a
2GHz laptop falling back to 600 MHz when running on batteries, which
was very inconvenient when the laptop in question was used to go
sniffing gigabit traffic in datacenters... I would even go as far
as to say that my notebook runs lowpower only when it's plugged into
the wall because it's when I'm typing or doing low activity things.
In my opinion, battery != low power, battery == mobility. It's user's
choice which must imply low power, so that must be done with a dedicated
daemon.
Regards,
Willy
next prev parent reply other threads:[~2007-10-09 5:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-08 22:07 gigabit ethernet power consumption Pavel Machek
2007-10-08 22:31 ` Kok, Auke
2007-10-09 5:18 ` Willy Tarreau [this message]
2007-10-09 18:28 ` Lennart Sorensen
2007-10-09 18:41 ` Kok, Auke
2007-10-10 20:44 ` Mark Gross
2007-10-11 15:33 ` Kok, Auke
2007-10-11 11:35 ` K.Prasad
2007-10-11 15:18 ` Kok, Auke
2007-10-10 6:35 ` Oliver Neukum
2007-10-09 5:08 ` Chris Snook
2007-10-09 6:58 ` Oliver Neukum
[not found] <9c8XH-7gs-13@gated-at.bofh.it>
[not found] ` <9c9qN-7Rn-19@gated-at.bofh.it>
[not found] ` <9cs0n-3Dc-9@gated-at.bofh.it>
[not found] ` <9csjH-43E-33@gated-at.bofh.it>
[not found] ` <9d4yC-5hT-7@gated-at.bofh.it>
[not found] ` <9d7ZJ-2mI-11@gated-at.bofh.it>
2007-10-12 2:08 ` Bodo Eggert
2007-10-12 16:35 ` Kok, Auke
2007-10-12 20:30 ` Valdis.Kletnieks
2007-10-12 20:46 ` Kok, Auke
2007-10-17 13:00 ` Lennart Sorensen
2007-10-17 16:38 ` Kok, Auke
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=20071009051856.GT10199@1wt.eu \
--to=w@1wt.eu \
--cc=arjan@infradead.org \
--cc=auke-jan.h.kok@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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