Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1327072ybe; Thu, 5 Sep 2019 13:51:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1p/l6Ro5zwwYQQjNmuuWGjCq+TgW66g9wUwMvHRaSKpfRiGi9dl6nHuJyHVZTpFKrpcRN X-Received: by 2002:a62:4d45:: with SMTP id a66mr2922318pfb.24.1567716660418; Thu, 05 Sep 2019 13:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567716660; cv=none; d=google.com; s=arc-20160816; b=dRhD8NMvJRkUuUcmOFmXAoimEgBaqdt+ogu8RGvBNGsFKtl35+e/gc/X6bT1G++9OI TqaT81P+zTjTSbp+9SAnadlgDc3idhyOrPDb2RPy1p3K42+86PYa6/oYcur4WMMv6GRE 7nsPspEnutB6wVBaOU9Zk3GjXGBIZUIAXuMehl4e0XIrAQ4Pn8jgI0PSIwDpJDHyYgUo 4m5qaF7U9bUZx/JyzN/uCbqjT5DHdBOz3Glyx+e+lk0zyc0zMgC0MRJxMuMgbmdxoK+G d2jQQu1cv8g+EGj7WU5m3RkmhBBzSXTBoYsVeyVFw9AOMi8h1TExQ6b3vzKGpDkDexj6 K+rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xF5g9IO6jKnafhVzgDApXP2oM7DXnYkebnFH9y77eNE=; b=qFbvSQTfucdd53BXEKtOfnf5GMOiXh7E46ujbx8wyltjM0dwhIOeKVpgipcfdTnudC r/5S0Y5ycdzr8SheytivjmaY9KgB5jzAdoLJ/2o5XnVvY2BGx6I5tizdKj07efrL1YAz qxBMXHa3JidV4FYJd3eBKnLw0bFpmwOW9N64qrv9wQ1+Q1bydqXfNL3vHuex+XX9IjA4 kotmSKo8+kHAtQWvJpbo+fL4Hxv6Mf/04uvEIFI6p1ObqjF4YeWldPjKlssj1sh/Lccz QH0heczv5Q3TYtJ19yzIZsovOenipg+eaIqbLS7cic4Sa74FD2iuNBwjPbFPXfoXfcWQ C/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=r9T1e6uW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si2678653pgy.230.2019.09.05.13.50.44; Thu, 05 Sep 2019 13:51:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=r9T1e6uW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389548AbfIEQDQ (ORCPT + 99 others); Thu, 5 Sep 2019 12:03:16 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38507 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389438AbfIEQDP (ORCPT ); Thu, 5 Sep 2019 12:03:15 -0400 Received: by mail-wm1-f68.google.com with SMTP id o184so3720970wme.3 for ; Thu, 05 Sep 2019 09:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xF5g9IO6jKnafhVzgDApXP2oM7DXnYkebnFH9y77eNE=; b=r9T1e6uWz1LE6nNNk8y0oqPRvd8zqa6gn7QDLNHiVCUH7vRly5jrqlmsPYtj9d1RKh v+3Esb1sjsGDRbND9GSNtycU3df7f7+1pEUYlkfnYh0Jripc/KwYnbfhlIbm982nC3Ev 2R2yYm0BVRvJXOf4wvIf14T24AJ2P3aOei3lsX+3+tlRBZmQcprOacmv1tzWkgf6TGI3 q6O9UGIv/4XF2K0O7xQ/SPUUjkipL3j/KcdRxrl9iSxEV8W5Do6YyDRK04T4DkGCS74o LimaWvMf0JtIOwj+brZ5XGVf7/gtJiq29j+6LA8fFMx8/NtiwAzun7s4pSONcQ1DkLWl pJZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xF5g9IO6jKnafhVzgDApXP2oM7DXnYkebnFH9y77eNE=; b=D/4icUv9TkbLKmuTrZeLn5AvbK/IFqgqsm7u30eLxsFeMK1bZA71GRLcgleRPAE+Bi 6PAdaLYaYZradwu40dq54GlF8rrp6iknJ3wDIfy9+fKcKNx1h5mDuiLc2B+OgzyCpOTX rjdx4NNKPvajFrXQ15XEU9Sm3sSoyLe5gTSf+6ol+bSE8aNo54R3c0Zz2ZbgeZshuDnY eXjM+3DOclITBT1TSP0usPOpqLmu4JUyLU0o16HXjYai2lxzpQLR7OiM1m1uzTavhkYG FpfosrW2BOSSlL2XTkfOOZdCQHbmdgcxNWH54bIxh7T+WYI4KcdUmwmOYqD1LjzBuHK8 Rf5A== X-Gm-Message-State: APjAAAXCtQsqQHZU62LYz/KzGmJ2eqVYom9CiBvtkxDNAQhxvpxKSfec VJjnJlFoOubqJq3Xe5VLSAcUPLcyp7PSM8qZdnvs8Q== X-Received: by 2002:a1c:cfc9:: with SMTP id f192mr3378872wmg.85.1567699392897; Thu, 05 Sep 2019 09:03:12 -0700 (PDT) MIME-Version: 1.0 References: <20190903200905.198642-1-joel@joelfernandes.org> <20190904084508.GL3838@dhcp22.suse.cz> <20190904153258.GH240514@google.com> <20190904153759.GC3838@dhcp22.suse.cz> <20190904162808.GO240514@google.com> <20190905144310.GA14491@dhcp22.suse.cz> In-Reply-To: <20190905144310.GA14491@dhcp22.suse.cz> From: Suren Baghdasaryan Date: Thu, 5 Sep 2019 09:03:01 -0700 Message-ID: Subject: Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold To: Michal Hocko Cc: Joel Fernandes , Steven Rostedt , LKML , Tim Murray , Carmen Jackson , Mayank Gupta , Daniel Colascione , Minchan Kim , Andrew Morton , kernel-team , "Aneesh Kumar K.V" , Dan Williams , Jerome Glisse , linux-mm , Matthew Wilcox , Ralph Campbell , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 5, 2019 at 7:43 AM Michal Hocko wrote: > > [Add Steven] > > On Wed 04-09-19 12:28:08, Joel Fernandes wrote: > > On Wed, Sep 4, 2019 at 11:38 AM Michal Hocko wrote: > > > > > > On Wed 04-09-19 11:32:58, Joel Fernandes wrote: > [...] > > > > but also for reducing > > > > tracing noise. Flooding the traces makes it less useful for long traces and > > > > post-processing of traces. IOW, the overhead reduction is a bonus. > > > > > > This is not really anything special for this tracepoint though. > > > Basically any tracepoint in a hot path is in the same situation and I do > > > not see a point why each of them should really invent its own way to > > > throttle. Maybe there is some way to do that in the tracing subsystem > > > directly. > > > > I am not sure if there is a way to do this easily. Add to that, the fact that > > you still have to call into trace events. Why call into it at all, if you can > > filter in advance and have a sane filtering default? > > > > The bigger improvement with the threshold is the number of trace records are > > almost halved by using a threshold. The number of records went from 4.6K to > > 2.6K. > > Steven, would it be feasible to add a generic tracepoint throttling? I might misunderstand this but is the issue here actually throttling of the sheer number of trace records or tracing large enough changes to RSS that user might care about? Small changes happen all the time but we are likely not interested in those. Surely we could postprocess the traces to extract changes large enough to be interesting but why capture uninteresting information in the first place? IOW the throttling here should be based not on the time between traces but on the amount of change of the traced signal. Maybe a generic facility like that would be a good idea? > -- > Michal Hocko > SUSE Labs > > -- > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >