All of lore.kernel.org
 help / color / mirror / Atom feed
* r8169 & TX offload
@ 2007-10-16 15:23 Vladislav Bolkhovitin
  2007-10-16 17:25 ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: Vladislav Bolkhovitin @ 2007-10-16 15:23 UTC (permalink / raw)
  To: LKML; +Cc: Francois Romieu

Hello,

I've recently bought Realtek RTL8169S-32 chip based Gigabit Ethernet card:

# lspci -vv
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit 
Ethernet (rev 10)
         Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit 
Ethernet
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- 
ParErr- Stepping- SERR+ FastB2B-
         Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium 
 >TAbort- <TAbort- <MAbort- >SERR- <PERR-
         Latency: 64 (8000ns min, 16000ns max), Cache Line Size 20
         Interrupt: pin A routed to IRQ 10
         Region 0: I/O ports at c400 [size=256]
         Region 1: Memory at fe9fec00 (32-bit, non-prefetchable) [size=256]
         Expansion ROM at fe9c0000 [disabled] [size=128K]
         Capabilities: [dc] Power Management version 2
                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
PME(D0-,D1+,D2+,D3hot+,D3cold+)
                 Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I've noticed that all TX offload features (tx-checksumming, 
scatter-gather and TSO) are disabled by default and should be manually 
enabled by ethtool. I wonder, is there any particular reason for that? 
Why they are not enabled by default as it was done for e1000 or tg3? Are 
there any hidden drawbacks in enabling them?

Those offload options are definitely work. They give in my setup (32-bit 
66MHz PCI, Xeon 1.7GHz CPU, open-iscsi) CPU offload from 75% to 45% and 
data write throughput improvement from 55MB/s to 59MB/s.

Regards,
Vlad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: r8169 & TX offload
  2007-10-16 15:23 r8169 & TX offload Vladislav Bolkhovitin
@ 2007-10-16 17:25 ` Francois Romieu
  2007-10-17 17:42   ` Vladislav Bolkhovitin
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2007-10-16 17:25 UTC (permalink / raw)
  To: Vladislav Bolkhovitin; +Cc: LKML, netdev

(please remove l-k from the Cc:, this ought to be sent to netdev)

Vladislav Bolkhovitin <vst@vlnb.net> :
>
> I've recently bought Realtek RTL8169S-32 chip based Gigabit Ethernet card:
> 
> # lspci -vv
[...]
> I've noticed that all TX offload features (tx-checksumming, 
> scatter-gather and TSO) are disabled by default and should be manually 
> enabled by ethtool. I wonder, is there any particular reason for that? 

As far as I can tell, it is mostly a lack of pressure from the users and
my desire to avoid a change of behavior.

> Why they are not enabled by default as it was done for e1000 or tg3? Are 
> there any hidden drawbacks in enabling them?

None that I know of. I had not noticed a huge difference and people did
not comment a lot either...

> Those offload options are definitely work. They give in my setup (32-bit 
> 66MHz PCI, Xeon 1.7GHz CPU, open-iscsi) CPU offload from 75% to 45% and 
> data write throughput improvement from 55MB/s to 59MB/s.

...but your datapoint is welcome.

-- 
Ueimor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: r8169 & TX offload
  2007-10-16 17:25 ` Francois Romieu
@ 2007-10-17 17:42   ` Vladislav Bolkhovitin
  0 siblings, 0 replies; 3+ messages in thread
From: Vladislav Bolkhovitin @ 2007-10-17 17:42 UTC (permalink / raw)
  To: Francois Romieu; +Cc: netdev

Francois Romieu wrote:
> (please remove l-k from the Cc:, this ought to be sent to netdev)

OK. Sorry, for some reason I thought I read in the MAINTAINERS file that 
LKML is the mailing list for r8169 driver.

> Vladislav Bolkhovitin <vst@vlnb.net> :
> 
>>I've recently bought Realtek RTL8169S-32 chip based Gigabit Ethernet card:
>>
>># lspci -vv
> 
> [...]
> 
>>I've noticed that all TX offload features (tx-checksumming, 
>>scatter-gather and TSO) are disabled by default and should be manually 
>>enabled by ethtool. I wonder, is there any particular reason for that? 
> 
> As far as I can tell, it is mostly a lack of pressure from the users and
> my desire to avoid a change of behavior.
> 
>>Why they are not enabled by default as it was done for e1000 or tg3? Are 
>>there any hidden drawbacks in enabling them?
> 
> None that I know of. I had not noticed a huge difference and people did
> not comment a lot either...

I think, 30% of CPU saving is worth enough to turn TX offload on, 
especially if a system does something more than just data transfers. 
Usually, such options are enabled by default unless there are some 
hidden important drawbacks, like stability issues. Hence, there are 
questions like mine: it's just too suspicious that something good 
doesn't have hidden issues if it isn't enabled by author ;)

Thanks for clarification.

>>Those offload options are definitely work. They give in my setup (32-bit 
>>66MHz PCI, Xeon 1.7GHz CPU, open-iscsi) CPU offload from 75% to 45% and 
>>data write throughput improvement from 55MB/s to 59MB/s.
> 
> ...but your datapoint is welcome.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-17 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 15:23 r8169 & TX offload Vladislav Bolkhovitin
2007-10-16 17:25 ` Francois Romieu
2007-10-17 17:42   ` Vladislav Bolkhovitin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.