lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110720083753.2b8de970@nehalam.ftrdhcpuser.net>
Date:	Wed, 20 Jul 2011 08:37:53 -0700
From:	Stephen Hemminger <shemminger@...tta.com>
To:	Denys Fedoryshchenko <denys@...p.net.lb>
Cc:	<netdev@...r.kernel.org>
Subject: Re: [RFC] iproute2, ifindex option

On Mon, 18 Jul 2011 11:38:33 +0300
Denys Fedoryshchenko <denys@...p.net.lb> wrote:

>  After battling with iproute2 interface name caching, i decided to try 
>  to introduce ifindex option, where i can specify manually device index, 
>  and avoid expensive device index lookups, especially during massive 
>  changes for qdisc/class.
>  In batch mode ll_map cache will cause problems on servers with ppp 
>  interfaces (same name after while can have another index), and also if i 
>  run command too often, each start it will retrieve list of all 
>  interfaces, on 3k+ interfaces it will be CPU hog.
> 
>  This is sample of patch, just for qdisc/class/filter modify and show 
>  operation.
> 
>  Here is some changes in logic, because before qdisc code during _list 
>  operation was not checking duplicate "dev" argument, as it done in 
>  _modify code and class/filter list code.
> 
>  Also maybe i need to change duparg to something else? Because:
>  centaur iproute2-newifindex # tc/tc -s -d filter show ifindex 23 dev 
>  sdf
>  Error: duplicate "ifindex": "sdf" is the second value.
>  Or it is ok like this?
> 
>  I'm sorry that patch is not inline, seems my webmail can't do it now, i 
>  will try to install normal mail client.

If caching is a problem, I would rather just get rid of the cache altogether.
There are a number of other places where it is a problem as well.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ