From owner-soc-status@freebsd.org Mon Jun 20 13:07:49 2016 Return-Path: Delivered-To: soc-status@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 A79FAAC47E7 for ; Mon, 20 Jun 2016 13:07:49 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 40DE21187 for ; Mon, 20 Jun 2016 13:07:49 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id a66so78032129wme.0 for ; Mon, 20 Jun 2016 06:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=uYGnWjaRx091dABq1oSsE5+zV2IrtmwsIYHznrlZfWs=; b=pWzB5VZ8Z+DQlSLEeOsjsBAs2RQ5mltUU4YfpnAmise7OVX0exhd7uMzzVE8oeT1hP /IoXXisAp85LxdBp3xKwkk73tqI+w4GhquYg1zzPiRcMDJpFLxFTaVhZ9LRhInsnpSZY /9X0ODTsKQrNgQexztRl4ZJwZE+2x4JS/htGKHtumPqOyfmNdC6S6Omza13q0w0IRpxu orHVxedUyYGbOyaRXka2OOdLeX1f8FZuMHexc2gsxRrGEr1OIVCEo1JTiVxbaJg686eG 9crUhNcR3Rp28AdMRQzEw2wIMe+I4omveBTKp2+YTA96Pynxh4FsVXM8fuDlh5NM7k73 zLkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uYGnWjaRx091dABq1oSsE5+zV2IrtmwsIYHznrlZfWs=; b=Bw0HjxeVFe9ByJohJ/o7yM8sWvcbSHrxlutjHjdoGinUT3/Ji+so8zwJFXQNq8cVx4 idLz5s0182SiX4jZSPpMx1NrX1nwfx46sDbTN1Y3/gWWiDdKUZ8QsqchFF8A5Js0TMUf UH3H21hv75grXey9qcsdygqwZezX6982bEqEfmvmnz0B9XF9jQx4gwUOfc6OL10FPRPH cSns1riz5YoPWVIHJx2zLgZPW5GeAivUF3lAze067SGh7lIvZM8E7qfGHCxdyYqFIhL/ lEpz/WnXTnKJndBaPCq7Z/LjiqlugQ+xQ2J2HM8awx2ZTXe1oyyuMqmBdg77MHk5npqk kW5g== X-Gm-Message-State: ALyK8tIEKurNG1gS5Fn6sY5qQK3+i4dSodLPJJ5vuRkdZm+GjftzYf0YDY885vu/qXpye1cLfbUgfNnrxhgGfA== X-Received: by 10.28.27.212 with SMTP id b203mr11054403wmb.19.1466428067646; Mon, 20 Jun 2016 06:07:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.212.136 with HTTP; Mon, 20 Jun 2016 06:07:46 -0700 (PDT) From: Yuri Iozzelli Date: Mon, 20 Jun 2016 15:07:46 +0200 Message-ID: Subject: High Performance P4 Software Switch - Week 4 To: soc-status@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 13:07:49 -0000 Hi Project summary ======================== In this project I would like to implement a modified version of the reference p4 (http://p4.org) switch on FreeBSD, which uses netmap for faster packet I/O: the goal would be reaching the 1 Mpps order-of-magnitude speed (current reference implementation is limited to 150 Kpps for a simple l2 switch with 2 hosts). Week 4 ========================= I replaced default malloc implementation with tcmalloc, because it performs better when most object are created in one thread and destroyed in another. I implemented a lock-free single producer/single consumer queue to replace the default one (which uses a mutex for push/pop operations), for a substantial performance improvement. Links: Wiki page: https://wiki.freebsd.org/SummerOfCode2016/HighPerformanceP4SoftwareSwitch#preview Code (gsoc-* branches): https://github.com/zarghul/behavioral-model Regards, Yuri Iozzelli