From owner-soc-status@freebsd.org Sat Aug 20 19:12:22 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 8F63FBC0521 for ; Sat, 20 Aug 2016 19:12:22 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::22f]) (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 56BE417AA for ; Sat, 20 Aug 2016 19:12:22 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x22f.google.com with SMTP id 4so104705011oih.2 for ; Sat, 20 Aug 2016 12:12:22 -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=0DNlHyxX1VUyqhNVLI8MN9xxM93NqALSL9/qkv0Egd8=; b=TF5sSz13/DqP5kDUFVwnsod1MIEQCuobjFvHnKz22Gdia9/DALsZoe4jH4kXMR7mKV Uk7wduXDhijRZTuP/7ChKEoKsJeWBiBgq30OdKHi3NEJyHD8sujMOaauhOBZJ81aNLjU IkDP0sZAuF0xoRsMDOMmMvkE5VtXNKrAt0IKRRJiDwb3bb+V2dqkois8MXaag8rWn75c z4ERdQY9snyELhTOiY7sUh9dxUEC71lg4yw82LBa3lgr7zhzshxOepieA489YjafBAuY izLQXJgoFSVSw/YrfVOQVntTJ90KEMu7CQ4m6tgO1nXQaAIpM46IxRaUIxrgNq2XdVnk /p1A== 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=0DNlHyxX1VUyqhNVLI8MN9xxM93NqALSL9/qkv0Egd8=; b=QnUvq8AszBmw3tVyBLASnknSY0k3YkPoh8Gtu2AsCOV6a1RtSTfbhJIUzAdQSLJB9t X6cXniJ53J2ertZtSCRTr9rYxwK7Tdbb0QfSfqMFlzmhc6fhxZ7AmcG3v9rdQlipsuOS QgYOxBjIX3lC4FEYu60JbIVyMZChHERY2O8cHrR1SV8Z7WY9MKcSNVvFCE5atYJ+xXIE eQfw/vvj2rc2fzeYe40IUewXpHEVst3iDIcrp1NUE7uj4ZKEYJwWNFP3KYJAMLnh89g0 nPRm8Czj4mfOllU82Vc+a5Fl2+mVvPw4Z9CB/V0NBo8EQLv0oopaWWjfwkTddW0kvHSN telw== X-Gm-Message-State: AEkoouuvwpfoIwfSZr7a35EbXxaix5aDyAVep2BHn0JNxHSvOgiGDs60F2Dre4b0i4sT35l5nrrCcDPlPoUyTQ== X-Received: by 10.157.11.176 with SMTP id 45mr8364761oth.82.1471720341420; Sat, 20 Aug 2016 12:12:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.40.215 with HTTP; Sat, 20 Aug 2016 12:12:21 -0700 (PDT) From: Vincenzo Maffione Date: Sat, 20 Aug 2016 21:12:21 +0200 Message-ID: Subject: High-performance TCP/IP networking for bhyve VMs using netmap passthrough 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: Sat, 20 Aug 2016 19:12:22 -0000 Hello Sorry for the delayed update, I've been offline for a week. Project summary ================= ptnet is a new multi-queue paravirtualized device that builds on ptnetmap to allow VMs to exchange TCP traffic at 20 Gbps, while still offering the same ptnetmap performance (10-100 Mpps) to native netmap applications. The purpose of this SOC project is to write a ptnet driver for FreeBSD and a corresponding device model for the bhyve hypervisor. Status update for week 12 and 13 =================== During these weeks I've completed the ptnet device model emulation and performed throughput tests. Results are good (~15 Gbps throughput among two VMs), and 20 Mpps with netmap (pkt-gen). I've also slightly optimized the vmm.ko support to speed up the lookup of the callback to be invoked on guest register write, using a RW lock in place of a mutex. Finally, I did bhyve code cleanup, and ported netmap and bhyve to the freebsd head, since my developments were based on 10.3-release. I prepared the documentation for the final submission in the wiki page of my project (see link below). Links: Project wiki page: https://wiki.freebsd.org/SummerOfCode2016/PtnetDriverA ndDeviceModel Code: https://svnweb.freebsd.org/socsvn/soc2016/vincenzo/head/sys/ dev/netmap/if_ptnet.c?view=markup https://svnweb.freebsd.org/socsvn/soc2016/vincenzo/head/ usr.sbin/bhyve/pci_ptnetmap_netif.c?view=markup https://svnweb.freebsd.org/socsvn/soc2016/vincenzo/head/ usr.sbin/bhyve/net_backends.c?view=markup -- Vincenzo Maffione