From: David Miller <davem@davemloft.net>
To: tj@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: More problems in setup_pcpu_remap()
Date: Wed, 01 Apr 2009 21:31:12 -0700 (PDT) [thread overview]
Message-ID: <20090401.213112.96144152.davem@davemloft.net> (raw)
The way this code is currently designed, it can exhaust all of the
VMALLOC address space on both x86 and x86_64, and then some.
It allocates PMD_SIZE * num_possible_cpus() of vmalloc space.
PMD_SIZE is 2MB, num_possible_cpus() can be up to 4096....
which can easily exceed (VMALLOC_END - VMALLOC_START)
Initially I had set out to implement sparc64 support for the new
per-cpu stuff, but it looks like I'm stuck finding bugs in the x86
implementation instead :-)
next reply other threads:[~2009-04-02 4:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 4:31 David Miller [this message]
2009-04-02 4:42 ` More problems in setup_pcpu_remap() Tejun Heo
2009-04-02 4:52 ` David Miller
2009-04-02 5:55 ` Tejun Heo
2009-04-02 7:07 ` David Miller
2009-04-02 7:22 ` Tejun Heo
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=20090401.213112.96144152.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.