linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Andy Chittenden <AChittenden@bluearc.com>
Cc: Andi Kleen <ak@suse.de>, Anton Altaparmakov <aia21@cam.ac.uk>,
	Andrew Morton <akpm@osdl.org>,
	davej@redhat.com, linux-kernel@vger.kernel.org,
	lwoodman@redhat.com,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: adding swap workarounds oom - was: Re: Out of Memory: Killed process 16498 (java).
Date: Thu, 2 Mar 2006 12:10:47 +0100	[thread overview]
Message-ID: <20060302111046.GF4329@suse.de> (raw)
In-Reply-To: <89E85E0168AD994693B574C80EDB9C270393C1BF@uk-email.terastack.bluearc.com>

On Thu, Mar 02 2006, Andy Chittenden wrote:
> 
> > On Wed, Mar 01 2006, Andy Chittenden wrote:
> > > > On Wed, Mar 01 2006, Andi Kleen wrote:
> > > > > On Wednesday 01 March 2006 15:34, Jens Axboe wrote:
> > > > > 
> > > > > 
> > > > > > > It shouldn't end up with more, only with less.
> > > > > > 
> > > > > > Sure yes, but if that 'less' is still more than what the 
> > > > driver can
> > > > > > handle, then there's a problem.
> > > > > 
> > > > > The driver needs to handle the full list it passed in. 
> > It's quite
> > > > > possible that the iommu layer is unable to merge anything.
> > > > > 
> > > > > 
> > > > > This isn't the block layer based merging where we guarantee
> > > > > to be able to merge in advance - just lazy after the 
> > fact merging.
> > > > 
> > > > Yes I realize that, I wonder if the bounce patch screwed 
> > something up
> > > > that destroys the block layer merging/accounting. We'll 
> > know when Andy
> > > > posts results that dump the request as well.
> > > 
> > > And here's the dmesg o/p (I had to gather it from 
> > /var/log/kern.log as
> > > there was so much output):
> > 
> > Thanks!
> > 
> > > hda: DMA table too small
> > > ide dma table, 256 entries, bounce pfn 1310720
> > > sg0: dma=830e800, len=4096/0, pfn=1202633
> > > sg1: dma=830f800, len=4096/0, pfn=1202590
> > > sg2: dma=8310800, len=4096/0, pfn=1202548
> > > sg3: dma=8311800, len=4096/0, pfn=1202506
> > 
> > Alright Andi, take a look at this then. We have the same thing again,
> > mid page start of the sg entries. The block layer has done no merging,
> > it's 256 separate segments. The pci_map_sg() output is the 
> > same, except
> > that the IDE driver now needs to split the entries. The 
> > corresponding rq
> > entries for the first four above are:
> > 
> > > request: phys seg 256, hw seg 256, nr_sectors 2048
> > >   bio0: bytes=4096, phys seg 1, hw seg 1
> > >     bvec0: addr=ffff8101259c9000, size=4096, off=0
> > >   bio1: bytes=4096, phys seg 1, hw seg 1
> > >     bvec0: addr=ffff81012599e000, size=4096, off=0
> > >   bio2: bytes=4096, phys seg 1, hw seg 1
> > >     bvec0: addr=ffff810125974000, size=4096, off=0
> > >   bio3: bytes=4096, phys seg 1, hw seg 1
> > >     bvec0: addr=ffff81012594a000, size=4096, off=0
> > 
> > these here. Totally plain 4kb bios strung to the request, no funky
> > offsets or anything. 256 hardware and physical segments, for 
> > a total of
> > a 1MB request.
> > 
> > So what is going wrong? Why does the pci mapping output looks so
> > "strange"?
> > 
> > -- 
> > Jens Axboe
> > 
> 
> So, what's the story? Apart from the performance implications, one thing
> that does concern me is whether this could cause corruptions on disk as
> it appears a cross-page write is being attempted.

I'm waiting for Andi to render an opinion on the problem. It should have
no corruption implications, the PIO path will handle arbitrarily large
requests. I'm assuming the mapped sg table is correct, just odd looking
for some reason.

-- 
Jens Axboe


  reply	other threads:[~2006-03-02 11:11 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02 10:46 adding swap workarounds oom - was: Re: Out of Memory: Killed process 16498 (java) Andy Chittenden
2006-03-02 11:10 ` Jens Axboe [this message]
2006-03-02 12:21   ` Andi Kleen
2006-03-02 12:26     ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2006-03-03  9:16 Andy Chittenden
     [not found] <89E85E0168AD994693B574C80EDB9C270393C141@uk-email.terastack.bluearc.com>
2006-03-01 15:57 ` Jens Axboe
2006-03-01 14:40 Andy Chittenden
2006-03-01 13:34 Andy Chittenden
2006-03-01 13:41 ` Jens Axboe
2006-03-01 14:05   ` Andi Kleen
2006-03-01 14:18     ` Jens Axboe
2006-03-01 14:26       ` Andi Kleen
2006-03-01 14:34         ` Jens Axboe
2006-03-01 14:41           ` Andi Kleen
2006-03-01 15:00             ` Jens Axboe
2006-03-01 10:47 Andy Chittenden
2006-03-01 12:15 ` Jens Axboe
2006-03-01 12:19   ` Jens Axboe
2006-03-01 12:23     ` Andi Kleen
2006-03-01 12:25       ` Jens Axboe
2006-03-01  9:42 Andy Chittenden
2006-03-01  9:55 ` Jens Axboe
2006-02-28 10:27 Andy Chittenden
2006-02-28 10:29 ` Jens Axboe
2006-02-28 10:10 Andy Chittenden
2006-02-28 10:20 ` Jens Axboe
2006-02-27 16:39 Andy Chittenden
2006-02-27 14:50 Andy Chittenden
2006-02-27 14:56 ` Jens Axboe
     [not found] <89E85E0168AD994693B574C80EDB9C270393BF0E@uk-email.terastack.bluearc.com>
2006-02-27 14:28 ` Jens Axboe
2006-02-24  9:33 Andy Chittenden
2006-02-22 10:43 Andy Chittenden
2006-02-22 13:34 ` Jens Axboe
2006-02-22 13:35   ` Jens Axboe
2006-02-22 13:38     ` Jens Axboe
2006-02-03 13:56 Andy Chittenden
2006-02-03 14:00 ` Jens Axboe
2006-01-27 11:53 Andy Chittenden
2006-01-27 14:21 ` Jens Axboe
2006-01-27 14:39   ` Anton Altaparmakov
2006-02-03  9:20     ` adding swap workarounds oom - was: " Anton Altaparmakov
2006-02-03  9:26       ` Andrew Morton
2006-02-03 11:01         ` Anton Altaparmakov
2006-02-03 13:54           ` Jens Axboe

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=20060302111046.GF4329@suse.de \
    --to=axboe@suse.de \
    --cc=AChittenden@bluearc.com \
    --cc=aia21@cam.ac.uk \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=bzolnier@gmail.com \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lwoodman@redhat.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;
as well as URLs for NNTP newsgroup(s).