lkml.org 
[lkml]   [2011]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] SLAB changes for v2.6.39-rc1
Hello,

On Thu, Mar 24, 2011 at 03:43:25PM -0500, Christoph Lameter wrote:
> > Thats strange, alloc_percpu() is supposed to zero the memory already ...
>
> True.
>
> > Are you sure its really this problem of interrupts being disabled ?
>
> Guess so since Ingo and Pekka reported that it fixed the problem.
>
> Tejun: Can you help us with this mystery?

I've looked through the code but can't figure out what the difference
is. The memset code is in mm/percpu-vm.c::pcpu_populate_chunk().

for_each_possible_cpu(cpu)
memset((void *)pcpu_chunk_addr(chunk, cpu, 0) + off, 0, size);

(pcpu_chunk_addr(chunk, cpu, 0) + off) is the same vaddr as will be
obtained by per_cpu_ptr(ptr, cpu), so all allocated memory regions are
accessed before being returned. Dazed and confused (seems like the
theme of today for me).

Could it be that the vmalloc page is taking more than one faults?

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-03-25 16:17    [W:1.897 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site