Greetings,
Stefan Lambrev wrote:
Greetings,
Kris Kennaway wrote:
Kris Kennaway wrote:
Fixing all of the above I can send at about 13MB/sec (timecounter
is not relevant any more). The CPU is spending about 75% of the
time in the kernel, so
that is the next place to look. [hit send too soon]
Actually 15MB/sec once I disable all kernel debugging. This is
identical to Linux 2.6.24 on the same hardware. The patch I use to
fix hping brain-damage is attached.
Kris
Indeed this patch highly improve results (x2) under FreeBSD. On my
hardware the max speeds under FreeBSD i still little slower compared
to Linux (something like 19 vs 19.5 MB/s)
but the speed is quite more stable under FreeBSD (under linux the
average speed seems slower)
I didn't tested the patch under linux but will do soon.
Thanks for the help :)
BTW 262144 is little high as this match the default value in FreeBSD,
I tested with twice smaller buffer and do not see performance lost.
Kris if you do not mind I'll write to hping developers to adopt this
patch, and if no response from them I can try to reach the port
maintainer, so we have this patched in ports?
I have results from hping + patches with different counters in freebsd
and linux:
Linux - ACPI
em1 in 22.257 MB/s 22.479 MB/s 15.384 GB
out 13.735 MB/s 14.247 MB/s 12.432 GB
Linux -- TSC
em1 in 22.334 MB/s 22.445 MB/s 18.599 GB
out 13.567 MB/s 14.176 MB/s 14.379 GB
Linux - jiffies
em1 in 22.119 MB/s 22.268 MB/s 20.078 GB
out 13.962 MB/s 14.058 MB/s 15.270 GB
FreeBSD - ACPI
em1 in 13.157 MB/s 13.162 MB/s 23.697 GB
out 13.150 MB/s 13.153 MB/s 17.976 GB
FreeBSD - TSC
em1 in 18.624 MB/s 18.832 MB/s 25.507 GB
out 17.008 MB/s 17.041 MB/s 19.681 GB
FreeBSD - i8254
em1 in 6.763 MB/s 6.763 MB/s 26.005 GB
out 6.756 MB/s 6.758 MB/s 20.151 GB
FreeBSD - dummy
em1 in 18.705 MB/s 18.796 MB/s 27.014 GB
out 17.217 MB/s 17.225 MB/s 21.082 GB
It is weird that changing time counter in linux does not affect
performance which may mean, that time counter is not changed at all
(always TSC used?) ...
But here are few others interesting findings
1) patch increase performance in linux too.
2) when flooding from linux the numbers of returned packets are less.
3) on both linux and freebsd the max combined speed is 35MB/s which is
something like 630,000 packets/s
Does anyone ever succeed to transfer without error more then 630kpps
(300kpps incoming) with em driver and intel gigabit card?
--
Best Wishes,
Stefan Lambrev
ICQ# 24134177
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"