Date: Fri, 28 Jan 2011 18:15:53 +0200 From: Stefan Lambrev <stefan.lambrev@moneybookers.com> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: freebsd-performance@freebsd.org Subject: Re: Interrupt performance Message-ID: <CDBFAB7F-1EBC-4B3A-B2F5-6162DD58A93D@moneybookers.com> In-Reply-To: <20110128161035.GF18170@zxy.spb.ru> References: <20110128143355.GD18170@zxy.spb.ru> <22E77EED-6455-4164-9115-BBD359EC8CA6@moneybookers.com> <20110128161035.GF18170@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
The overhead comes from badly written software. This software is optimized for linux and you have to optimize it for = freebsd, then you will have the same overhead. All those *popular* benchmarks like hping, iperf, netperf have some = strange optimizations for linux - we call them linuxism. Just search the archives - I'm pretty sure patches are flying around. On Jan 28, 2011, at 6:10 PM, Slawa Olhovchenkov wrote: > On Fri, Jan 28, 2011 at 06:03:15PM +0200, Stefan Lambrev wrote: >=20 >> Do the test with netblast ;) >> Most perf tools are written badly and for Linux. >> In our internal test netblast running on freebsd outperform = everything else. >=20 > I don't speak about bad performance. > I speak about overhead. >=20 > Linux: overhead 7% for 56K int/s > FreeBSD: overhead 59% for 14K int/s >=20 > For processing 1/4 interrupts FreeBSD need 8x CPU. >=20 >> P.S. - /usr/src/tools/tools/netrate/netblast - we have tested little = more expensive card - em/igb and bce. >>=20 >> On Jan 28, 2011, at 4:33 PM, Slawa Olhovchenkov wrote: >>=20 >>> I test network performance and found some strange result -- on the >>> same hardware Linux more then 10x used CPU resources for interrupt >>> processing. >>>=20 >>> FreeBSD system utilise 70% CPU (32% idle, 59% interrupt, 9% sys) and >>> network card generate 14K-18K interrupt per second. >>>=20 >>> Linux system utilise 20% CPU (80% idle, 13% system, 3% hiq, 4% siq) >>> and network card generate 56K interrupt per second. >>>=20 >>> I used 'netperf -H host -t UDP_STREAM -l 60 -C -c -- -m 8972 -s >>> 128K -S 128K' for generate network traffic. >>>=20 >>> NIC: >>>=20 >>> re0: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port = 0x4000-0x40ff mem 0xf0100000-0xf01000ff irq 19 at device 4.0 on pci11 >>> re0: Chip rev. 0x18000000 >>> re0: MAC rev. 0x00000000 >>> miibus0: <MII bus> on re0 >>> rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0 >>>=20 >>>=20 >>> CPU: >>>=20 >>> CPU: Intel(R) Celeron(R) CPU 420 @ 1.60GHz (1596.05-MHz = K8-class CPU) >>> Origin =3D "GenuineIntel" Id =3D 0x10661 Family =3D 6 Model =3D = 16 >>> Stepping =3D 1 >>> = Features=3D0xafebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE= ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE> >>> Features2=3D0xe31d<SSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM> >>> AMD Features=3D0x20100800<SYSCALL,NX,LM> >>> AMD Features2=3D0x1<LAHF> >>> TSC: P-state invariant >>>=20 >>> RAM: one DDR2-667 DIMM. >>>=20 >>> OS: 8.2-RC2, amd64 >>>=20 >>> _______________________________________________ >>> freebsd-performance@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-performance >>> To unsubscribe, send any mail to = "freebsd-performance-unsubscribe@freebsd.org" >>=20 >> -- >> Best Wishes, >> Stefan Lambrev >> ICQ# 24134177 >>=20 >>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> freebsd-performance@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-performance >> To unsubscribe, send any mail to = "freebsd-performance-unsubscribe@freebsd.org" -- Best Wishes, Stefan Lambrev ICQ# 24134177
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CDBFAB7F-1EBC-4B3A-B2F5-6162DD58A93D>