[sudo-workers] Is there a way to avoid get_net_ifs() when the information won't be used?
Rick Jones
rick.jones2 at hp.com
Thu Jan 23 15:15:44 MST 2014
On 01/23/2014 01:54 PM, Todd C. Miller wrote:
> On Thu, 23 Jan 2014 13:15:36 -0800, Rick Jones wrote:
>
>> I would be happy to be a pre-release guinea pig for that.
>
> I just committed the change:
> http://www.sudo.ws/repos/sudo/rev/e9dc28c7db60
I grabbed top-of-trunk and built it. And with a /etc/sudo.conf containing:
Set probe_interfaces false
There is a very nice, very large drop in the "time sudo sleep 1" test:
top-of-trunk *without* Set probe_interfaces false:
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.333s
user 0m0.036s
sys 0m0.292s
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.324s
user 0m0.036s
sys 0m0.284s
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.320s
user 0m0.032s
sys 0m0.288s
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.320s
user 0m0.032s
sys 0m0.284s
top-of-trunk *with* Set probe_interfaces false:
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.005s
user 0m0.004s
sys 0m0.000s
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.005s
user 0m0.000s
sys 0m0.000s
rjones2 at qu-stbaz1-perf0002:~$ time ./sudo sleep 1
real 0m1.005s
user 0m0.000s
sys 0m0.000s
And being curious, I tried running an older version of sudo with that
file in place, and it looks like it was quite willing to ignore it,
which is an excellent thing.
Thanks Muchly!
rick jones
More information about the sudo-workers
mailing list