[openstack-dev] [neutron][rootwrap] Performance considerations, sudo?

Miguel Angel Ajo majopela at redhat.com
Thu Mar 20 13:41:52 UTC 2014

    Wow Yuriy, amazing and fast :-), benchmarks included ;-)

    The daemon solution only adds 4.5ms, good work. I'll add some 
comments in a while.

    Recently I talked with another engineer in Red Hat (working
in ovirt/vdsm), and they have something like this daemon, and they
are using BaseManager too.

    In our last conversation he told me that the BaseManager has
a couple of bugs & race conditions that won't be fixed for python2.x,
I'm waiting for details on those bugs, I'll post them to the thread
as soon as I have the details.

    If this coupled to neutron in a way that it can be accepted for
Icehouse (we're killing a performance bug), or that at least it can
be y backported, you'd be covering both the short & long term needs.

Miguel Ángel.

On 03/20/2014 01:41 PM, Yuriy Taraday wrote:
> On Tue, Mar 18, 2014 at 7:38 PM, Yuriy Taraday <yorik.sar at gmail.com
> <mailto:yorik.sar at gmail.com>> wrote:
>     I'm aiming at ~100 new lines of code for daemon. Of course I'll use
>     some batteries included with Python stdlib but they should be safe
>     already.
>     It should be rather easy to audit them.
> Here's my take on this: https://review.openstack.org/81798
> Benchmark included showed on my machine these numbers (average over 100
> iterations):
> Running 'ip a':
>                                                ip a :   4.565ms
>                                           sudo ip a :  13.744ms
>                             sudo rootwrap conf ip a : 102.571ms
>                                  daemon.run('ip a') :   8.973ms
> Running 'ip netns exec bench_ns ip a':
>                    sudo ip netns exec bench_ns ip a : 162.098ms
>      sudo rootwrap conf ip netns exec bench_ns ip a : 268.115ms
>           daemon.run('ip netns exec bench_ns ip a') : 129.876ms
> So it looks like running daemon is actually faster than running "sudo".
> --
> Kind regards, Yuriy.
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

More information about the OpenStack-dev mailing list