From owner-freebsd-current@FreeBSD.ORG Fri Mar 21 07:38:33 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 025F5859; Fri, 21 Mar 2014 07:38:33 +0000 (UTC) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 946003E3; Fri, 21 Mar 2014 07:38:32 +0000 (UTC) Received: from srg.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) by ns.kevlo.org (8.14.8/8.14.8) with ESMTP id s2L7c921006601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 21 Mar 2014 15:38:09 +0800 (CST) (envelope-from kevlo@FreeBSD.org) Message-ID: <532BEC6B.7060400@FreeBSD.org> Date: Fri, 21 Mar 2014 15:38:19 +0800 From: Kevin Lo User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: d@delphij.net, Joe Nosay Subject: Re: Re: UDP Lite support References: <20140227021917.GE81440@lor.one-eyed-alien.net> <530EBCDB.1090303@delphij.net> <53138FA6.1060705@delphij.net> In-Reply-To: <53138FA6.1060705@delphij.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Brooks Davis , freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2014 07:38:33 -0000 On 2014/03/03 04:08, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On 3/2/14, 10:42 AM, Joe Nosay wrote: >> On Thu, Feb 27, 2014 at 3:22 AM, Joe Nosay >> wrote: >> >>> >>> >>> On Wed, Feb 26, 2014 at 11:19 PM, Xin Li >>> wrote: >>> >> On 02/26/14 18:52, Joe Nosay wrote: >>>>>> On Wed, Feb 26, 2014 at 9:19 PM, Brooks Davis >>>>>> wrote: >>>>>> >>>>>>> On Wed, Feb 26, 2014 at 07:36:29PM -0500, Joe Nosay >>>>>>> wrote: >>>>>>>> The last thread on this was in 2006. Has it ever been >>>>>>>> reconsidered or is the likelihood of too many damaged >>>>>>>> packets the reason for not supporting? I'm not sure >>>>>>>> where to put this question. Apologies for the noise. >>>>>>> You've provided next to no context. What is the >>>>>>> question? What thread are you referring to? If this is >>>>>>> the usual UDP then freebsd-net would be vastly more >>>>>>> appropriate than -current. >>>>>>> >>>>>>> -- Brooks >>>>>>> >>>>>> Thanks. I will ask kevlo and maybe bring it up on >>>>>> freebsd-net. It has to do with an implementation of the >>>>>> JACK server using UDP Lite for transferring data. >>>>>> >>>>>> >> http://freebsd.1045724.n5.nabble.com/UDP-lite-for-FreeBSD-td4010236.html >> >> Looks >> like nobody proposed a patch? >> >> I think the concern was that this is not very useful in real-world >> scenarios due to link layer error detection mechanism but that >> doesn't raise a red flag to me assuming this is sufficiently self >> contained feature as it would improve compatibility with other >> operating systems. >> >> Cheers, >>> https://github.com/torelizer/jack_trauma >>> >>> Not my project; but, I want to port it to FreeBSD. First is to >>> get it to build from source. Use your raspberry pi with FreeBSD >>> to broadcast your tunes and all. >>> >> >> Thanks for all of the input. The project is being reworked to >> improve the code. > Kevin Lo have a patchset but needs someone to do performance testing > (its impact on non-UDPLite applications), test with vimage, etc: > > http://people.freebsd.org/~kevlo/udplite.diff > http://people.freebsd.org/~kevlo/udp-v.diff > > Are you interested in working on these and report back? The revised patch is available at: http://people.freebsd.org/~kevlo/udplite.diff I measure and compare the performance of UDP with/without UDP-lite patch, the udp-lite patch doesn't affect the performance. Tested system is FreeBSD/amd64 -CURRENT(r263301), machines were connected via cross-link cable. Machines: --------- Dragon (connected to Monkey) CPU: Intel(R) Core(TM) i3-2330E CPU @ 2.20GHz (2195.06-MHz K8-class CPU) Origin="GenuineIntel" Id=0x206a7 Family=0x6 Model=0x2a Stepping=7 RAM: 2GB NIC: on-board em(4) Monkey (connected to Dragon) CPU: Intel(R) Core(TM) i3-2330E CPU @ 2.20GHz (2195.06-MHz K8-class CPU) Origin="GenuineIntel" Id=0x206a7 Family=0x6 Model=0x2a Stepping=7 RAM: 1GB NIC: on-board em(4) Monkey runs 'netserver'. All tests done with netperf software: UDP Stream test: ------------------------- % netperf -c -l 60 -H Monkey -t UDP_STREAM -i 10,2 -I 99,5 -- -m 64 -s 57344 -S 57344 % netperf -c -l 60 -H Monkey -t UDP_STREAM -i 10,2 -I 99,5 -- -m 4096 -s 57344 -S 57344 % netperf -c -l 60 -H Monkey -t UDP_STREAM -i 10,2 -I 99,5 -- -m 16384 -s 57344 -S 57344 Without UDP-Lite patch: Netperf test MTU BW BSIZE ------------ ---- ------ ------ UDP_STREAM 1500 211.3 64 UDP_STREAM 1500 950.4 4096 UDP_STREAM 1500 948.6 16384 With UDP-Lite patch: Netperf test MTU BW BSIZE ------------ ---- ------ ------ UDP_STREAM 1500 216.5 64 UDP_STREAM 1500 950.3 4096 UDP_STREAM 1500 948.6 16384 > > Cheers, > -----BEGIN PGP SIGNATURE----- > > iQIcBAEBCgAGBQJTE4+mAAoJEJW2GBstM+nsthoQAIW67l7yDfIPvxDsNIWWJcRd > 8brFYCAOPYE4LpuLGjtSgy370aBe9JmwAm41tE4qF0WhGpcu6TLsKjgMGWa/lHCc > JId8+WBfbbQT8XJj/d+3oOETn5/rglvlRhJbnNIwaQpTXxuMC5oz2nGW7rIpIkaA > OHo0D20DzGj4nxrQvijZ7DsMkk3F+KJu/4p7M6lpsIPCakknW1WD7IHRfbZ4Oldz > 2xH4HfIk7cAdA7i/YUNjlpSgWFQ5OU03J5HAYfC6W37wiGbjdBYf/PKVhJ8hz7+D > OCl+yCV00u4fCjlY6zXFea9pGr7Cl1P+sapwKDZ4g+NpNHxBUVY+ahbjQUHYON2W > sdzAsLpMMqavCr1o8mcXdm7IPRlLUK9QZUySC9DitPvoF8G2llTAz1mWa4/Oj7/S > JMiUERcaL5gdFN8EgEKkamFgLJguYquAjGtiowa51EMbnZG0Q2yWUcrEBFHWBEZT > RW1u6r4ChIrPE9X5ljfFpQyKG6jFhYFXG+iVlgTB7F2ZWhjPAXi/tLbBnvIcci1m > Md4XFm/bBJj/yNXdPuCi+CtvvdpZ/d4LQn4B7By5bIo1QjCb4Zx5n2Tq5xnYZUOI > CnSVnNSkwLbbrAVtYOVWnrSuwR33JQnqeGHdM+XYBBwKBRhrx+ZgFWD7N6Gm95PU > xXSxkgYVXI4sgi7Lh3Ia > =2Vmc > -----END PGP SIGNATURE----- Kevin