From owner-freebsd-net@FreeBSD.ORG Mon Jun 11 16:32:37 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3CE6106564A for ; Mon, 11 Jun 2012 16:32:37 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 39E668FC08 for ; Mon, 11 Jun 2012 16:32:37 +0000 (UTC) Received: by bkvi18 with SMTP id i18so4625163bkv.13 for ; Mon, 11 Jun 2012 09:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZtPRNcyGEJ2l4XfIhM6MaAXo9MaBsksSRezMVW6mMMc=; b=rmYG/D228V7JRtjQu3RxXvouIOqStRkXM9o712+ttiKO7muBx8KEhHrpnV07hEc5cU GKLUQVcS7v1D2pz02Cj9GWWvAV3UmZCLl017CRTQrnn/L3sduEvyKtQ6BDrxbzeHHJXY Io7jRH/iYwbkVVxyhA9w/Yq5wlhAZE5R87wPqwdT3TTtcPYRgmIucK9lfTuLK6A3M4Em lViTJcgrdlMtc31h58oveiwfXvxyiXTmO1L1CNudcZTA7/si8EYgpZi1n4PowA81QAyN XWec/5qcBefbWE+yns/VGVlMK29taLSt/21iGdXyzZKH71VR/t3gqZpNd3RXcNSABC4w EqTA== MIME-Version: 1.0 Received: by 10.205.124.8 with SMTP id gm8mr10396413bkc.90.1339432356135; Mon, 11 Jun 2012 09:32:36 -0700 (PDT) Received: by 10.204.100.83 with HTTP; Mon, 11 Jun 2012 09:32:36 -0700 (PDT) In-Reply-To: <20120608171126.GA29273@onelab2.iet.unipi.it> References: <20120608171126.GA29273@onelab2.iet.unipi.it> Date: Mon, 11 Jun 2012 18:32:36 +0200 Message-ID: From: Andreas Nilsson To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: net@freebsd.org Subject: Re: VALE, a Virtual Local Ethernet. http://info.iet.unipi.it/~luigi/vale/ X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 16:32:37 -0000 I just read the paper and it looks really promising :) I decided to test it and downloaded http://info.iet.unipi.it/~luigi/netmap/20120608-netmap-picobsd-head-amd64.bin( thanks for making it easy to test! ) I booted it up in kvm and it works great! I got 8.86Mpps (64-byte) in the image, that is nice :) I however wanted to test somewhat more realistic traffic flow, but I could not find any nice way to do it. I tried to start a pkt-gen receiver with 2 threads and then launch 2 senders, but that lead to a kernel panic ;) Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x471 fault code = supervisor read data, page not present instruction pointer = ... stack pointer = ... frame pointer = ... code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interupt enabled, resume, IOPL = 0 current process = 108 (pkg-gen) I guess that was not the way to achieve a more realstic IMIX ;) Best regards Andreas On Fri, Jun 8, 2012 at 7:11 PM, Luigi Rizzo wrote: > We have just completed a netmap extensions that let you build a > local high speed switch called VALE which i think can be very useful. > > http://info.iet.unipi.it/~luigi/vale/ > > VALE is a software Virtual Local Ethernet whose ports are accessible > using the netmap API. Designed to be used as the interconnect between > virtual machines (or as a fast local bus), it works as a learning > bridge and supports speeds of up to 20 Mpps with short frames, and > an aggregate 70 Gbit/s with 1514-byte packets. The VALE paper > contains more details and performance measurements. > > VALE is implemented as a small extension of the netmap module, and > is available for FreeBSD and Linux. The source code includes a > backend for qemu and KVM, so you can use VALE to interconnect virtual > machines launching them with > > qemu -net nic -net netmap,ifname=vale0 ... > qemu -net nic -net netmap,ifname=vale1 ... > ... > > Processes can talk to a VALE switch too, so you can use the pkt-gen > or bridge tools that are part of the netmap distribution, or even > the pcap.c module that maps libpcap calls into netmap equivalents. > This lets you use VALE for all sort of pcap-based applications. > > More details, code, bootable images on the VALE page, > > http://info.iet.unipi.it/~luigi/vale/ > > feedback welcome, as usual. > > cheers > luigi > -----------------------------------------+------------------------------- > 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) > -----------------------------------------+------------------------------- > _______________________________________________ > 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" >