From: iamjoonsoo.kim@lge.com (Joonsoo Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] ARM: mm: disable kmap_high_get() for SMP
Date: Thu, 7 Mar 2013 17:12:58 +0900 [thread overview]
Message-ID: <20130307081258.GA14839@lge.com> (raw)
In-Reply-To: <alpine.LFD.2.03.1303051642110.28820@syhkavp.arg>
Hello, Nicolas.
On Tue, Mar 05, 2013 at 05:36:12PM +0800, Nicolas Pitre wrote:
> On Mon, 4 Mar 2013, Joonsoo Kim wrote:
>
> > With SMP and enabling kmap_high_get(), it makes users of kmap_atomic()
> > sequential ordered, because kmap_high_get() use global kmap_lock().
> > It is not welcome situation, so turn off this optimization for SMP.
>
> I'm not sure I understand the problem.
>
> The lock taken by kmap_high_get() is released right away before that
> function returns and therefore this is not actually serializing
> anything.
Yes, you understand what I want to say correctly.
Sorry for bad explanation.
Following is reasons why I send this patch with RFC tag.
If we have more cpus, performance degration is possible although
it is very short time to holding the lock in kmap_high_get().
And kmap has maximum 512 entries(512 * 4K = 2M) and some mobile devices
has 2G memory(highmem 1G>), so probability for finding matched entry
is approximately < 1/512. This probability can be more decreasing
for device which have more memory. So I think that waste time to find
matched entry is more than saved time.
Above is my humble opinion, so please let me know what I am missing.
Thanks.
>
>
> Nicolas
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
WARNING: multiple messages have this Message-ID (diff)
From: Joonsoo Kim <iamjoonsoo.kim@lge.com>
To: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] ARM: mm: disable kmap_high_get() for SMP
Date: Thu, 7 Mar 2013 17:12:58 +0900 [thread overview]
Message-ID: <20130307081258.GA14839@lge.com> (raw)
In-Reply-To: <alpine.LFD.2.03.1303051642110.28820@syhkavp.arg>
Hello, Nicolas.
On Tue, Mar 05, 2013 at 05:36:12PM +0800, Nicolas Pitre wrote:
> On Mon, 4 Mar 2013, Joonsoo Kim wrote:
>
> > With SMP and enabling kmap_high_get(), it makes users of kmap_atomic()
> > sequential ordered, because kmap_high_get() use global kmap_lock().
> > It is not welcome situation, so turn off this optimization for SMP.
>
> I'm not sure I understand the problem.
>
> The lock taken by kmap_high_get() is released right away before that
> function returns and therefore this is not actually serializing
> anything.
Yes, you understand what I want to say correctly.
Sorry for bad explanation.
Following is reasons why I send this patch with RFC tag.
If we have more cpus, performance degration is possible although
it is very short time to holding the lock in kmap_high_get().
And kmap has maximum 512 entries(512 * 4K = 2M) and some mobile devices
has 2G memory(highmem 1G>), so probability for finding matched entry
is approximately < 1/512. This probability can be more decreasing
for device which have more memory. So I think that waste time to find
matched entry is more than saved time.
Above is my humble opinion, so please let me know what I am missing.
Thanks.
>
>
> Nicolas
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2013-03-07 8:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 4:51 [RFC PATCH] ARM: mm: disable kmap_high_get() for SMP Joonsoo Kim
2013-03-04 4:51 ` Joonsoo Kim
2013-03-05 9:36 ` Nicolas Pitre
2013-03-05 9:36 ` Nicolas Pitre
2013-03-07 8:12 ` Joonsoo Kim [this message]
2013-03-07 8:12 ` Joonsoo Kim
2013-03-07 9:36 ` Nicolas Pitre
2013-03-07 9:36 ` Nicolas Pitre
2013-03-07 10:35 ` JoonSoo Kim
2013-03-07 10:35 ` JoonSoo Kim
2013-03-19 5:05 ` Joonsoo Kim
2013-03-19 5:05 ` Joonsoo Kim
2013-03-19 12:40 ` Nicolas Pitre
2013-03-19 12:40 ` Nicolas Pitre
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=20130307081258.GA14839@lge.com \
--to=iamjoonsoo.kim@lge.com \
--cc=linux-arm-kernel@lists.infradead.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 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.