From: Andi Kleen <ak@suse.de>
To: Jens Axboe <axboe@suse.de>
Cc: Andy Chittenden <AChittenden@bluearc.com>,
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: Wed, 1 Mar 2006 13:23:33 +0100 [thread overview]
Message-ID: <200603011323.34722.ak@suse.de> (raw)
In-Reply-To: <20060301121934.GK4816@suse.de>
On Wednesday 01 March 2006 13:19, Jens Axboe wrote:
> On Wed, Mar 01 2006, Jens Axboe wrote:
> > On Wed, Mar 01 2006, Andy Chittenden wrote:
> >
> > Some weird stuff going on here, or I'm confused. Lots of entries are not
> > page start aligned, yet they have a length of 4kb. The troublesome
> > entries are additionally:
> >
> > > hda: DMA table too small
> > > ide dma table, 256 entries, bounce pfn 1310720
> > > sg0: dma=6e9e800, len=4096/0, pfn=1185312
> > > sg1: dma=6e9f800, len=4096/0, pfn=1185270
> >
> > This one, since it'll wrap around and consume two cpu dma table entries.
> > Since we are already at the max of 256 already from the beginning,
> > there's no way we can split this one.
> >
> > > sg2: dma=6ea0800, len=4096/0, pfn=1184892
> > > sg3: dma=6ea1800, len=4096/0, pfn=1185144
> > > sg4: dma=6ea2800, len=4096/0, pfn=1185102
> > > sg5: dma=6ea3800, len=4096/0, pfn=1185059
> > > sg6: dma=6ea4800, len=4096/0, pfn=1185017
> > > sg7: dma=6ea5800, len=4096/0, pfn=1184975
> > > sg8: dma=6ea6800, len=4096/0, pfn=1184933
> > > sg9: dma=6ea7800, len=4096/0, pfn=1184850
> > > sg10: dma=6ea8800, len=4096/0, pfn=1186142
> > > sg11: dma=6ea9800, len=4096/0, pfn=1186814
> > > sg12: dma=6eaa800, len=4096/0, pfn=1186731
> > > sg13: dma=6eab800, len=4096/0, pfn=1186689
> > > sg14: dma=6eac800, len=4096/0, pfn=1186227
> > > sg15: dma=6ead800, len=4096/0, pfn=1186185
> > > sg16: dma=6eae800, len=4096/0, pfn=1186100
> > > sg17: dma=6eaf800, len=4096/0, pfn=1185807
> >
> > Ditto for that one, will also be split into two 2kb entries.
> >
> > So this first mapping dump shows us that we start with 256 entries, that
> > IDE would like to map into 258 entries. The question is why these dma
> > address as mapped by pci_map_sg() aren't page aligned? Andi?
>
> Oh, it's dumping ->length but should be dumping ->dma_length in my debug
> patch. Can you change that and reproduce again?
Also only dump upto the value map_sg returned.
The new kernel will not do any changes to the input parts in the sglist, but
just merge up the dma pointers and fix up dma_length. So the mappings
can be completely out of sync now.
This only changed recently.
-Andi
P.S.: There might be also still some confusion with ->dma_length vs ->length.
next prev parent reply other threads:[~2006-03-01 12:23 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 10:47 adding swap workarounds oom - was: Re: Out of Memory: Killed process 16498 (java) Andy Chittenden
2006-03-01 12:15 ` Jens Axboe
2006-03-01 12:19 ` Jens Axboe
2006-03-01 12:23 ` Andi Kleen [this message]
2006-03-01 12:25 ` Jens Axboe
-- strict thread matches above, loose matches on Subject: below --
2006-03-03 9:16 Andy Chittenden
2006-03-02 10:46 Andy Chittenden
2006-03-02 11:10 ` Jens Axboe
2006-03-02 12:21 ` Andi Kleen
2006-03-02 12:26 ` Jens Axboe
[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 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=200603011323.34722.ak@suse.de \
--to=ak@suse.de \
--cc=AChittenden@bluearc.com \
--cc=aia21@cam.ac.uk \
--cc=akpm@osdl.org \
--cc=axboe@suse.de \
--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).