From: Imre Deak <imre.deak@intel.com>
To: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org,
Maxim Levitsky <maximlevitsky@gmail.com>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH v2] lib/scatterlist: add simple page iterator
Date: Wed, 13 Feb 2013 16:51:21 +0200 [thread overview]
Message-ID: <1360767081.4784.6.camel@ideak-mobl> (raw)
In-Reply-To: <20130212171305.GB7348@htj.dyndns.org>
On Tue, 2013-02-12 at 09:13 -0800, Tejun Heo wrote:
> Hello,
>
> On Tue, Feb 12, 2013 at 07:07:20PM +0200, Imre Deak wrote:
> > It's the one implemented by sg_miter_{start,stop} in scatterlist.c. It
> > also iterates through a scatterlist a page at a time, but it also kmaps
> > these pages. Since in our use case we don't need to map the pages we
> > needed a solution without this overhead.
>
> I'm not against having non-mapping iterator but please consider that
> kmaps are no-ops on many configurations. It matters only for archs w/
> high memory.
Ok, I haven't thought about that. But in any case we care about those
archs too and would like to avoid the mapping there as well.
> > where each entry on the sglist contained 16 consecutive pages. This
> > takes ~10% more time for the uninlined version to run. This is a rather
> > artificial test and I couldn't come up with something more real-life
> > using only the i915 driver's ioctl interface that would show a
> > significant change in speed.
> >
> > So at least for now I'm ok with just uninlining all the helpers.
>
> Can we reimplement mapping iters using the new ones?
Yes I think it's a good idea, I will follow up with a new patchset
addressing this and Andrew's comments.
Thanks,
Imre
next prev parent reply other threads:[~2013-02-13 14:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1353590706-1366-5-git-send-email-imre.deak@intel.com>
2013-02-11 16:32 ` [PATCH] lib/scatterlist: add simple page iterator Imre Deak
2013-02-11 18:50 ` [PATCH v2] " Imre Deak
2013-02-11 20:54 ` Andrew Morton
2013-02-12 17:07 ` Imre Deak
2013-02-12 17:13 ` Tejun Heo
2013-02-13 14:51 ` Imre Deak [this message]
2013-02-12 21:28 ` Andrew Morton
2013-02-13 15:10 ` [PATCH v3 1/2] " Imre Deak
2013-02-13 15:10 ` [PATCH v3 2/2] lib/scatterlist: use page iterator in the mapping iterator Imre Deak
2013-02-21 13:58 ` [PATCH v4] " Imre Deak
2013-02-24 11:05 ` [PATCH v5] " Imre Deak
2013-02-27 2:30 ` Stephen Warren
2013-02-23 4:29 ` [PATCH v3 2/2] " Stephen Warren
2013-02-23 20:04 ` Imre Deak
2013-02-23 23:45 ` Stephen Warren
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=1360767081.4784.6.camel@ideak-mobl \
--to=imre.deak@intel.com \
--cc=akpm@linux-foundation.org \
--cc=daniel.vetter@ffwll.ch \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maximlevitsky@gmail.com \
--cc=tj@kernel.org \
/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