[openstack-dev] [neutron][rootwrap] Performance considerations, sudo?
Yuriy Taraday
yorik.sar at gmail.com
Thu Mar 20 16:07:17 UTC 2014
On Thu, Mar 20, 2014 at 7:28 PM, Rick Jones <rick.jones2 at hp.com> wrote:
> On 03/20/2014 05:41 AM, Yuriy Taraday wrote:
>
>> 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".
>>
>
> Interesting result. Which versions of sudo and ip and with how many
> interfaces on the system?
>
Here are the numbers:
% sudo -V
Sudo version 1.8.6p7
Sudoers policy plugin version 1.8.6p7
Sudoers file grammar version 42
Sudoers I/O plugin version 1.8.6p7
% ip -V
ip utility, iproute2-ss130221
% ip a | grep '^[^ ]' | wc -l
5
> For consistency's sake (however foolish it may be) and purposes of others
> being able to reproduce results and all that, stating the number of
> interfaces on the system and versions and such would be a Good Thing.
>
Ok, I'll add them to benchmark output.
--
Kind regards, Yuriy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140320/c73dcdcb/attachment.html>
More information about the OpenStack-dev
mailing list