From: Vlastimil Babka <vbabka@suse.cz>
To: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Mel Gorman <mgorman@suse.de>,
David Rientjes <rientjes@google.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/5] mm/compaction: more trace to understand when/why compaction start/finish
Date: Tue, 13 Jan 2015 09:29:44 +0100 [thread overview]
Message-ID: <54B4D778.7050501@suse.cz> (raw)
In-Reply-To: <20150113071605.GA29898@js1304-P5Q-DELUXE>
On 01/13/2015 08:16 AM, Joonsoo Kim wrote:
> On Mon, Jan 12, 2015 at 04:53:53PM +0100, Vlastimil Babka wrote:
>> On 01/12/2015 09:21 AM, Joonsoo Kim wrote:
>> > It is not well analyzed that when/why compaction start/finish or not. With
>> > these new tracepoints, we can know much more about start/finish reason of
>> > compaction. I can find following bug with these tracepoint.
>> >
>> > http://www.spinics.net/lists/linux-mm/msg81582.html
>> >
>> > Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
>> > ---
>> > include/linux/compaction.h | 3 ++
>> > include/trace/events/compaction.h | 94 +++++++++++++++++++++++++++++++++++++
>> > mm/compaction.c | 41 ++++++++++++++--
>> > 3 files changed, 134 insertions(+), 4 deletions(-)
>> >
>> > diff --git a/include/linux/compaction.h b/include/linux/compaction.h
>> > index a9547b6..d82181a 100644
>> > --- a/include/linux/compaction.h
>> > +++ b/include/linux/compaction.h
>> > @@ -12,6 +12,9 @@
>> > #define COMPACT_PARTIAL 3
>> > /* The full zone was compacted */
>> > #define COMPACT_COMPLETE 4
>> > +/* For more detailed tracepoint output */
>> > +#define COMPACT_NO_SUITABLE_PAGE 5
>> > +#define COMPACT_NOT_SUITABLE_ZONE 6
>> > /* When adding new state, please change compaction_status_string, too */
>> >
>> > /* Used to signal whether compaction detected need_sched() or lock contention */
>> > diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h
>> > index 139020b..839dd4f 100644
>> > --- a/include/trace/events/compaction.h
>> > +++ b/include/trace/events/compaction.h
>> > @@ -164,6 +164,100 @@ TRACE_EVENT(mm_compaction_end,
>> > compaction_status_string[__entry->status])
>> > );
>> >
>> > +TRACE_EVENT(mm_compaction_try_to_compact_pages,
>> > +
>> > + TP_PROTO(
>> > + int order,
>> > + gfp_t gfp_mask,
>> > + enum migrate_mode mode,
>> > + int alloc_flags,
>> > + int classzone_idx),
>>
>> I wonder if alloc_flags and classzone_idx is particularly useful. It affects the
>> watermark checks, but those are a bit of blackbox anyway.
>
> Yes, I think so. How about printing gfp_flag rather than these? It would
> tell us migratetype and other information so would be useful.
Yeah gfp_mask should be enough.
>
> Thanks.
>
--
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:[~2015-01-13 8:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 8:21 [PATCH v2 1/5] mm/compaction: change tracepoint format from decimal to hexadecimal Joonsoo Kim
2015-01-12 8:21 ` [PATCH v2 2/5] mm/compaction: enhance tracepoint output for compaction begin/end Joonsoo Kim
2015-01-12 14:32 ` Vlastimil Babka
2015-01-12 8:21 ` [PATCH v2 3/5] mm/compaction: print current range where compaction work Joonsoo Kim
2015-01-12 14:34 ` Vlastimil Babka
2015-01-12 8:21 ` [PATCH v2 4/5] mm/compaction: more trace to understand when/why compaction start/finish Joonsoo Kim
2015-01-12 15:53 ` Vlastimil Babka
2015-01-13 7:16 ` Joonsoo Kim
2015-01-13 8:29 ` Vlastimil Babka [this message]
2015-01-12 8:21 ` [PATCH v2 5/5] mm/compaction: add tracepoint to observe behaviour of compaction defer Joonsoo Kim
2015-01-12 16:35 ` Vlastimil Babka
2015-01-13 7:18 ` Joonsoo Kim
2015-01-13 8:35 ` Vlastimil Babka
2015-01-12 14:23 ` [PATCH v2 1/5] mm/compaction: change tracepoint format from decimal to hexadecimal Vlastimil Babka
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=54B4D778.7050501@suse.cz \
--to=vbabka@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=rientjes@google.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