public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* More problems in setup_pcpu_remap()
@ 2009-04-02  4:31 David Miller
  2009-04-02  4:42 ` Tejun Heo
  0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2009-04-02  4:31 UTC (permalink / raw)
  To: tj; +Cc: linux-kernel


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-02  7:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02  4:31 More problems in setup_pcpu_remap() David Miller
2009-04-02  4:42 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox