Date: Wed, 23 Jan 2008 18:27:00 +0200 From: Stefan Lambrev <stefan.lambrev@moneybookers.com> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: gettimeofday() in hping Message-ID: <47976AD4.3020203@moneybookers.com> In-Reply-To: <9bbcef730801230802n5c52832bk60c6afc47be578f4@mail.gmail.com> References: <4795CC13.7080601@moneybookers.com> <4795FE54.9090606@moneybookers.com> <86lk6i0vzk.fsf@ds4.des.no> <479605E2.6070709@moneybookers.com> <fn5c7u$i7e$2@ger.gmane.org> <47964356.6030602@moneybookers.com> <479647FB.3070909@FreeBSD.org> <47970EE2.5000400@moneybookers.com> <fn7evj$smv$1@ger.gmane.org> <479754E6.1060101@moneybookers.com> <9bbcef730801230802n5c52832bk60c6afc47be578f4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Ivan Voras wrote: > On 23/01/2008, Stefan Lambrev <stefan.lambrev@moneybookers.com> wrote: > >> Greets, >> >> Now I have final results with Linux and FreeBSD on the same hardware >> CPU: Intel(R) Xeon(R) CPU 3070 @ 2.66GHz - dual core >> Lan: em0@pci0:3:0:0: class=0x020000 card=0x10bc8086 chip=0x10bc8086 >> rev=0x06 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82571EB Gigabit Ethernet Controller (Copper)' >> class = network >> subclass = ethernet >> >> FreeBSD releng_7_0 from today - amd64, sched_ule. >> >> ACPI-Fast - 6.187 MB/s >> TSC - 9.455 MB/s >> dummy - 9.577 MB/s >> >> Linux rambo2 2.6.22-14-generic #1 SMP Tue Dec 18 05:28:27 UTC 2007 >> x86_64 GNU/Linux - kubuntu >> >> TSC - 19.456 MB/s >> acpi_pm - 15.394 MB/s >> jiffies - 19.480 MB/s >> >> This is really not what I expected. >> > > For once, it's something I expected :) I just hope it isn't one of > those cases where Kris absolutely cannot reproduce it and arrives at > numbers in favour of FreeBSD :) > (just joking here, absolutely no ill feelings involved). > > It would be helpful if you post exact command line arguments from all cases. > hping is quite simple program - jsut: cd /usr/ports/net/hping-devel && make install Here are my goals, configuration and problems - http://lists.freebsd.org/pipermail/freebsd-performance/2008-January/003071.html For this test, where I benchmark freebsd and linux I just have 2 servers connected with cable (no switch) Host A (flooder) 10.3.3.1 and host B (target) 10.3.3.2 I run from host A : hping --flood -p 22 -S 10.3.3.2 and systat -ifstat on host B to see the traffic that is generated (I do not want to run this monitoring on the flooder host as it will effect his performance) After few minutes running I change the kern.timecounter.hardware to next available counter and move to next test. On linux (kubuntu) you can change the counter by executing: echo tsc > /sys/devices/system/clocksource/clocksource0/current_clocksource and cat /sys/devices/system/clocksource/clocksource0/current_clocksource is the alternative of sysctl kern.timecounter.choice Also I understand that hping is probably written with linux in mind, so is there something else, that is more bsd native and will let me accomplish my goals? :) I need small tool to flood the network and test my bridge firewall. >> The other thing that bothers me is, that under freebsd is quite easy to get: >> [send_ip] sendto: No buffer space available >> It happens almost always on my laptop just few seconds after I start >> hping with timecounter=TSC >> > > I'm not sure, but from what I understood of Robert Watson's > explanation in the big ZFS thread on -current, maybe increasing > kmem_size (exactly as for ZFS...) could help you with these buffers. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-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?47976AD4.3020203>