From owner-soc-status@freebsd.org Tue Jun 7 12:56:01 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 06141B6D727 for ; Tue, 7 Jun 2016 12:56:01 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 964721D74 for ; Tue, 7 Jun 2016 12:56:00 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id k204so67954996wmk.0 for ; Tue, 07 Jun 2016 05:56:00 -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=gJUCpt7usk0Cz3rmpMHQXiRYjnzz8acVT+Lgv6SqAMc=; b=xR1KjnQ6gSact8uA22vfijKXk0+1jlaIZvXiQMK4jtc8u2lFcJY4Bzeyp5LvDYWwQ+ G45DKEEG/Tdrkc8qf6dXZ3fslcg/P525541fwWn64t+s0gOdduI7w4880qw7lZVgOvcE vd96PtyJFaA7kyn2tFAcWYSd3KskdOigYkwugkokdbqtTMqO3mN79uJc9qWGTQxgxTTJ VkmCPlKm9eb1K7H9q6YsqPkiEfO+MxArOq/2GrXCP4FRQiZNMF+KxVDPivQlKKojuZHH 6m87r1Yn/6/5OWI7/8UqztYdGnlTfKk0ju74b4V1byJGyVsiTp086vesZ8U1AT1Xs5YW n6Eg== 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=gJUCpt7usk0Cz3rmpMHQXiRYjnzz8acVT+Lgv6SqAMc=; b=VyF/STalm9gTIaXObfmZC3Lamz52PaWaeRPVTRCpxX9Gnv5CAzYcgSU1K3USOupK39 1FbrMk66jmNsdvzD1AbPtiuTEKMvN8J8+g/ObmeEuQ6f71ZAGKsZsQm4FmPULIXjtOyP yPsTTLyB2HGTqC3d5u71Pl/oQYxo5sBqnkJF8mArez2WSPIzMe4U4P8LXqJQPgJG+GwT ForeutA3wJeRwYl6De18OOrKs028vLiIoEhvkoWSg+Cd0u81A0ZgdAwH8R+J2fSaoY7b UhTxk+qHydwMYaPJqennjEzgKaCfuasess3tzTHNjokbY0izOrKEXrLEpfjihXOCjJN0 H0pw== X-Gm-Message-State: ALyK8tJvDi1huiHh12AijhNwkaoXRZeLthTuCptsTNC4HItZ+Q5UNzHLDdJ6XF7ULJtaReEfVfibHIz5pibyCA== X-Received: by 10.194.5.7 with SMTP id o7mr20546334wjo.145.1465304158815; Tue, 07 Jun 2016 05:55:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.17.15 with HTTP; Tue, 7 Jun 2016 05:55:58 -0700 (PDT) From: Yuri Iozzelli Date: Tue, 7 Jun 2016 14:55:58 +0200 Message-ID: Subject: High Performance P4 Software Switch - Week 2 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: Tue, 07 Jun 2016 12:56:01 -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 2 ========================= I fixed compilation in freebsd and tested it successfully. I added support for netmap in packet I/O handling, and it is switchable with original pcap with a command line argument. I added some functions to collect performance data and using netmap indeed speeds up the system. Overall it is still slow so I am working to find the new bottlenecks. Links: Wiki page: https://wiki.freebsd.org/SummerOfCode2016/HighPerformanceP4SoftwareSwitch#preview Code (gsoc-* brances): https://github.com/zarghul/behavioral-model Regards, Yuri Iozzelli