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 09:44:31 +0200 [thread overview]
Message-ID: <1305791071.3028.1.camel@edumazet-laptop> (raw)
In-Reply-To: <10f61af229a48d77d06d154b4647cdde@visp.net.lb>
Le jeudi 19 mai 2011 à 10:28 +0300, Denys Fedoryshchenko a écrit :
> On Thu, 19 May 2011 08:55:13 +0200, Eric Dumazet wrote:
> > 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))
> 1920 +
> 256 +
> 208 = 2386 * 3000ppp's = 7152000, i think it is not that much at any
> case, if i am not wrong.
>
> But at any case i will try 64bit.
If you really want to stay 32bit, you might try to enlarge vmalloc aread
(128 Mbytes default) to get room for pcpu data :
grep pcpu /proc/vmallocinfo
boot param : vmalloc=256M
next prev parent reply other threads:[~2011-05-19 7:44 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
2011-05-19 7:28 ` Denys Fedoryshchenko
2011-05-19 7:44 ` Eric Dumazet [this message]
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=1305791071.3028.1.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