Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2007 20:11:39 +0400
From:      Vladimir Ivanov <wawa@yandex-team.ru>
To:        Ed Maste <emaste@phaedrus.sandvine.ca>
Cc:        freebsd-net@freebsd.org, Cristian KLEIN <cristi@net.utcluj.ro>, lists@codeangels.com
Subject:   Re: FreeBSD as a gigabit router
Message-ID:  <470CF9BB.5090704@yandex-team.ru>
In-Reply-To: <20071010145453.GA54106@sandvine.com>
References:  <4703F9C3.2060601@net.utcluj.ro>	<4532.192.168.2.137.1191451931.squirrel@www.codeangels.com>	<470535D6.7020601@net.utcluj.ro>	<0D18E826-52EA-4BEC-9404-1C98BFCDD418@staff.openaccess.org> <20071010145453.GA54106@sandvine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms000606070108030807040806
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Ed Maste wrote:
> On Thu, Oct 04, 2007 at 12:02:56PM -0700, Michael DeMan wrote:
>
>   
>> Also, we've noticed at least on FBSD 6.x that there seem to be very  
>> few advantages in using polling on network interfaces.  We still run  
>> it, so that we have responsive SSH/BGP/OSPF processes on the  
>> machines, but my testing has shown that for sheer throughput, there  
>> is basically no difference.  I'd be curious if anybody knows the  
>> scoop on this.
>> The polling mechanism includes a feedback mechanism that attempts to
>> keep a certain amount of CPU time available for userland.  It works
>> well at keeping the system usable under high load, but it doesn't
>> perform so well if you want to dedicate most of the CPU time to polling
>> in order to get near the maximum throughput.
>>
>>     
JFYI: We've used another trick. Yandex's driver allows to alter RX' 
threads priority.  Also, it disables interrupts if driver busy (and 
works like a polling).  This combination seems to be very stable under 
heavy load.
Also, I seem it more intuitive for tuning.
> I have some prototype code that addresses this, and the the throughput
> with the new polling algorithm beat the non-polling kernel perf. by a
> small margin.  This won't make it into RELENG_7, but I plan to bring
> it to HEAD at some point.
>
> -Ed
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>   

WBR,

-- 
Vladimir Ivanov
Network Operations Center
OOO "Yandex"
t: +7 495 739-7000
f: +7 495 739-7070
@: noc@yandex.net (corporate)
  wawa@yandex-team.ru (personal)
www: www.yandex.ru
-- 


--------------ms000606070108030807040806
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGJzCC
AuAwggJJoAMCAQICEA2B08GbcpEEl6Da/kpOht8wDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA3MDcwNDE1MTM0NVoX
DTA4MDcwMzE1MTM0NVowRTEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEiMCAG
CSqGSIb3DQEJARYTd2F3YUB5YW5kZXgtdGVhbS5ydTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBANuooNgTWqT0D35N7rdbZAAje8iyZcELUHy3Dgh6Pymm+s7RIeP8EoxTnn1o
YQMFkZdthNT/j+MXl61O0zBshti+34/9m0rQzntCHDboJf9yTeA0bOqL43EdnEMlUWTEaf00
dcOySQ3fpTKiiQKqFASI1MUPDCfQQuu6ansTCpddG8fOu+zaE570aH6hoy/NRGhH8SCbcARY
QxjjiddCUknclX2gz4ak+wVB4IapHNSdtRG3APj5GZY9VK7sAwjOqodcNwbQEG/Gj6j99fU3
7GYAL+x3bz9wve9YGEJ7TUPLpd582tZtiiakqurnluId4Ix1B/HSyAZnPAr5WYJZ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Vl
oQk87gZ9j1qS2+C69JtEq38n45X3qty5eQXnYJu59vNnyWQDx5jWDrHe47LRhPLVWm5/Y2rz
LntkiJQHc4mDagAAAAAAAA==
--------------ms000606070108030807040806--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?470CF9BB.5090704>