All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Andrew Morton <akpm@osdl.org>
Cc: thunder7@xs4all.nl,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.0-test3-mm1: scheduling while atomic (ext3?)
Date: 13 Aug 2003 12:06:10 +0100	[thread overview]
Message-ID: <1060772769.8009.4.camel@localhost.localdomain> (raw)
In-Reply-To: <20030813025542.32429718.akpm@osdl.org>

On Mer, 2003-08-13 at 10:55, Andrew Morton wrote:
> Jurriaan on adsl-gate <thunder7@xs4all.nl> wrote:
> >
> > > Exactly what sort of CPU are you using?
> >  > -
> >  AMD Athlon XP2400+ on a VIA KT400 chipset, single CPU-system.
> 
> OK, thanks.  The word is that Athlons will, very occasionally,
> take a fault when prefetching from an unmapped address.

Page zero in the kernel is mapped in 4Mb paging mode (which is what the
Athlon uses). Also your likely(pos) pretty much wiped out the point of
prefetching and punishes other processors because it is in the wrong
place. For that matter we could add a LIST_NULL that pointed somewhere
safe and wasn't NULL per se in 2.7.

Put the likely(pos) in the asm/prefetch for Athlon until someone can
figure out what is going on with some specific Athlons, 2.6 and certain
kernels (notably 4G/4G).

Long term we really do need to start supporting a zero page mapped at
0->64K when not debugging the kernel, then you can let the compiler do
NULL dereferences which is a _huge_ win because you can move stuff
around a lot of natural C conditionals to get better unrolling and
instruction scheduling.

The alternative is to start doing multipointer lists which is messier
and uses more memory (ie each node has next, prev, "several nodes on")

Alan


  reply	other threads:[~2003-08-13 11:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-13  4:56 2.6.0-test3-mm1: scheduling while atomic (ext3?) Jurriaan
2003-08-13  8:47 ` Andrew Morton
2003-08-13  9:19   ` Jurriaan on adsl-gate
2003-08-13  9:55     ` Andrew Morton
2003-08-13 11:06       ` Alan Cox [this message]
2003-08-13 11:25         ` Andrew Morton
2003-08-13 11:40           ` Alan Cox
2003-08-18 12:08           ` Pavel Machek
2003-08-13 11:06   ` Andi Kleen
     [not found] <20030813045638.GA9713@middle.of.nowhere.suse.lists.linux.kernel>
     [not found] ` <20030813014746.412660ae.akpm@osdl.org.suse.lists.linux.kernel>
     [not found]   ` <20030813091958.GA30746@gates.of.nowhere.suse.lists.linux.kernel>
     [not found]     ` <20030813025542.32429718.akpm@osdl.org.suse.lists.linux.kernel>
     [not found]       ` <1060772769.8009.4.camel@localhost.localdomain.suse.lists.linux.kernel>
2003-08-13 11:17         ` Andi Kleen
     [not found]         ` <20030813042544.5064b3f4.akpm@osdl.org.suse.lists.linux.kernel>
     [not found]           ` <1060774803.8008.24.camel@localhost.localdomain.suse.lists.linux.kernel>
2003-08-13 12:10             ` Andi Kleen
2003-08-13 12:48               ` Alan Cox
2003-08-13 13:14                 ` Andi Kleen
2003-08-13 14:09                   ` Alan Cox
2003-08-13 14:20                     ` Andi Kleen
2003-08-13 15:20                       ` Alan Cox
2003-08-13 15:32                         ` Andi Kleen
2003-08-13 18:44                           ` Alan Cox
2003-08-13 18:53                             ` Andi Kleen
2003-08-13 16:39                         ` Dave Jones
2003-08-13 18:34                           ` Alan Cox
2003-08-13 20:12                             ` Dave Jones
2003-08-13 18:37                           ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2003-08-13 18:59 richard.brunner

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=1060772769.8009.4.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thunder7@xs4all.nl \
    /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.