Re: RFC: Enabling VIMAGE in GENERIC

2014-11-19 Thread Alexander V. Chernikov

On 19.11.2014 07:28, Craig Rodrigues wrote:

On Mon, Nov 17, 2014 at 9:47 AM, Alfred Perlstein alf...@freebsd.org
wrote:


On 11/17/14, 3:02 AM, Warner Losh wrote:


On Nov 17, 2014, at 12:46 AM, Craig Rodrigues rodr...@freebsd.org
wrote:



(3)   Take a pass through http://wiki.freebsd.org/VIMAGE/TODO
 and
https://bugs.freebsd.org/bugzilla/buglist.cgi?
quicksearch=vimage%20or%20vnet
  and try to clean things up.  Get help from net@ developers to
do
this.


And if these don't get cleaned up?


If they are not cleaned/stable up by 11-RELEASE then we turn it off.  That
is simple.


Yes, I agree with Alfred that we can turn VIMAGE back off before
11-RELEASE if things don't get cleaned up.
We have approximately until the end of 2015, so that gives
us time.






  (4)   Take a pass on trying to VIMAGE-ify ipfilter.  I'll need help from

 the ipfilter maintainers for this and some net@ developers.


And if this doesn't happen?


Well we do have 2 other firewalls in the kernel to pick, but we do need
VIMAGE so I will let you draw your own conclusions.



Again, I agree with Alfred on this.  Darren Reed originally imported
ipfilter into FreeBSD, but hasn't actively maintained it (in FreeBSD) in a
while.  Cy Schubert has recently expressed interest in ipfilter and has
committed some fixes in the past year, but has not fixed the VIMAGE problems
( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=176992 ).
I can take an initial effort at trying to fix VIMAGE + ipfilter.
In the past, I've delved into areas I'm not so familiar with in
order to fix VIMAGE + Bluetooth.  If Cy can provide any knowledge or
guidance, that will be great.

A lot of bug fixes have gone into VIMAGE in the past 2 years,
and I have received multiple reports of people using it in production
environments.  See the latest post by Peter Ross.

To flush out the last few issues and corner cases, I think we
need to turn VIMAGE on by default and get feedback and help from
the FreeBSD user community and developers to identify and fix the problems.
Can we have some wiki/man/docs on how particular subsystem should 
interact with VNET first?
This can probably help to make proper vnet fixes in less number of 
attempts :)


For example, even attach/detach is handled differently in different places:

tcp_subr.c:
/* Skip initialization of globals for non-default instances. */
if (!IS_DEFAULT_VNET(curvnet))
return;
in6_rmx.c:
/*
 * Initialize our routing tree.
 */
static VNET_DEFINE(int, _in6_rt_was_here);
#define V__in6_rt_was_here  VNET(_in6_rt_was_here)

if (V__in6_rtwas_here == 0) {
callout_init(V_rtq_mtutimer, CALLOUT_MPSAFE);
in6_mtutimo(curvnet);   /* kick off timeout first time */
V__in6_rt_was_here = 1;
}

return (1);
}

It would be great to get a bit more details on the following (at least 
from my point of view):
* what is the proper procedure of handling non-default VNET 
attach/detach (locking mostly)
* how can one properly cache needed VNET context (e.g. is it safe just 
to save struct vnet * pointer) and is this right thing to do at all?

* Is it safe to to CURVNET_SET without holding any VNET locks ?


P.S. I'm not against VIMAGE in any kind, I think we really should move 
forward towards making it stable.
However, just turn it on concept with a bunch of known (and unresolved 
issues) is not the best thing IMO.


We have about 1 year until 11-RELEASE, so I think it is OK to do this.

I would also add two items to my action plan.


(6)  Ask clusteradm to run one of the machines they use
   for PF firewalls + IPv6 with a VIMAGE enabled kernel, and provide
   feedback.

(7)  Ask for help with testing from companies who have more involvement
   with the network stack.  Two of the people in the CC: line of this
   e-mail work for such places. :)

--
Craig


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



___
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 by default for FreeBSD 11?

2014-10-13 Thread Alexander V. Chernikov

On 13.10.2014 09:35, Julian Elischer wrote:

On 10/12/14, 1:55 PM, wishmaster wrote:


--- Original message ---
  From: Alexander V. Chernikov melif...@ipfw.ru
  Date: 11 October 2014, 23:20:39



On 11 Oct 2014, at 21:58, Craig Rodrigues rodr...@freebsd.org wrote:


Hi,

What action items are left to enable VIMAGE by default for FreeBSD 11?
Are there any tests results showing performance implications on 
different network-related workloads?


the last time we teste things vnet made things faster.

if you spread 100 sessions over N vnets and had 100 sessions on one 
system,
then there are 1/N as many locking collisions as each vnet is its own 
locking domain.

Sure.
I'm mostly concerned about performance impact on non-virtualized 
workloads (e.g. web server or firewall workload types).


Julian

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



___
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 by default for FreeBSD 11?

2014-10-11 Thread Alexander V. Chernikov

On 11 Oct 2014, at 21:58, Craig Rodrigues rodr...@freebsd.org wrote:

 Hi,
 
 What action items are left to enable VIMAGE by default for FreeBSD 11?
Are there any tests results showing performance implications on different 
network-related workloads?
 
 Not everyone uses bhyve, so VIMAGE is quite useful when using jails.
 
 --
 Craig
 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
 

___
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: kern/158686: [vimage] [tap] [patch] Add VIMAGE support to if_tap

2012-06-19 Thread Alexander V. Chernikov
The following reply was made to PR kern/158686; it has been noted by GNATS.

From: Alexander V. Chernikov melif...@freebsd.org
To: Daan Vreeken d...@vitsch.nl
Cc: Mikolaj Golub troc...@freebsd.org, bug-follo...@freebsd.org
Subject: Re: kern/158686: [vimage] [tap] [patch] Add VIMAGE support to if_tap
Date: Tue, 19 Jun 2012 13:52:59 +0400

  I don't have a working test setup or use case at this moment where we use
  multiple FIBs in combination with tap(4), but if I remember correctly, the
  kernel would instantly panic upon receiving the first packet through the
  interface without the call to M_SETFIB().
 It is quite strange since M_SETFIB does nothing more than setting 4 bits 
 in mbuf flags which are zero by default (fib 0).
 
  If I run in to this again I'll submit a separate PR for this problem.
 Can you please drop e-mail to me if this happens?
___
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