mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Mason <chris.mason@oracle.com>
To: mgross@linux.intel.com
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	David Woodhouse <dwmw2@infradead.org>,
	Jens Axboe <jens.axboe@oracle.com>
Subject: Re: kernel BUG at drivers/pci/intel-iommu.c:1373!
Date: Fri, 12 Sep 2008 09:32:30 -0400	[thread overview]
Message-ID: <1221226350.28506.0.camel@think.oraclecorp.com> (raw)
In-Reply-To: <20080909161903.GA14986@linux.intel.com>

On Tue, 2008-09-09 at 09:19 -0700, mark gross wrote:
> On Mon, Sep 08, 2008 at 10:26:04AM -0400, Chris Mason wrote:
> > Hello everyone,
> > 
> > I originally hit this with btrfs and assumed I was doing something
> > wrong, but it looks like it is a generic problem.  The stack trace at
> > the bottom of this email came from the following setup:
> > 
> > mdadm --create /dev/md0 --level=1 --raid-devices=4 --assume-clean /dev/sd[cdef]
> > mkfs.ext4dev /dev/md0 50000000
> > mount /dev/md0 /mnt
> > synctest -t 100 -F -f -u /mnt
> > 
> > synctest is an old benchmark from akpm that I dug up to test the btrfs
> > fsync code.  google doesn't seem to know much about it anymore, so I've
> > tossed it up here:
> > 
> > http://oss.oracle.com/~mason/synctest/synctest.c
> > 
> > The important part is that I have a software raid1 volume with 4 drives
> > and that I'm hammering on it has hard as I can with synchronous writes
> > from 100 procs.
> > 
> > MD uses bio_clone to make copies of bios for each device in the mirror
> > set.  So, using 4 devices means each bio is cloned 3 times, greatly
> > increases the chances that I'll send down the same page in different
> > bios to different devices.
> > 
> > Ext4 needs about 10 minutes to trigger on top of MD.  Btrfs needs about
> > 30 seconds when it controls the 4 devices itself.
> > 
> > I've been told this BUG in the io-mmu code comes when someone tries to
> > map a page into the iommu that has already been mapped.  It seems like
> > that is a natural result of bio_clone, and not an inherent race in the
> > code.  But, I've just said everything I know about the iommu code, so my
> > guesses don't mean much.
> 
> I have a bad feeling about this.  Can you retest booting with a kernel
> parrameter "intel_iommu=strict"?

Sorry, I'm going to have to try this again after the plumber's conf.

-chris



      reply	other threads:[~2008-09-12 13:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 14:26 Chris Mason
2008-09-09 16:19 ` mark gross
2008-09-12 13:32   ` Chris Mason [this message]

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=1221226350.28506.0.camel@think.oraclecorp.com \
    --to=chris.mason@oracle.com \
    --cc=dwmw2@infradead.org \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgross@linux.intel.com \
    /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

Powered by JetHome