[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090422215055.5be60685.akpm@linux-foundation.org>
Date: Wed, 22 Apr 2009 21:50:55 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Cc: Larry Woodman <lwoodman@...hat.com>, Ingo Molnar <mingo@...e.hu>,
Fr馘駻ic Weisbecker
<fweisbec@...il.com>, Li Zefan <lizf@...fujitsu.com>,
Pekka Enberg <penberg@...helsinki.fi>,
eduard.munteanu@...ux360.ro, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, riel@...hat.com, rostedt@...dmis.org
Subject: Re: [Patch] mm tracepoints update - use case.
On Thu, 23 Apr 2009 09:48:04 +0900 (JST) KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com> wrote:
> > On Wed, 2009-04-22 at 08:07 -0400, Larry Woodman wrote:
> > > On Wed, 2009-04-22 at 11:57 +0200, Ingo Molnar wrote:
> > > > * KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com> wrote:
> >
> > > > > In past thread, Andrew pointed out bare page tracer isn't useful.
> > > >
> > > > (do you have a link to that mail?)
http://lkml.indiana.edu/hypermail/linux/kernel/0903.0/02674.html
And Larry's example use case here tends to reinforce what I said then. Look:
: In addition I could see that the priority was decremented to zero and
: that 12342 pages had been reclaimed rather than just enough to satisfy
: the page allocation request.
:
: -----------------------------------------------------------------------------
: # tracer: nop
: #
: # TASK-PID CPU# TIMESTAMP FUNCTION
: # | | | | |
: <mem>-10723 [005] 6976.285610: mm_directreclaim_reclaimzone: reclaimed=12342, priority=0
and
: -----------------------------------------------------------------------------
: # tracer: nop
: #
: # TASK-PID CPU# TIMESTAMP FUNCTION
: # | | | | |
: <mem>-10723 [005] 282.776271: mm_pagereclaim_shrinkzone: reclaimed=12342
: <mem>-10723 [005] 282.781209: mm_pagereclaim_shrinkzone: reclaimed=3540
: <mem>-10723 [005] 282.801194: mm_pagereclaim_shrinkzone: reclaimed=7528
: -----------------------------------------------------------------------------
This diagnosis was successful because the "reclaimed" number was weird.
By sheer happy coincidence, page-reclaim is already generating the
aggregated numbers for us, and the tracer just prints it out.
If some other problem is being worked on and if there _isn't_ some
convenient already-present aggregated result for the tracer to print,
the problem won't be solved. Unless a vast number of trace events are
emitted and problem-specific userspace code is written to aggregate
them into something which the developer can use.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists