Re: Enabling VIMAGE in GENERIC

2014-12-04 Thread Robert Watson

On Mon, 1 Dec 2014, George Neville-Neil wrote:

On a slight tangent.  I ran VIMAGE kernels vs. non VIMAGE kernels for both a 
VANILLA kernel and a PF kernel (PF on but no rules) as a quick smoke test 
today.  The raw forwarding performance was unchanged between kernels with 
and without VIMAGE on a 10G based system in the Sentex lab (lion1).  I will 
be doing a bit more work in this area and will then put up some results in 
my netperf github repo.


Was this a CPU-bound or network-bound workload?  In general, I'd expect VIMAGE 
to have a modest overhead for most measurable workloads .. unless you are 
CPU-bound, in which case per-packet processing overheads might become 
(potentially) quite visible.  They will also be more visible on simpler 
pipelines and with less cache-rich designs -- e.g., SoCs of various sorts. 
Doing a bit of CPU-bound networking on a modest ARM core might show off the 
effects better.


Robert
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Enabling VIMAGE in GENERIC

2014-12-01 Thread George Neville-Neil

On 1 Dec 2014, at 23:12, Julian Elischer wrote:


On 12/2/14, 12:07 PM, George Neville-Neil wrote:

On 30 Nov 2014, at 5:04, Julian Elischer wrote:


On 11/29/14, 5:28 PM, Craig Rodrigues wrote:
On Mon, Nov 24, 2014 at 9:03 AM, Julian Elischer 
mailto:jul...@freebsd.org>> wrote:

>
>
> also look at the following: (a little dated)
>
> 
http://p4web.freebsd.org/@md=d&cd=//depot/projects/vimage/&cdf=//depot/projects/vimage/porting_to_vimage.txt&c=tO0@//depot/projects/vimage/porting_to_vimage.txt?ac=22



This is a useful document.  I put it on the wiki: 
https://wiki.freebsd.org/VIMAGE/porting-to-vimage


Thanks.. wow, did I actually know ALL that only 5 years ago?
Scary.  probbaly worth having someone who is currently active and up 
to date look at it to see if it's all still correct..

especially the module load/unload stuff.



--
Craig





On a slight tangent.  I ran VIMAGE kernels vs. non VIMAGE kernels for 
both a VANILLA kernel
and a PF kernel (PF on but no rules) as a quick smoke test today. The 
raw forwarding performance
was unchanged between kernels with and without VIMAGE on a 10G based 
system in the Sentex lab
(lion1).  I will be doing a bit more work in this area and will then 
put up some results in my

netperf github repo.

The tests are easy enough to run if you have 3 systems, and Conductor 
installed.  The source, sink

and dut config files are all there to be updated and tried.

Best,
George


the interesting benchmarks are if you have multiple sessions and 
spread them across multiple vimage jails, and compare that with the 
same number of sessions crowded onto a single machine..


lock contention goes down of course so things can actually get faster.


All in good time.

Best,
George
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Enabling VIMAGE in GENERIC

2014-12-01 Thread Julian Elischer

On 12/2/14, 12:07 PM, George Neville-Neil wrote:

On 30 Nov 2014, at 5:04, Julian Elischer wrote:


On 11/29/14, 5:28 PM, Craig Rodrigues wrote:
On Mon, Nov 24, 2014 at 9:03 AM, Julian Elischer 
mailto:jul...@freebsd.org>> wrote:

>
>
> also look at the following: (a little dated)
>
> 
http://p4web.freebsd.org/@md=d&cd=//depot/projects/vimage/&cdf=//depot/projects/vimage/porting_to_vimage.txt&c=tO0@//depot/projects/vimage/porting_to_vimage.txt?ac=22



This is a useful document.  I put it on the wiki: 
https://wiki.freebsd.org/VIMAGE/porting-to-vimage


Thanks.. wow, did I actually know ALL that only 5 years ago?
Scary.  probbaly worth having someone who is currently active and 
up to date look at it to see if it's all still correct..

especially the module load/unload stuff.



--
Craig





On a slight tangent.  I ran VIMAGE kernels vs. non VIMAGE kernels 
for both a VANILLA kernel
and a PF kernel (PF on but no rules) as a quick smoke test today. 
The raw forwarding performance
was unchanged between kernels with and without VIMAGE on a 10G based 
system in the Sentex lab
(lion1).  I will be doing a bit more work in this area and will then 
put up some results in my

netperf github repo.

The tests are easy enough to run if you have 3 systems, and 
Conductor installed.  The source, sink

and dut config files are all there to be updated and tried.

Best,
George


the interesting benchmarks are if you have multiple sessions and 
spread them across multiple vimage jails, and compare that with the 
same number of sessions crowded onto a single machine..


lock contention goes down of course so things can actually get faster.


___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


Re: Enabling VIMAGE in GENERIC

2014-12-01 Thread George Neville-Neil

On 30 Nov 2014, at 5:04, Julian Elischer wrote:


On 11/29/14, 5:28 PM, Craig Rodrigues wrote:
On Mon, Nov 24, 2014 at 9:03 AM, Julian Elischer > wrote:

>
>
> also look at the following: (a little dated)
>
> 
http://p4web.freebsd.org/@md=d&cd=//depot/projects/vimage/&cdf=//depot/projects/vimage/porting_to_vimage.txt&c=tO0@//depot/projects/vimage/porting_to_vimage.txt?ac=22



This is a useful document.  I put it on the wiki: 
https://wiki.freebsd.org/VIMAGE/porting-to-vimage


Thanks.. wow, did I actually know ALL that only 5 years ago?
Scary.  probbaly worth having someone who is currently active and up 
to date look at it to see if it's all still correct..

especially the module load/unload stuff.



--
Craig





On a slight tangent.  I ran VIMAGE kernels vs. non VIMAGE kernels for 
both a VANILLA kernel
and a PF kernel (PF on but no rules) as a quick smoke test today.  The 
raw forwarding performance
was unchanged between kernels with and without VIMAGE on a 10G based 
system in the Sentex lab
(lion1).  I will be doing a bit more work in this area and will then put 
up some results in my

netperf github repo.

The tests are easy enough to run if you have 3 systems, and Conductor 
installed.  The source, sink

and dut config files are all there to be updated and tried.

Best,
George
___
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"