Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp242448ybe; Tue, 3 Sep 2019 21:53:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmslmPgWIjbLoXMx/ZTPw7FlPnrCQ/nPjEHotvmCFPltjIKeHtXb21v4IwREUwfdiUKH9C X-Received: by 2002:a65:43c2:: with SMTP id n2mr33743686pgp.110.1567572810135; Tue, 03 Sep 2019 21:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567572810; cv=none; d=google.com; s=arc-20160816; b=H6ZYAsIN3pMM9Sf2Nb3NEohVOVR038ab/3YjiBTh9Xx5qp8XDSGBK9aYbBecYQunpe 6Sf483A+Aqa1NF4VKkgvLJPEJkAA4yJS//+acQ6vbo/BFEZoTmOaqOnXBkeSZUS+/JsQ qYa7+R5y8m2K16fCkHfKMVvQM4BK+xKJ1kWYumZBRX2KmguYrGhzwBxI94SKg9bIK2Qj Dw1om1Xz6yxUPgiiJKHjFbjZuf7HbKRxLXEZ+gQgV8vbdMPMlGvBo0SNs12Iw4Q2k+z8 UGGW8avVyz1Sfciv34eqDuUliTKfPnEsKgcjOYex8FxOrKf407h8oQ8HQyZn+oV0PHiK o0rA== 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=7g70nxojyvqUevqcEcO6mWCw0Mvt89bDYJhasa/z5qU=; b=emQHTD3ysHdSgiYzRQPvFQ+KzA/rhms/UNMT8doDReWFXpyLuJ7XxQGQq6vrF0NuUu ocRCb+l78UH82WjToO7UVO62IKHFRUazAby4CEC8keNcSgEJvs0mPXSs94LkrpFg85zD xZRoRNvbGPESGwE4hbjJLbVyQ2B/vjAmHV66EtLmSHZ2KRTVjYlB+tTOOk1u4Yf66RAP Fy0LmxkTT04xhKQgUsRSxcLBPytXss8Zl3wnmOKvnXlWkXN8tV/ShOxKnT8TDTiu6Bqv m7DtTkSVR8nVeM6WohgQZnLTT+56BRAT3ioJok/QErmUypchxbu9fBCeDVly0w/RRMrj kW3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hs+FLQG6; 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 a127si20526472pfa.151.2019.09.03.21.53.14; Tue, 03 Sep 2019 21:53:30 -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=hs+FLQG6; 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 S1727065AbfIDEv6 (ORCPT + 99 others); Wed, 4 Sep 2019 00:51:58 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42403 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfIDEv6 (ORCPT ); Wed, 4 Sep 2019 00:51:58 -0400 Received: by mail-ot1-f66.google.com with SMTP id c10so7954072otd.9 for ; Tue, 03 Sep 2019 21: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=7g70nxojyvqUevqcEcO6mWCw0Mvt89bDYJhasa/z5qU=; b=hs+FLQG6hGil7CYHLEApAe+DDoHHrAAtp1/JipuDuY8CocVM/VhO4r46fSAaxkUPwW jfgpF+yVf3J8Mf9YQ0ZAlPlOZ0A56ZAZ70qFOGRPTLphjJlwyfY+cSJp1zI6vTkgbXFx AfqWtOBJHOq+4Fh/kl3zIYgvG02nI+be3NSIuL6+YJKwXIZHCOkjru+yQFKbu4ASyL9c 5UQSHyY79bcthVT5/tI+YhyiHG3+QNotwCWQGyAfvXx0lCxjybk3f5IsNyINleiDZ7hE DHjNoewPDDBABrSPOJDev1gJlnWtk2e9s15h1hSlQ5FAow4I0vAeygMk/zyREM4CCJFX K9kw== 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=7g70nxojyvqUevqcEcO6mWCw0Mvt89bDYJhasa/z5qU=; b=MGqPj9ZEjZFTnYcXClm4mMaF6rMg+iZa6PzGX81hyMwIN8MDHVGGdo1So1lOKAyNHj faSxlutOw2QUl6dttJ9O2Tdpvn4lUVQOQ+H6s1IPvsu4AsA9wsRueqHw1gR2wLN3QJol a0qxuj3kDax4Eas1Oyv+pniSTwAK+6c9IUdXpKw6LItTpG+7JSoEtKesAY0BRbetV9Db 1jvMNdsAHoGX0ebMSrAESWRcLmJkEKMHaOvhfQb4m2Kb1jVoCwSU/ikt+9DxVAyIXokF bUxKU665e6btQhTfl5QwaLENgpYH50H5YYvLhht5gszYeuXTiRTUb/FwNhguZCJoxV3k ztrw== X-Gm-Message-State: APjAAAUi/gRcOUnBoY1WVRWVHrcdC+hjiZWi3qLWnCDgO5JqxK3rYLFi FPEtHh5ogIdaGy9SyiSh03npnpiS0wEQixT0homMSQ== X-Received: by 2002:a9d:7343:: with SMTP id l3mr31638937otk.268.1567572716918; Tue, 03 Sep 2019 21:51:56 -0700 (PDT) MIME-Version: 1.0 References: <20190903200905.198642-1-joel@joelfernandes.org> In-Reply-To: From: Daniel Colascione Date: Tue, 3 Sep 2019 21:51:20 -0700 Message-ID: Subject: Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold To: Suren Baghdasaryan Cc: "Joel Fernandes (Google)" , LKML , Tim Murray , Carmen Jackson , Mayank Gupta , Steven Rostedt , Minchan Kim , Andrew Morton , kernel-team , "Aneesh Kumar K.V" , Dan Williams , Jerome Glisse , linux-mm , Matthew Wilcox , Michal Hocko , 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 Tue, Sep 3, 2019 at 9:45 PM Suren Baghdasaryan wrote: > > On Tue, Sep 3, 2019 at 1:09 PM Joel Fernandes (Google) > wrote: > > > > Useful to track how RSS is changing per TGID to detect spikes in RSS and > > memory hogs. Several Android teams have been using this patch in various > > kernel trees for half a year now. Many reported to me it is really > > useful so I'm posting it upstream. It's also worth being able to turn off the per-task memory counter caching, otherwise you'll have two levels of batching before the counter gets updated, IIUC.