From: Tejun Heo <tj@kernel.org>
To: Jianyu Zhan <nasa4836@gmail.com>
Cc: linux-mm@kvack.org, akpm@linux-foundation.org,
cl@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] mm/percpu.c: don't bother to re-walk the pcpu_slot list if nobody free space since we last drop pcpu_lock
Date: Sat, 29 Mar 2014 09:14:34 -0400 [thread overview]
Message-ID: <20140329131434.GB5553@htj.dyndns.org> (raw)
In-Reply-To: <1396011357-21560-1-git-send-email-nasa4836@gmail.com>
On Fri, Mar 28, 2014 at 08:55:57PM +0800, Jianyu Zhan wrote:
> Quoted tj:
> >Hmmm... I'm not sure whether the added complexity is worthwhile. It's
> >a fairly cold path. Can you show how helpful this optimization is?
>
> The patch is quite less intrusive in the normal path
> and if we fall on the cold path, it means after satifying this allocation
> the chunk may be moved to lower slot, and the follow-up allocation
> of same or larger size(though rare) is likely to fail to cold path again. So
> this patch could be based on to do some heuristic later.
The above really doesn't show how helpful it is. This adds complexity
to optimize what seemingly is a quite cold path, which often is a
pretty bad idea as they tend to trade off readability and long term
maintainability for almost non-existing actual gain. If you think
this is a worthwhile optimization, please give justifications - use
scenarios, performance numbers and so on.
Thanks.
--
tejun
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2014-03-29 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 12:55 [PATCH 2/2] mm/percpu.c: don't bother to re-walk the pcpu_slot list if nobody free space since we last drop pcpu_lock Jianyu Zhan
2014-03-29 13:14 ` Tejun Heo [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-03-27 11:06 Jianyu Zhan
2014-03-27 15:00 ` Tejun Heo
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=20140329131434.GB5553@htj.dyndns.org \
--to=tj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nasa4836@gmail.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).