Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp490840ybe; Fri, 6 Sep 2019 02:39:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcF2O+jfRJ/bIDz+W8EamrrzaxPqt/LPEJMiEGGvZLsDCRvgifJfp11PxKE0Dsclxvz8Ug X-Received: by 2002:a63:6f8f:: with SMTP id k137mr7153108pgc.90.1567762762447; Fri, 06 Sep 2019 02:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567762762; cv=none; d=google.com; s=arc-20160816; b=JH7y/pN6dUKF2LLzV2BTIPi2C+pCQZSszXEhIjj/M9/vmnYfphBpg4RplgiMQAjQt1 DaDWsirc5N33ZVS1WMSFL242qIUmMb4Lb2CWbZrGPToSbTdLXz5NNXAyiKiACYgF6Om9 VnfuMbrNQ1FyqBcfueiUzXRpcgbrKvHQqA8bXFX4uuzhLU2fuJ2TEfNq6nAD4PX/7mgY yJA4HMxxhtBIycKBu6lnl1MTh1NUerh1hKaccIdveZD3BOIdxozUAxnW4OQb94qwD6AL VUuzmkRCOveHbmjNPMg5EBpWSO++jgyJ5+/28z0FrdFFpoky3QSOaGELLWg7Q1ia/jpB AmtQ== 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=AZyI05VZYlOHLVGP1sjJJPUL4F2uFByEj+mt1HHpIS8=; b=fj+tq/d5TAPuLftbUYiXtiIqvyeCgtmAb3hsIh1NOIP3ZPTjp5cFFfehrjTfivIamp NZWvjZVJwR2PyWswgP1jk3mX+TdA506Ufdz2G2JxC1gFUwnOME8xhYYXUyF01c0b06Jq SOabYLbC08n4Kt52N4mktxWetJekhHEuQeOoUq1LttF2UDeE6Xs6c/zfeImRs0jdj2Jx zqtMWyAcIxY3G0wrdC2DnFAAaOBAsG8YGvKSPoblxTecCxGoaUBaQnl8S81FpM02+oQf hZNfwhM9RKjLlBUvFner9qMamzmE3fZOJjVXJ4y+vQ1Q2l4YJFuneVbIP6rWHszj9pkA qd3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dHJ3bLwn; 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 r38si4216892pgl.498.2019.09.06.02.39.05; Fri, 06 Sep 2019 02:39:22 -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=dHJ3bLwn; 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 S1730822AbfIEWv6 (ORCPT + 99 others); Thu, 5 Sep 2019 18:51:58 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:45379 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfIEWv6 (ORCPT ); Thu, 5 Sep 2019 18:51:58 -0400 Received: by mail-vk1-f196.google.com with SMTP id u192so863964vkb.12 for ; Thu, 05 Sep 2019 15:51:57 -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=AZyI05VZYlOHLVGP1sjJJPUL4F2uFByEj+mt1HHpIS8=; b=dHJ3bLwnjnryxwtM29ZQ7n1wQKxUzt0VnVdz/US7kDrOJCoxp9dTYJp68BCet8mdwc aKWlhNQDPhBFA4dTdsOXnXq6oBDXvuGfnccBVBsOwSWbKcJCSEQ0KEG4Cl18Zn3MJw4T M3jXGoB+KZgW9Ygf86B9mDCCodo4dHZ4J9KScwX2IR65+SpejSc2fNdXqZEGXa5sBXWm d0SHbcP04+Rk8IE53f2sXqpRWJ+b9LDGx0HAxhsTSHFBLvZWBJ/aZOVHuh45cWt5OzXL sDe6kKJr8DAppKrH02iuaMBeJsitIAMO1ioqZczD2lX08njHbtV9ZKXsDny7rN26cOUc Y0Qw== 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=AZyI05VZYlOHLVGP1sjJJPUL4F2uFByEj+mt1HHpIS8=; b=Y4NLhdTVYCgV8s401DS9eSVLM/9HsX0urSO6yEuNv7BY9j+kU72xHqflu15LP0Le5+ VsQgpBlPgpm5lMm8KR0MJL/c0LFYUI0XkwP2G99Hj+VzfmaxG/TsQnjHkgN6GTKeFPDE fk8O5lQbkOLyLjRVsmZ/AXPSoKuw6tdYaPqcqiv7LH2MN0oGS2wdkvyiWDKMlUG5wYQ0 t2MQEKKVSUrVMKPjNXLb598MK5GeS3KhUDqv1Ko23ufE5mvtp52bkMX87ZZeYiDOiXlN bbwHl8qFrGhrsTX4NPbWVvv/bSHwOSLXLnDifRpCH7fXL1djDQzmwaIAnW7G67f1nJr7 cpFg== X-Gm-Message-State: APjAAAWoq9bP5hedoDCWJ+f7rBTMNmr35M6mHx1J0gFBTSyQmsKyd/Je qGdfLp5tEwswoJmXKZvmH+ONBfK+aMH+o3H71y8+ng== X-Received: by 2002:a1f:c1c9:: with SMTP id r192mr2998246vkf.89.1567723916493; Thu, 05 Sep 2019 15:51:56 -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> <20190905174705.GA106117@google.com> <20190905175108.GB106117@google.com> <1567713403.16718.25.camel@kernel.org> <1567718076.16718.39.camel@kernel.org> In-Reply-To: From: Daniel Colascione Date: Thu, 5 Sep 2019 15:51:19 -0700 Message-ID: Subject: Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold To: Tom Zanussi Cc: Joel Fernandes , Steven Rostedt , Suren Baghdasaryan , Michal Hocko , LKML , Tim Murray , Carmen Jackson , Mayank Gupta , 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 3:12 PM Daniel Colascione wrote: > Basically, what I have in mind is this: Actually --- I wonder whether there's already enough power in the trigger mechanism to do this without any code changes to ftrace histograms themselves. I'm trying to think of the minimum additional kernel facility that we'd need to implement the scheme I described above, and it might be that we don't need to do anything at all except add the actual level tracepoints.