From owner-freebsd-net@FreeBSD.ORG Tue Dec 21 09:52:13 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A94691065696 for ; Tue, 21 Dec 2010 09:52:13 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 656058FC08 for ; Tue, 21 Dec 2010 09:52:13 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 69AC913DF5F; Tue, 21 Dec 2010 12:52:12 +0300 (MSK) Date: Tue, 21 Dec 2010 12:52:05 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1983605521.20101221125205@serebryakov.spb.ru> To: Eugene Grosbein In-Reply-To: <4D104702.40208@rdtc.ru> References: <12810339411.20101220205327@serebryakov.spb.ru> <4D0FB1B1.7070703@rdtc.ru> <1647893939.20101220234453@serebryakov.spb.ru> <4D104702.40208@rdtc.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: E4500 spend one core to saturate 1Gbit/s link with TCP -- is it nornal? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 09:52:13 -0000 Hello, Eugene. You wrote 21 =C4=C5=CB=C1=C2=D2=D1 2010 =C7., 9:19:46: >>>> Is it normal, that 2.2GHz core is needed to saturate 1Gib link with >>>> only one client (and one TCP connction), or I have something >>>> misconfigured? >>> Compare with ftpd that uses sendfile() kernel function. >> simple "iperf" shows almost same load (slightly less, but it shows >> slightly less speed, about 800Mbit). >>=20 > iperf is bad tool IMHO, it abuses gettimeofday() system call and wastes t= oo much CPU time. > Compare with ftpd that uses sendfile() kernel function. system ftpd twice slower (or I can not find good FTP client for Windowsn -- I've tried FAR, wget/cygwin and "native" ftp), but load is significally less. On the other hand, when I rebuilt kernelk wit DEVICE_POLLING and turned polling on, load decrease to 10-15% of one core in case of samba :) --=20 // Black Lion AKA Lev Serebryakov