From owner-freebsd-net@FreeBSD.ORG Fri Jul 11 16:08:13 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9523BC7F for ; Fri, 11 Jul 2014 16:08:13 +0000 (UTC) Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [IPv6:2607:f8b0:400d:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49E042962 for ; Fri, 11 Jul 2014 16:08:13 +0000 (UTC) Received: by mail-qc0-f178.google.com with SMTP id i17so1153340qcy.23 for ; Fri, 11 Jul 2014 09:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wVNrHOBOYHcV7mlDsMwJT60gi9iGrdsZrqUAfkASt1k=; b=G55jHficu5ZeRHp3v/kBgqpsifn9PB5jMmZCBnVMwp8NfrjclRMxUA+pWvU/0HPVEo oTNmU6bQaV299Ms8JSXDaRkR/xMR/DLv25aojtD56PTlI9oFN5krN814OOqL9lmHfsm4 1HW7k7pyX1q3zHMEBTkWVbE1YlJR8Rvgga49LN7qhtkav9G90qXfXFvPvcmeHMHAP114 qu3m2gAXWvDcpkvRoW4jm/nwhq8GHop/CB9PvxbGRhe9d3avRYq83ntMG1Idhr92BejD VkieQ3b3GMVNgcNMFyrB7xJETFwz7zs8CKKRb/d/zcjUHLq0Ek2TraADMy7sGvjdRuHb 18zw== X-Received: by 10.229.184.9 with SMTP id ci9mr23377513qcb.11.1405094892422; Fri, 11 Jul 2014 09:08:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.74.69 with HTTP; Fri, 11 Jul 2014 09:07:31 -0700 (PDT) In-Reply-To: References: <20140614101523.GD22187@onelab2.iet.unipi.it> From: Carlos Ferreira Date: Fri, 11 Jul 2014 17:07:31 +0100 Message-ID: Subject: Re: netmap To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: "freebsd-net@freebsd.org" , Prashant Upadhyaya X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 16:08:13 -0000 Luigi one question. Does netmap requires a processor with 64 bits? I'm having some trouble in compiling netmap, using the same Makefile I used previously, but for an Intel IXP435 CPU (Gateworks Cambria). On 28 June 2014 14:07, Carlos Ferreira wrote: > Hello to all. > Unfortunately, I have been unable to do the test that Luigi requested due > to the lack of hardware. All the Gateworks Cambria SBC that I have are > currently allocated to another project. Only in about one week, will I ha= ve > the opportunity to test it. > As soon as I have news, I will post them. :) > > > On 28 June 2014 09:24, Luigi Rizzo wrote: > >> >> >> On Saturday, June 28, 2014, Prashant Upadhyaya >> wrote: >> >>> Hi, >>> >>> Any further news ? >>> >>> Professor Luigi, one question regarding the tx with netmap. >>> Whenever, I write a packet from user space into netmap rings, and if I >>> want netmap to send this out immediately, do I necessarily have to do >>> a ioctl(fd, NIOCTXSYNC, NULL) ? >>> >> >> Yes it is up to the application to decide when to push packets out with = a >> txsync or select() or poll(), and unfortunately there is a tradeoff betw= een >> efficiency and latency >> >> Cheers >> Luigi >> >> >>> >>> I have an application which receives packets, does some processing and >>> then sends them out. If I keep doing ioctl's on every packet send, then >>> there will be too may system calls hitting performance, the application >>> can't afford to block it has to return back to polling for the receipt = of >>> next packet. >>> >>> On the receive side, I see that I don't have a problem because I can >>> poll the ring without initiating an RXSYNC and whenever in user space I >>> find that there is nothing on the ring (probably half way down the ring >>> size), I do an RXSYNC to get more packets thus saving system calls. >>> >>> But on tx side, I have noticed that unless I do a TXSYNC, the packet >>> does not go out, please let me know if I am missing something. >>> >>> Regards >>> -Prashant >>> >>> >>> >>> On Tue, Jun 17, 2014 at 7:33 PM, Carlos Ferreira >>> wrote: >>> >>>> Great! :) >>>> I will give you the results as soon as I can get them :) >>>> >>>> >>>> >>>> On 17 June 2014 12:55, Luigi Rizzo wrote: >>>> >>>> > On Mon, Jun 16, 2014 at 5:30 PM, Carlos Ferreira < >>>> carlosmf.pt@gmail.com> >>>> > wrote: >>>> > >>>> >> Ok, thanks for the enlightenment regarding the loss of performance. >>>> >> >>>> >> One question, just to be sure. Does the kernel module contains the >>>> VALA >>>> >> switch code? Or do I need to compile extra code to have the switch >>>> working? >>>> >> Also, where can I find the documentation to use the Vala Switch? >>>> >> >>>> > >>>> > =E2=80=8BVALE is part of the netmap kernel module, the only thing yo= u need >>>> > to know to use it is port names: >>>> > you can have multiple switch instances with multiple ports each, >>>> > >>>> > valeX:Y means port Y on switch X, X and Y are arbitrary strings >>>> > with the constraint that the whole name must fit 15 characters. >>>> > >>>> > Details in the netmap manpage >>>> > >>>> > cheers >>>> > luigi >>>> > >>>> > >>>> >>>> >>>> -- >>>> >>>> Carlos Miguel Ferreira >>>> Researcher at Telecommunications Institute >>>> Aveiro - Portugal >>>> Work E-mail - cmf@av.it.pt >>>> Skype & GTalk -> carlosmf.pt@gmail.com >>>> LinkedIn -> http://www.linkedin.com/in/carlosmferreira >>>> _______________________________________________ >>>> freebsd-net@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-net >>>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >>>> >>> >>> >> >> -- >> -----------------------------------------+------------------------------= - >> Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione >> http://www.iet.unipi.it/~luigi/ . Universita` di Pisa >> TEL +39-050-2211611 . via Diotisalvi 2 >> Mobile +39-338-6809875 . 56122 PISA (Italy) >> -----------------------------------------+------------------------------= - >> >> > > > -- > > Carlos Miguel Ferreira > Researcher at Telecommunications Institute > Aveiro - Portugal > Work E-mail - cmf@av.it.pt > Skype & GTalk -> carlosmf.pt@gmail.com > LinkedIn -> http://www.linkedin.com/in/carlosmferreira > --=20 Carlos Miguel Ferreira Researcher at Telecommunications Institute Aveiro - Portugal Work E-mail - cmf@av.it.pt Skype & GTalk -> carlosmf.pt@gmail.com LinkedIn -> http://www.linkedin.com/in/carlosmferreira