lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c3ff00a1-ac51-7f27-8e90-b753f316866d@gmail.com>
Date:   Tue, 20 Nov 2018 21:14:21 +0100
From:   Heiner Kallweit <hkallweit1@...il.com>
To:     Andrew Lunn <andrew@...n.ch>, Paul Menzel <pmenzel@...gen.mpg.de>
Cc:     Realtek linux nic maintainers <nic_swsd@...ltek.com>,
        "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: Realtek NIC uses over 1 Watt with no traffic

On 20.11.2018 15:45, Andrew Lunn wrote:
> On Tue, Nov 20, 2018 at 09:40:25AM +0100, Paul Menzel wrote:
>> Dear Linux folks,
>>
>>
>> Using Ubuntu 18.10, Linux 4.18.0-11-generic, PowerTOP 2.9 shows, the NIC
>> uses 1.77 Watts. A network cable is plugged in, but there is no real traffic
>> according to `iftop`. Only an email program is running.
>>
>>     $ lspci -nn -s 3:00.1
>>     03:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
>> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev
>> 12)
>>
>> Is that a measurement error, or does the NIC really need that much power?
> 
> Hi Paul
> 
> This sounds like Energy Efficient Ethernet, EEE, is not enabled.
> 
> What does ethtool --show-eee ethX say?
> 
>      Andrew
> 
The r8169 driver doesn't support the get_eee ethtool_ops callback.
For certain chip versions EEE gets enabled in the PHY init, for others
not and some don't seem to support EEE at all.

Apart from EEE one important factor affecting power consumption is ASPM.
This was recently enabled for certain chip versions.

Information that would help:

whether Wake-on-LAN is enabled ("Wake-on:" line from ethtool output)

lspci -vv output for the Realtek NIC

Info from powertop about package C states. With ASPM my system reaches
50% PC7 + 50% PC10.

dmesg output filtered for "r8169". Primarily relevant is the line with
the chip name and XID.

Heiner

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ