From: Michal Hocko <mhocko@kernel.org>
To: PINTU KUMAR <pintu.k@samsung.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, minchan@kernel.org, dave@stgolabs.net,
koct9i@gmail.com, mgorman@suse.de, vbabka@suse.cz,
js1304@gmail.com, hannes@cmpxchg.org,
alexander.h.duyck@redhat.com, sasha.levin@oracle.com,
cl@linux.com, fengguang.wu@intel.com, cpgs@samsung.com,
pintu_agarwal@yahoo.com, pintu.k@outlook.com,
vishnu.ps@samsung.com, rohit.kr@samsung.com
Subject: Re: [PATCH 1/1] mm: vmstat: introducing vm counter for slowpath
Date: Fri, 7 Aug 2015 16:30:12 +0200 [thread overview]
Message-ID: <20150807143012.GG30785@dhcp22.suse.cz> (raw)
In-Reply-To: <0f2101d0d10f$594e4240$0beac6c0$@samsung.com>
On Fri 07-08-15 18:16:47, PINTU KUMAR wrote:
[...]
> > On Fri 07-08-15 12:38:54, Pintu Kumar wrote:
> > > This patch add new counter slowpath_entered in /proc/vmstat to track
> > > how many times the system entered into slowpath after first allocation
> > > attempt is failed.
> >
> > This is too lowlevel to be exported in the regular user visible interface IMO.
> >
> I think its ok because I think this interface is for lowlevel debugging itself.
Yes but this might change in future implementations where the counter
might be misleading or even lacking any meaning. This is a user visible
interface which has to be maintained practically for ever. We have made
those mistakes in the past...
[...]
> This information is good for kernel developers.
Then make it a trace point and you can dump even more information. E.g.
timestamps, gfp_mask, order...
[...]
> Regarding trace points, I am not sure if we can attach counter to it.
You do not need to have a counter. You just watch for the tracepoint
while debugging your particular problem.
> Also trace may have more over-head
Tracepoints should be close to 0 overhead when disabled and certainly
not a performance killer during the debugging session.
> and requires additional configs to be enabled to debug.
This is to be expected for the debugging sessions. And I am pretty
sure that the static event tracepoints do not require anything really
excessive.
> Mostly these configs will not be enabled by default (at least in embedded, low
> memory device).
Are you sure? I thought that CONFIG_TRACING should be sufficient for
EVENT_TRACING but I am not familiar with this too deeply...
--
Michal Hocko
SUSE Labs
--
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-08-07 14:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-07 7:08 Pintu Kumar
2015-08-07 7:44 ` Michal Hocko
2015-08-07 12:46 ` PINTU KUMAR
2015-08-07 14:30 ` Michal Hocko [this message]
2015-08-07 22:35 ` Andrew Morton
2015-08-10 9:45 ` PINTU KUMAR
2015-08-11 10:55 ` Michal Hocko
2015-08-12 14:52 ` PINTU KUMAR
2015-08-13 9:07 ` Michal Hocko
2015-08-07 7:50 ` Sergey Senozhatsky
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=20150807143012.GG30785@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=alexander.h.duyck@redhat.com \
--cc=cl@linux.com \
--cc=cpgs@samsung.com \
--cc=dave@stgolabs.net \
--cc=fengguang.wu@intel.com \
--cc=hannes@cmpxchg.org \
--cc=js1304@gmail.com \
--cc=koct9i@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@suse.de \
--cc=minchan@kernel.org \
--cc=pintu.k@outlook.com \
--cc=pintu.k@samsung.com \
--cc=pintu_agarwal@yahoo.com \
--cc=rohit.kr@samsung.com \
--cc=sasha.levin@oracle.com \
--cc=vbabka@suse.cz \
--cc=vishnu.ps@samsung.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