Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932266AbbHGOa5 (ORCPT ); Fri, 7 Aug 2015 10:30:57 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:33582 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030196AbbHGOaP (ORCPT ); Fri, 7 Aug 2015 10:30:15 -0400 Date: Fri, 7 Aug 2015 16:30:12 +0200 From: Michal Hocko To: PINTU KUMAR 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 Message-ID: <20150807143012.GG30785@dhcp22.suse.cz> References: <1438931334-25894-1-git-send-email-pintu.k@samsung.com> <20150807074422.GE26566@dhcp22.suse.cz> <0f2101d0d10f$594e4240$0beac6c0$@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f2101d0d10f$594e4240$0beac6c0$@samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1924 Lines: 53 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 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/