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: <08d4084d74a9299c4fd4d795394d4776@visp.net.lb>
Date:	Thu, 19 May 2011 14:26:45 +0300
From:	Denys Fedoryshchenko <denys@...p.net.lb>
To:	Eric Dumazet <eric.dumazet@...il.com>
Cc:	David Miller <davem@...emloft.net>, <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next-2.6] ipv6: reduce per device ICMP mib sizes

 On Thu, 19 May 2011 13:14:23 +0200, Eric Dumazet wrote:
> Le jeudi 19 mai 2011 à 08:55 +0200, Eric Dumazet a écrit :
>
>> Looking at snmp6_alloc_dev(), we allocate three mib per device :
>>
>> ipstats_mib  (30 * sizeof(u64) * number_of_possible_cpus)
>> icmpv6_mib    (4 * sizeof(long) * number_of_possible_cpus)
>> icmpv6msg_mib  (26 * sizeof(long))
>>
>
> Oops, I forgot that mibs were doubled (one set for USER, one set for 
> BH)
>
> And :
> #define __ICMP6MSG_MIB_MAX 512
>
> So icmpv6msg_mib is really 512*sizeof(long)*number_of_possible_cpus*2
>
> 32 kbytes per device on a 8cpu machine, 32bit kernel.
>
> Plus all other mibs... yes thats way too big for a seldom used stuff.
>
> Here is patch I cooked and tested on my machine :
>
> [PATCH net-next-2.6] ipv6: reduce per device ICMP mib sizes.

 I'll test it tonight, thanks a lot :-)
 I guess it will help also for people with lot of interfaces 
 (virtualisation?), not only ppp.

--
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