public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: "Pedro Venda (SYSADM)" <pjvenda@rnl.ist.utl.pt>
Cc: linux-kernel@vger.kernel.org, rnl@rnl.ist.utl.pt
Subject: Re: ftp server crashes on heavy load: possible scheduler bug
Date: Fri, 29 Apr 2005 05:08:33 -0700	[thread overview]
Message-ID: <20050429050833.6b3d805b.akpm@osdl.org> (raw)
In-Reply-To: <200504261402.57375.pjvenda@rnl.ist.utl.pt>

"Pedro Venda (SYSADM)" <pjvenda@rnl.ist.utl.pt> wrote:
>
> We've made some changes on our ftp server, and since that it's been crashing 
>  frequently (everyday) with a kernel panic. 
> 
>  We've configured the 5 IDE 160GB drives into md raid5 arrays with LVM on top 
>  of that. All filesystems are reiserfs. The other change we made to the server 
>  was changing from a patched 2.6.10-ac12 kernel into a newer 2.6.11.7.
> 
>  Not being able to see the whole stacktrace on screen, we've started a 
>  netconsole to investigate. Started the server and loaded it pretty bad with 
>  rsyncs and such... until it crashed after just 20 minutes.
> 
>  The netconsole log was surprising - "kernel BUG at kernel/sched.c:2634!"

Strange.  It'd be interesting to try disabling CONFIG_4KSTACKS.  Also,
please add this to get a bit more info.

diff -puN kernel/sched.c~a kernel/sched.c
--- 25/kernel/sched.c~a	2005-04-29 05:05:24.792004408 -0700
+++ 25-akpm/kernel/sched.c	2005-04-29 05:06:36.015176840 -0700
@@ -2631,7 +2631,12 @@ void fastcall add_preempt_count(int val)
 	/*
 	 * Underflow?
 	 */
-	BUG_ON(((int)preempt_count() < 0));
+	if ((int)preempt_count() < 0) {
+		printk("preempt_count=%d\n", preempt_count());
+		BUG();
+	}
+	if ((int)preempt_count() > 1000)
+		printk("preempt_count=%d\n", preempt_count());
 	preempt_count() += val;
 	/*
 	 * Spinlock count overflowing soon?
_


  parent reply	other threads:[~2005-04-29 12:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26 13:02 ftp server crashes on heavy load: possible scheduler bug Pedro Venda (SYSADM)
2005-04-27 18:16 ` Francois Romieu
2005-04-29 14:19   ` Pedro Venda (SYSADM)
2005-04-30 16:20     ` Francois Romieu
2005-04-29 12:08 ` Andrew Morton [this message]
2005-04-29 14:21   ` Pedro Venda (SYSADM)
2005-04-29 15:59     ` Paulo Marques
2005-04-29 16:57     ` Pedro Venda (SYSADM)
2005-04-29 12:59 ` Alexander Nyberg
2005-04-29 13:23   ` Zwane Mwaikambo
2005-04-29 14:32   ` Pedro Venda (SYSADM)
2005-04-29 14:55     ` Pedro Venda (SYSADM)

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=20050429050833.6b3d805b.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pjvenda@rnl.ist.utl.pt \
    --cc=rnl@rnl.ist.utl.pt \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox