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

Yuriy Taraday yorik.sar at gmail.com
Thu Mar 20 12:41:54 UTC 2014

On Tue, Mar 18, 2014 at 7:38 PM, Yuriy Taraday <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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140320/e1831c84/attachment.html>

More information about the OpenStack-dev mailing list