LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2010, 10:23 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Disable GRO From NIC?


I was told that the reason I'm having network performance issues is due to "generic receive offload" on eth0. I was told to use the following command:

Code:
ethtool -K eth0 gro off
Does anyone know what exactly this is disabling / correcting for my NIC performance?

Last edited by carlosinfl; 08-30-2010 at 10:27 AM.
 
Old 08-31-2010, 09:37 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Turning it off will prevent the nic from buffering inbound data before sending to the cpu ... what sort of performance issues were you having ? .. latency ?
 
1 members found this post helpful.
Old 09-01-2010, 08:01 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by kbp View Post
Turning it off will prevent the nic from buffering inbound data before sending to the cpu ... what sort of performance issues were you having ? .. latency ?
Yes I had latency but only on the virtual guest systems, not the host OS. When I build my host OS (Linux) on the server, everything was super fast. Then I installed VirtualBox software and started building guest systems. When I transfered a 1GB file to the host from my PC, it transfered a 1GB file in about 30 seconds. When I transfered the same file from my PC to the guest systems, it would take about 4-5 hours. The latency was worse the more CPU's I assigned to the guest systems.

Is this bad to turn off? I can't see how this would function with the 'gro' option enabled.
 
Old 09-01-2010, 04:00 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I assume you mean pc to pc is OK where pc to VM is bad.

If you have issues between VM and host file transfer then I'd think it would be the hard drive causing it.

Also how have you set the nic? bridged or local?
 
Old 09-01-2010, 08:47 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
All I can say is give it a try .. there are a lot of layers in the process that could be affecting transfer performance
 
Old 09-02-2010, 07:57 AM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I can tell you that when I transfer a 1 GB file from PC to VM with GRO enabled = 4 hours. When I transfer from PC to VM with GRO disabled = 2 minutes.

I can tell you for sure it's NOT the hard drive or anything else based on simply turning that off. I have the NIC bridged in VirtualBox.
 
Old 11-05-2010, 12:43 PM   #7
nenermooreno
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
How do you configure GRO to stay off when your host reboots? Is this something that I can add to the interface config file, e.g.: /etc/sysconfig/network-scripts/ifcfg-eth1. If so, what would the entry look like? Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I REALLY disable a NIC? ap0calypse Linux - Networking 8 07-08-2009 04:05 AM
How to disable networking function of a NIC longtongfish Linux - Networking 1 08-23-2007 08:15 AM
Disable 1 of my 2 NIC in bootups packets Linux - Networking 11 05-20-2007 05:49 PM
How to disable eth1 (wireless nic card) at startup? exitsfunnel Linux - Wireless Networking 4 02-27-2005 11:27 PM
disable plug and play on isa nic alkee Linux - Networking 4 02-15-2002 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration