From owner-freebsd-net@FreeBSD.ORG Mon Jun 11 16:45:27 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 684A2106568B for ; Mon, 11 Jun 2012 16:45:27 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id E4D988FC08 for ; Mon, 11 Jun 2012 16:45:26 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id AF82D7300A; Mon, 11 Jun 2012 19:04:17 +0200 (CEST) Date: Mon, 11 Jun 2012 19:04:17 +0200 From: Luigi Rizzo To: Andreas Nilsson Message-ID: <20120611170417.GA12616@onelab2.iet.unipi.it> References: <20120608171126.GA29273@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i 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:45:27 -0000 On Mon, Jun 11, 2012 at 06:32:36PM +0200, Andreas Nilsson wrote: > 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 well, 8.86Mpps with no receivers i guess ? Otherwise i should really update my numbers :) > 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 ;) as you found out, the code has some rough edges especially when dealing with resource shortage. One thing i forgot to mention (i just updated the main page) is to run the hypervisor with a sufficient amount of memory, e.g. -m 512 (for qemu). But i will need to investigate a bit more what happens with multiple receiving threads. cheers luigi > 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" > >