All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: penberg@cs.helsinki.fi, Nadia.Derbey@bull.net,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	clameter@sgi.com
Subject: Re: repeatable slab corruption with LTP msgctl08
Date: Thu, 12 Jun 2008 12:20:09 -0700	[thread overview]
Message-ID: <20080612122009.f4d3a82a.akpm@linux-foundation.org> (raw)
In-Reply-To: <48517456.5000901@colorfullife.com>

On Thu, 12 Jun 2008 21:09:10 +0200
Manfred Spraul <manfred@colorfullife.com> wrote:

> Either someone does a set_bit() or your cpu is breaking down.

Well.  It is about ten years old.  But this is the first sign of a
problem and it's always msgctl08.

>  From looking at the the msgctl08 test: it shouldn't produce any races, 
> it just does lots of bulk msgsnd()/msgrcv() operations. Always one 
> thread sends, one thread receives on each queue. It's probably more a 
> scheduler stresstest than anything else.
> 
> Attached is a completely untested patch:
> - add 8 bytes to each slabp struct: This changes the alignment of the 
> bufctl entries.
> - add a hexdump of the redzone bytes.

OK, I'll try that this evening (eight hours hence).

I'll also try increasing /proc/sys/kernel/msgmni under 2.6.25.

> Andrew: how do you log the oops? 
> it might scroll of the screen.

netconsole-to-disk.


WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: penberg@cs.helsinki.fi, Nadia.Derbey@bull.net,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	clameter@sgi.com
Subject: Re: repeatable slab corruption with LTP msgctl08
Date: Thu, 12 Jun 2008 12:20:09 -0700	[thread overview]
Message-ID: <20080612122009.f4d3a82a.akpm@linux-foundation.org> (raw)
In-Reply-To: <48517456.5000901@colorfullife.com>

On Thu, 12 Jun 2008 21:09:10 +0200
Manfred Spraul <manfred@colorfullife.com> wrote:

> Either someone does a set_bit() or your cpu is breaking down.

Well.  It is about ten years old.  But this is the first sign of a
problem and it's always msgctl08.

>  From looking at the the msgctl08 test: it shouldn't produce any races, 
> it just does lots of bulk msgsnd()/msgrcv() operations. Always one 
> thread sends, one thread receives on each queue. It's probably more a 
> scheduler stresstest than anything else.
> 
> Attached is a completely untested patch:
> - add 8 bytes to each slabp struct: This changes the alignment of the 
> bufctl entries.
> - add a hexdump of the redzone bytes.

OK, I'll try that this evening (eight hours hence).

I'll also try increasing /proc/sys/kernel/msgmni under 2.6.25.

> Andrew: how do you log the oops? 
> it might scroll of the screen.

netconsole-to-disk.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2008-06-12 19:20 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12  5:13 repeatable slab corruption with LTP msgctl08 Andrew Morton
2008-06-12  5:13 ` Andrew Morton
2008-06-12  6:34 ` Andrew Morton
2008-06-12  6:34   ` Andrew Morton
2008-06-12  8:02   ` Andrew Morton
2008-06-12  8:02     ` Andrew Morton
2008-06-12  8:15     ` Andrew Morton
2008-06-12  8:15       ` Andrew Morton
2008-06-12  8:16       ` Andrew Morton
2008-06-12  8:16         ` Andrew Morton
2008-06-12  8:35       ` Andi Kleen
2008-06-12  8:35         ` Andi Kleen
2008-06-12  9:08         ` Andrew Morton
2008-06-12  9:08           ` Andrew Morton
2008-06-12 10:24         ` Andrew Morton
2008-06-12 10:24           ` Andrew Morton
2008-06-12 10:41           ` Andi Kleen
2008-06-12 10:41             ` Andi Kleen
2008-06-12 10:35 ` Pekka J Enberg
2008-06-12 10:35   ` Pekka J Enberg
2008-06-12 17:13   ` Christoph Lameter
2008-06-12 17:13     ` Christoph Lameter
2008-06-12 18:33   ` Manfred Spraul
2008-06-12 18:33     ` Manfred Spraul
2008-06-12 18:41     ` Andrew Morton
2008-06-12 18:41       ` Andrew Morton
2008-06-12 19:09       ` Manfred Spraul
2008-06-12 19:20         ` Andrew Morton [this message]
2008-06-12 19:20           ` Andrew Morton
2008-06-12 19:27     ` Pekka Enberg
2008-06-12 19:27       ` Pekka Enberg
2008-06-13  7:03 ` Nadia Derbey
2008-06-13  7:03   ` Nadia Derbey
2008-06-13  8:33   ` Nadia Derbey
2008-06-13  8:33     ` Nadia Derbey
2008-06-13  8:42     ` Andrew Morton
2008-06-13  8:42       ` Andrew Morton

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=20080612122009.f4d3a82a.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=Nadia.Derbey@bull.net \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=manfred@colorfullife.com \
    --cc=penberg@cs.helsinki.fi \
    /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.