Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp963603ybe; Wed, 4 Sep 2019 10:19:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzw2AcNi5tKWUlRIEuxkDbdTXe44dBqfdHIpUIunkq4KnFe1dlfFTjnEpLqcnUV6Ev6CAUc X-Received: by 2002:a17:902:6687:: with SMTP id e7mr42548760plk.211.1567617563503; Wed, 04 Sep 2019 10:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567617563; cv=none; d=google.com; s=arc-20160816; b=DZqtONb6dxWpTEtk9rBq8xrX9048jj8Dyj0EQPhH28NCD4xz/46bKwucTU5xNII2+x Ewz4KjBKyw5gvAEdLUonynGUSLWVaCi6kAZbpDoCGmvxkJjNcZZQyLanBzJ1heFwsa9d yIURfzn965VxC97ynbqD6xVwtpZ5IuqpikkRDxtd7nA8WY5eubm3DtMkgufUHkZLxsje nyO0odzqWTgaA7Zb2ihRmtv17qqOSSnxtjHyIAfFo4EbDql59GnskYm1ftspXBBlsoLp hLwO57ijpUsVyIy4hdzD2dy8SDY8iAc1lj7SgZSou5f3uxfmncRHPQ0q9ZS9a1FQUIhp O5Hg== 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=fWAo+cPvJp3pRuv/EjTjzujk+3Lx4B3tuClNVfFzxqE=; b=ucEjyxXixyLiIK/AHYJUfOCmMw6x0+kgrbQXekVYSTDs7NN+J93/k8hrEYY0io8fj/ MLIrkWXeXfH0WzwAqB75SXczorE5xKZ10a7CHrczUI6c5en9EgbtJ9LwEx1F13vWva2e BVYKPNJZK2x5BaaWYBPR9pfSmhLrbaa78V0K1wNybCNVaFEoQxpU4aVpxokeHKmcbLhE 5nm4Wog2syu4m0BYvyfHDeIpx/QDWI5QyKvwNMz+vXOd5cabTwQt6SYdliWotS6wMN9a qoSNsJMkFjlPlJk03dHE0L6vT7kwH9kVBq3NVJefPjSP3Zbb9ZmG9d9it1S3cgHhQuGr 5wWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Rlc1qhvZ; 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 n16si20890172pff.23.2019.09.04.10.19.06; Wed, 04 Sep 2019 10:19:23 -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=Rlc1qhvZ; 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 S1731570AbfIDRSN (ORCPT + 99 others); Wed, 4 Sep 2019 13:18:13 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40417 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730317AbfIDRSM (ORCPT ); Wed, 4 Sep 2019 13:18:12 -0400 Received: by mail-ot1-f66.google.com with SMTP id y39so11348334ota.7 for ; Wed, 04 Sep 2019 10:18:12 -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=fWAo+cPvJp3pRuv/EjTjzujk+3Lx4B3tuClNVfFzxqE=; b=Rlc1qhvZ/ZQZfeXisjWKvvbzrb0mPj0GtsVSCztE1V6gBxbgVkBtlwBpQfC2Ws0iBt j4bJSkCe2TVLeJe5NK/C6H5I6WMPrjn2HB/p4HGS4lLapqisnUcpYcsHcOvLEXufOiOS /Rxvb97yf7u2LLniuekAdg3DDYKhLMQQEx4l4CR7VYkoEEETOko7EYgS9GpF9q0C/2r2 dvVVNg9ufoLzzbx/qnE1LgO1GRYro3b/T25vZuduFuyj1S3ATJ9kKptK/TWQwnUUnEId EIySB20LH9efVW3/EMHOaxC/bSdaLLY2mfjzFeoqVQWPb5Tyj8/Q733yJqVbiiK1ODNC HxmA== 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=fWAo+cPvJp3pRuv/EjTjzujk+3Lx4B3tuClNVfFzxqE=; b=UnrrnY/Kn1GmM2ESqh0JcAfkbUX57+8jxSzNpW893vr0wi9r7q868bJWnhcQNOJoa1 4F2X0WnKxIZq191qURCYf81J8zKQmjOzXyqiClCru9n7Vmo1aPxiP6DTokH7kIP6Hy7a uFEI1MiGk5ZnF4B05fGYzCrIpI9Ele9k0GISOoHiFFO0fNN6YmiUMJggk9bCe8SEgwye O/z3fK4XUbiZEFPzZjDm+Kg8c8he/pzyJcXtaO6UyTwRw4y9EDpQcfQ0Y8O1uUZYQo6h 2ufODeQbYhtY6o/8FPZgNsdKyvwJJi62gNlhhkdRQvjxHZE06oGhvVTzXnQsniMtZFO0 USIA== X-Gm-Message-State: APjAAAUEQldszyC+ZunmrtSb/x0KKpXvfqWhPfu869mR+bcwJjMvg+SK +qGCKSZHkpK92oTY78zmRaAI3jcD70KOVArSXlONMw== X-Received: by 2002:a9d:30c2:: with SMTP id r2mr17813816otg.186.1567617491603; Wed, 04 Sep 2019 10:18:11 -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> In-Reply-To: <20190904153759.GC3838@dhcp22.suse.cz> From: Daniel Colascione Date: Wed, 4 Sep 2019 10:17:33 -0700 Message-ID: Subject: Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold To: Michal Hocko Cc: Joel Fernandes , linux-kernel , Tim Murray , Carmen Jackson , Mayank Gupta , Steven Rostedt , Minchan Kim , Andrew Morton , Android 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 Wed, Sep 4, 2019 at 8:38 AM Michal Hocko 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 agree. I'd rather not special-case RSS in this way, especially not with a hardcoded aggregation and thresholding configuration. It should be possible to handle high-frequency trace data point aggregation in a general way. Why shouldn't we be able to get a time series for, say, dirty pages? Or various slab counts? IMHO, any counter on the system ought to be observable in a uniform way.