lkml.org 
[lkml]   [2013]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Slab BUG with DEBUG_* options
(Added 3 addresses to CC from my RED state exception thread since this 
is related)

> On Tue, 3 Dec 2013, Meelis Roos wrote:
>
> > Tested it. seems to hang after switching to another console. Before
> > that, slabs are initialized successfully, I verified it with my previous
> > debug printk sprinkle patch. Many allocations are still off slab - is
> > that OK?
>
> Yes that was the intend. Only exempt the small ones.
>
> > console [tty0] enabled, bootconsole disabled
>
> Looks like the bootstrap worked.

But the configuration should work fine with this console setup - with no
slab debug options, it booted fine... I decided to do more tests.

In short, tests about 3.11-rc2-00058:

clean kernel: boots OK, RED state on shutdown (the actual problem I am
chasing)

clean kernel, slab debug: mm crash

your second slab patch, slab debug: OK - this one shows that the RED
state problem went away too which is good but strange

clean kernel, your second slab patch: OK - no RED state

Following another lead I had discovered that I can make the RED state
problem go away if I switch tty ldata allocation from vmalloc to
kmalloc. Tests with that:

ldata alloc change only, no slab debug: OK (works around RED state
somehow)

ldata alloc change + slab debug: mm crash, can not test for RED state

ldata alloc change + your second slab patch + slab debug: hang on boot
after
console [tty0] enabled, bootconsole disabled
(after that, I should see all the dmesg again on serial but I do not).

ldata alloc change + your second slab patch + no slab debug: OK

So, in short:

your slab patch 2 seems to cure both slab debug startup crash and the
RED state problem in this specific version of the kernel. However, it is
still mystery to me why tty ldata alloc change vmalloc->kmalloc would
break but that may to be in the serial field - will do more tests with
this patch applied and newer kernels.

--
Meelis Roos (mroos@linux.ee)


\
 
 \ /
  Last update: 2013-12-08 16:21    [W:0.045 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site