Subject: Re: [PATCH net-next] dev: add support of flag IFF_NOPROC

From: Nicolas Dichtel <[email-masked]>
Date: Fri, 04 Oct 2013 14:07:00 +0200

Le 03/10/2013 21:09, David Miller a écrit :
> From: Stephen Hemminger <[email-masked]>
> Date: Thu, 3 Oct 2013 10:46:27 -0700
>
>> What about speeding up proc or sysfs? Or providing a bulk create/destroy.
>
> +1 +1 +1
>
> This will benefit more people than the just the envisioned users for
> this IFF_NOPROC thing.
>
> I really don't want to take the IFF_NOPROC approach.
>
Of course optimizing /proc and /sysfs is a good option, but any optimizations
will never be as fast as disabling them for some well known netdevices.

Note also that the memory consumption is significantly less with this flag:
for 20000 dummy interfaces:
without the flag: 463,84Mo
with the flag: 297,45Mo
the gain is 166Mo (35%)