public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Marton Balint <cus@fazekas.hu>
Cc: Andreas Mohr <andi@lisas.de>,
	linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: CPU scheduler weirdness?
Date: Wed, 19 Aug 2009 14:10:34 +0200	[thread overview]
Message-ID: <1250683834.7583.360.camel@twins> (raw)
In-Reply-To: <alpine.LNX.2.00.0908191353100.19120@cinke.fazekas.hu>

On Wed, 2009-08-19 at 14:01 +0200, Marton Balint wrote:
> On Wed, 19 Aug 2009, Peter Zijlstra wrote:
> > On Tue, 2009-08-18 at 21:49 +0200, Marton Balint wrote:
> >
> >> In the meantime, I was able to create a tiny C program which always
> >> succesfully reproduces the bug. It's basically an endless loop which does
> >> not stop while the process is running on the last CPU core. The program
> >> creates multiple instances of itself, to be able to keep all of the CPU
> >> cores busy. After 1 second, the processes running on other than the last
> >> CPU core die, the processes running on the last CPU core remain stuck
> >> there...
> >>
> >> I tested it on my dual core system, if someone could test it on a quad
> >> core and report back that would probably be useful.
> >>
> >> Usage: ./schedtest <number of CPU cores>
> >>
> >> And don't forget to kill the stuck processes after using the program! :)
> >
> > So what's the bug? Sure one task will stay on the cpu, and because there
> > is no contention it doesn't get migrated, and therefore won't quit,
> > how's that a problem?
> 
> Problem is that more than one processes remain on that CPU core, and none 
> of them get migrated to other (idle) cores. I tested it with my E8400 
> processor and 2.6.31-rc5-git3 kernel.

Only one remains here.. on a c2q running 2.6.31-rc6-tip

Do you have a .config handy?

  reply	other threads:[~2009-08-19 12:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-13  0:58 CPU scheduler weirdness? Marton Balint
2009-08-13  8:42 ` Andreas Mohr
2009-08-13 15:39   ` Marton Balint
2009-08-13 15:58     ` Andreas Mohr
2009-08-18 19:49       ` Marton Balint
2009-08-19  7:04         ` Peter Zijlstra
2009-08-19 12:01           ` Marton Balint
2009-08-19 12:10             ` Peter Zijlstra [this message]
2009-08-19 12:34               ` Marton Balint
2009-08-19 18:42                 ` Peter Zijlstra
2009-08-20  0:10                   ` Marton Balint
2009-08-20 10:56                     ` Ingo Molnar
2009-08-20 16:56                       ` Marton Balint
2009-08-29 14:15                         ` Marton Balint
2009-09-03 21:57                           ` Marton Balint
2009-09-04  6:26                             ` Mike Galbraith
2009-09-04  7:53                               ` Marton Balint
2009-09-04 12:26                                 ` Mike Galbraith
2009-09-04  8:40                             ` Peter Zijlstra
2009-09-04 12:40                               ` Ingo Molnar
2009-09-04 15:31                                 ` Marton Balint

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=1250683834.7583.360.camel@twins \
    --to=peterz@infradead.org \
    --cc=andi@lisas.de \
    --cc=cus@fazekas.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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