From: Eric Dumazet Date: Tue, 8 Nov 2011 13:04:43 +0000 (+0000) Subject: ipv4: reduce percpu needs for icmpmsg mibs X-Git-Tag: v3.3-rc1~182^2~630 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb32ba3dee66d58704caeeb8c6ff95f60efdc66;p=pandora-kernel.git ipv4: reduce percpu needs for icmpmsg mibs Reading /proc/net/snmp on a machine with a lot of cpus is very expensive (can be ~88000 us). This is because ICMPMSG MIB uses 4096 bytes per cpu, and folding values for all possible cpus can read 16 Mbytes of memory. ICMP messages are not considered as fast path on a typical server, and eventually few cpus handle them anyway. We can afford an atomic operation instead of using percpu data. This saves 4096 bytes per cpu and per network namespace. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed