From owner-freebsd-net@freebsd.org Mon Jan 4 15:42: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 983DFA61DC5 for ; Mon, 4 Jan 2016 15:42:20 +0000 (UTC) (envelope-from mailhuanhuan@gmail.com) Received: from mail-pf0-x22a.google.com (mail-pf0-x22a.google.com [IPv6:2607:f8b0:400e:c00::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F5A51828; Mon, 4 Jan 2016 15:42:20 +0000 (UTC) (envelope-from mailhuanhuan@gmail.com) Received: by mail-pf0-x22a.google.com with SMTP id 65so158911798pff.3; Mon, 04 Jan 2016 07:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=0wS4rJXcbQ6fvFEdd5PV00fpvpqdMFWjc+xP7ThqQIA=; b=ciOjrcmtGKmMcZOVDZz8xbr1Z+mvZlmT39bsOSrkhAbeVsgfTfKOtmxAVLyl1LHj/t +AFM4LwZR3h7wg8dy05GF5aJVrR2B6GTQUENzOF5Hi62QeFA2cn5zc79Z935zUZwadIT ggQqhb28zC/Qqqd2AbzjIlSRKNGE3tmHdofdsovs7CQpsQmsYNhikpOhT5gsPHD9IZwW ZW7dPxdJ6C9z8XvAG7VSd7AbWA+OF1ZhluZYxZnXfBIsKhiwqMzfCXQz4mOFvznip9CB dVozGcNfrMiqY/IHAGjH0m220QMRINFHlICcdJw32Rn+7el9gHw5mLP/J8MZsd2WNPNj ZtGg== X-Received: by 10.98.7.92 with SMTP id b89mr126951411pfd.69.1451922140002; Mon, 04 Jan 2016 07:42:20 -0800 (PST) Received: from [192.168.255.2] ([104.207.154.124]) by smtp.gmail.com with ESMTPSA id f67sm79404763pfd.10.2016.01.04.07.42.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 07:42:19 -0800 (PST) From: HuanHuan X-Google-Original-From: HuanHuan Date: Mon, 4 Jan 2016 23:41:35 +0800 (CST) To: Julian Elischer cc: HuanHuan , Rui Paulo , freebsd-net@freebsd.org, Luigi Rizzo Subject: Re: Does FreeBSD have sendmmsg or recvmmsg system calls? In-Reply-To: <568A0FC6.8050107@freebsd.org> Message-ID: References: <1451841004.10139.34.camel@me.com> <568A0FC6.8050107@freebsd.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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 15:42:20 -0000 Thank you for pointing out that. I will try to rewrite some (if I could), like the the ASCII path that received. (It may reduce some time or not? But just try....) On Mon, 4 Jan 2016, Julian Elischer wrote: > 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" >> >> > >