Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp133133ybe; Thu, 5 Sep 2019 18:58:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqziPlcQQ0WVGaMVxlTVWfB8/9wDcIT06vouJnZY+lV+Q74XB8YQ8BvQaquNF1sMmYQT0r+v X-Received: by 2002:a17:902:9347:: with SMTP id g7mr6935444plp.0.1567735130605; Thu, 05 Sep 2019 18:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567735130; cv=none; d=google.com; s=arc-20160816; b=B8KG5JTgERobRLV0jrroFjcaWPa8y3HsuobKY/smHOqlgbvrCgGmyTiukIanEMJq+4 WQ1L0OdQsClkuWPMqcCb+bJsZ/ae21kBfAmRBFaDURzqvsGcLn35uoq+7aZUDVzvXgdG lgZGFsXo9+KPNJaW0HdNfrBXy2RHKm9G5cCbi19EOuUJykGFEObiFnDBO2rsw2SCGWZj 608/LtUZRp+YLTU+D/+xdVvxamky2q9lEgU29I8xqFWrwo6PPp2aI/w4NlBu2f28WF2G /vYqlYzb2zvb0xiva48oUqQlUxAHk4Wc7H6P0hh7d1K1/xC1pbExRymtw2ebcrZRojCT 691Q== 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=oHaIgZ+QyOTSQuPWv07Wdi8uuPiW8MfzbAABFbSnd3w=; b=Z++DXemCObDBg2Jgf2uyI3qjqq+llJU3ukNe4L2D9S/zsZmjXtNCqo8cYR/RU2cr1i s6Amj2ZN3mtRAUiR0Jvk7w6ioQxj60KrdjcHB/Vx/H6hEVQkEw1YOW/zFo5o2CVx60F4 uN67Jo77L6C4kO00oFNaBSVHiR8obZLb7cEu3RpgMoyBd9jZcJONvW/m1ighgXJOBD62 MIIDdImm+yv3iC/V3V7O3JYIgYeVo86hs5LwNZHlGJacLSeStrqaf0gYgTt1kn3p2z5N ozPRUkmvbzAuuStnm42oL8ixRF2FXV4k4N073J1/yYsvYSe1wmxCYbXRRL5wslJxij8Y 20Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HIC37gy1; 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 b5si3257845pgi.324.2019.09.05.18.58.31; Thu, 05 Sep 2019 18:58:50 -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=HIC37gy1; 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 S2387867AbfIERjy (ORCPT + 99 others); Thu, 5 Sep 2019 13:39:54 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39058 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727950AbfIERjx (ORCPT ); Thu, 5 Sep 2019 13:39:53 -0400 Received: by mail-wm1-f67.google.com with SMTP id q12so4080136wmj.4 for ; Thu, 05 Sep 2019 10:39:52 -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=oHaIgZ+QyOTSQuPWv07Wdi8uuPiW8MfzbAABFbSnd3w=; b=HIC37gy16K0TPOUajtDzmEc5zZSn8ifcV0CdwZEt2UG2lAt1BDvAx2vslZsVJVs9ch YE3q79onfyftOBvNiJ9wSZLbRYg01lgsdj6JvQGP/bxsVqTC9DgPtE1RXmYViynnQBPd 9xjzb5Z/rxvZdep6cgKBDS3876jQQz6xqTsOe7jbcPYdBcM9AIJJlAYnZHBGUw4MuX5K XwgHXQORth3+vMh0B5gQC5bopaOCzM/zRdRHfwLv2eGgYxixfNVWXCpgjyBBFaWA3OO2 r0eSUbfDeZ6k8biG/IbGzkfPisoVtsFqk0+RazXoRzClIidmdbfFzSMZe5joiGjIa9KV x2ng== 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=oHaIgZ+QyOTSQuPWv07Wdi8uuPiW8MfzbAABFbSnd3w=; b=HS5YcuouJwy3oStyssYnyRs2VoL/faX+FWpmt0ASglXiAdH+PRettcJBIh9EPlzCPq TPrqKwNNYhY8kQADpbnMvi2WfrThvQinrUANDL5cV2ZDgdrx7Q5VL39ma6lpVKNh7hXD Q72PXh/2evxJeHMDELyGEqSeYqE0FEEHZnB3qLc18N/eoWEPhxO5S+6R/d2MMavAxz3x 8l0wUG7597d5A/UcjraTxW9YTkHR9Iv36eAQhkIEzbRECU+AQMO2oygXq36j+UuBjRQ0 45kTTBqianlAH5Eo58Z/NLCiLZLuCXIqGFxkgmaezJ+KUR/xC8hHFm1vxYvJANFllDPl LNhQ== X-Gm-Message-State: APjAAAVMJHF6jNg496craEsEFeH8cpSKuLH5+uFZCtisPTgELMktU6vy wZNwhIxuNDzjIvFbOvp08pOm+xv6nX7wnTFMtjds8w== X-Received: by 2002:a1c:f417:: with SMTP id z23mr1878827wma.77.1567705191475; Thu, 05 Sep 2019 10:39:51 -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> <20190905133507.783c6c61@oasis.local.home> In-Reply-To: <20190905133507.783c6c61@oasis.local.home> From: Suren Baghdasaryan Date: Thu, 5 Sep 2019 10:39:40 -0700 Message-ID: Subject: Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold To: Steven Rostedt Cc: Michal Hocko , Joel Fernandes , 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 , Tom Zanussi 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 10:35 AM Steven Rostedt wrote: > > > > [ Added Tom ] > > On Thu, 5 Sep 2019 09:03:01 -0700 > Suren Baghdasaryan wrote: > > > 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? > > You mean like add a trigger (or filter) that only traces if a field has > changed since the last time the trace was hit? Almost... I mean emit a trace if a field has changed by more than X amount since the last time the trace was hit. > Hmm, I think we could > possibly do that. Perhaps even now with histogram triggers? > > -- Steve > > -- > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >