From: Eric Dumazet <eric.dumazet@gmail.com>
To: Denys Fedoryshchenko <denys@visp.net.lb>
Cc: netdev@vger.kernel.org
Subject: Re: 2.6.39-rc7-git11, x86/32, failed on ppp2897'th interface, PERCPU: allocation failed
Date: Thu, 19 May 2011 08:55:13 +0200 [thread overview]
Message-ID: <1305788113.3019.19.camel@edumazet-laptop> (raw)
In-Reply-To: <1305787158.3019.12.camel@edumazet-laptop>
Le jeudi 19 mai 2011 à 08:39 +0200, Eric Dumazet a écrit :
> Its a known problem : When ipv6 is enabled, we allocate percpu memory to
> hold per device snmp counters.
>
> make sure kernel idea of max possible cpus matches real number of cpus.
>
> And yes, switching to 64bit kernel helps a lot.
>
>
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))
For sure icmp ones dont need percpu counter. Plain atomic_long_t
(shared) would be enough, since ICMP messages are rare enough.
next prev parent reply other threads:[~2011-05-19 6:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 6:35 2.6.39-rc7-git11, x86/32, failed on ppp2897'th interface, PERCPU: allocation failed Denys Fedoryshchenko
2011-05-19 6:39 ` Eric Dumazet
2011-05-19 6:47 ` Denys Fedoryshchenko
2011-05-19 6:55 ` Eric Dumazet [this message]
2011-05-19 7:28 ` Denys Fedoryshchenko
2011-05-19 7:44 ` Eric Dumazet
2011-05-19 11:14 ` [PATCH net-next-2.6] ipv6: reduce per device ICMP mib sizes Eric Dumazet
2011-05-19 11:26 ` Denys Fedoryshchenko
2011-05-19 20:19 ` David Miller
2011-05-19 7:51 ` 2.6.39-rc7-git11, x86/32, failed on ppp2897'th interface, PERCPU: allocation failed David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1305788113.3019.19.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=denys@visp.net.lb \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).