From owner-freebsd-net@freebsd.org Mon Jan 4 06:23:20 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8CED6A60BA2 for ; Mon, 4 Jan 2016 06:23:20 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6923A1159 for ; Mon, 4 Jan 2016 06:23:19 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-250-125.lns20.per4.internode.on.net [121.45.250.125]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id u046N83U061950 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 3 Jan 2016 22:23:11 -0800 (PST) (envelope-from julian@freebsd.org) Subject: Re: Does FreeBSD have sendmmsg or recvmmsg system calls? To: HuanHuan , Rui Paulo References: <1451841004.10139.34.camel@me.com> Cc: freebsd-net@freebsd.org, Luigi Rizzo From: Julian Elischer Message-ID: <568A0FC6.8050107@freebsd.org> Date: Mon, 4 Jan 2016 14:23:02 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 06:23:20 -0000 On 4/01/2016 5:32 AM, HuanHuan wrote: > Hi Rui, > > There are no existing applications, but these two calls are for > developing new application on 10G links. > > Currently I use netgraph, especially ng_socket node. And a simple > recvfrom() on a ng_socket costs ~5us or so (200K per second). And > there are many netgraph sockets. So it's good to reduce the time by > ultilizing send/recvmmsg() if there are these two syscalls. Even a > simple-loop like implmentation like linux's will be good as Luigi > has suggested. As the writer of netgraph I would like to point out that it was never designed to be a high throughput service. I'm happy thought that it CAN be used at these speeds but I designed it for prototyping and for serial line speeds. The idea was that once something was prototyped out, one would take the code from all the modules used and create a special purpose module that dd what you need. The fact that people have not needed the last step is gratifying but surprising. > > On Sun, 3 Jan 2016, Rui Paulo wrote: > >> On Sun, 2016-01-03 at 18:34 +0800, HuanHuan wrote: >>> NetBSD 7.0 has just introduced these two syscalls. >>> And Linux also has them. >>> >>> Does FreeBSD have them? Or plan to support them in the future? >> >> FreeBSD does not have them. It doesn't seem especially hard to >> implement, though. Do you know any major application already using >> them? >> >> -- >> Rui Paulo >> >> > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >