From owner-soc-status@freebsd.org Tue Jun 14 07:20:20 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 40008AF242A for ; Tue, 14 Jun 2016 07:20:20 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 D059920C5 for ; Tue, 14 Jun 2016 07:20:19 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id n184so107795626wmn.1 for ; Tue, 14 Jun 2016 00:20:19 -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=wQL9ReJz5yKiOuOq90+EsVIReCVg97SSmVZizh2t8+0=; b=wN7lK/KG4NJDMz1nIu4YOkGrFdKP5In56dD0CFGBKUuGS7umhE7hJksJxiULkZecW8 Rc/5GSO/lN/jadVaHevFtYMDaMCqwugtNK6HbvfxXOgm7HHAWQF5b3meNfS2SZgUuOFd ydj+9DFr8KKNgg0mj0to/AXSj2Lt1E1hJ4CEovFtY5fAFC0BfplVbooZjBL9rC0W5KfJ 3nOxsP4eNhdJafSC34ujJLSZRRoqX8DZ667gtv/vFiUGlYshhQzjsOiHyjYJHal1/TRF vUjmdNGs9zCIPvG2LQop6rLrLTOGD9+m3ctNo59JwsHbp6R3DlP4JnS9F/Zy8hwKLb8b kVJA== 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=wQL9ReJz5yKiOuOq90+EsVIReCVg97SSmVZizh2t8+0=; b=m+oUaJgcGZO/YI2NIecyEEEsIhZHkVMvNiyju6tqCde1ZyY4RrSnCCUc/YZXWsWevX 9wb99gRn6fhQQUNbUgU1ifsw7/1oxFl9lCc/CVdbr6NmNxS1huR2UbY3cowJ+4NwlEq/ GkRKb9AnfBBLE5FlvdwbPDrpc5O17Kfeq8s4cyL84H8+efWml4GW5WaC2zkO/58EyWdM D86JTmGTccsBNV88c7nY24+Yah1ZfnVr7yXaOkjx7+H6cOrPIdxy+2CjbEsR/1D95lMc SGroU5SEkxsc3kcS+R6o+DXKm1qJtkPOKctZSt59u4E3Td8afdo6bMPqmvwzt0fcQW2G LULQ== X-Gm-Message-State: ALyK8tIGvyh0RNrNX0epj2lS/Wqgukd3GmTdHq6vSq0hP2EqQYeGxtw875bJEbAuM989A/IPFBtlHOQ6kXpoMg== X-Received: by 10.194.5.7 with SMTP id o7mr4522857wjo.145.1465888818056; Tue, 14 Jun 2016 00:20:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.212.136 with HTTP; Tue, 14 Jun 2016 00:20:17 -0700 (PDT) From: Yuri Iozzelli Date: Tue, 14 Jun 2016 09:20:17 +0200 Message-ID: Subject: High Performance P4 Software Switch - Week 3 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, 14 Jun 2016 07:20:20 -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 identified the main bottlenecks in the memory management, and wrote custom new and delete operator for the most allocated classes. I ran several performance tests and optimized the allocation strategy for the application. The new bottleneck seems to be the queuing mechanism, that is currently impemented with locks. I am investigating the use of a lockless queue. Links: Wiki page: https://wiki.freebsd.org/SummerOfCode2016/HighPerformanceP4SoftwareSwitch#preview Code (gsoc-* branches): https://github.com/zarghul/behavioral-model Regards, Yuri Iozzelli