Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1798168ybb; Thu, 26 Mar 2020 07:32:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuxInamwags943HuRTbEV2QgU4JdJNkrDu8l9Fo0zQO2/zn1HGcNZjtd64+MoUQOCVFCs9o X-Received: by 2002:a9d:654c:: with SMTP id q12mr5907395otl.305.1585233163644; Thu, 26 Mar 2020 07:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585233163; cv=none; d=google.com; s=arc-20160816; b=pJKgsZg1cPJ8aCPZP7JF/i2LBgY1x7YzFCcQXg3VgOn4/LhFKPJ8DINH2kGU+Xgz7N /lecCvJoZEWrD2jZzJasml9q+lEoRxhdrkP2V+6eNJbNJ4nhpGTFJo0p0GfQUwS1zWCw Jir+vjP7wCt2Ptk3duvGXLmfzgxTHSD0eKs3is3LXRfOAsSAml88xTdZEv0a1Nt4gqo5 krTYhZd7eysV95fR8vVYkzAWaGIbXmcyeIyyFQJGXTpn3Bjzc5AMbbqtlHaHaiZzDg6H 8VlDUaQMMX5gk+S0NNzLsiYMlXZ4c7hMwocwOYHlEGYG/jmpBk99mYdjUi9N6RAbeCEU mYLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OG09KzA4HuO3BOZQKOUcZGEc5bHon2VHvRmMFTk+/XA=; b=aXo38E17NBgSiaswQE1w61BMzgNg3oS9f2OxUnaMilA1eV34LGRDGpizUBd+HpPwqW fVIe3l6hY1RKWxyWMCKv+VcFnPF5JmiLHpXwN6xfE9758VIAu4YPotGWO5AxDg4NE9o8 L5EeL2G+E8ru/XKg/bFsx5lp1hDPG/sMzh79CSXyBXpuDak2nE9xecMrOcccFB8sut/m WZyUbOGKyN5axB21NRVBflU8hrE9TBrBb2AJ4okaWrdPlPXjdRlupb8ucE3DcdMEwsn+ 9IjghJrddtz0v9oRSHpYhmdDFS7kawzRIr46NL4IHdmaLRj3ib0/iHwP9uK+cofPiNFL utGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=qoWgKMmx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si1213651otk.80.2020.03.26.07.32.30; Thu, 26 Mar 2020 07:32:43 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=qoWgKMmx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728041AbgCZObH (ORCPT + 99 others); Thu, 26 Mar 2020 10:31:07 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36801 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbgCZObH (ORCPT ); Thu, 26 Mar 2020 10:31:07 -0400 Received: by mail-qk1-f196.google.com with SMTP id d11so6596432qko.3 for ; Thu, 26 Mar 2020 07:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OG09KzA4HuO3BOZQKOUcZGEc5bHon2VHvRmMFTk+/XA=; b=qoWgKMmxmpHam08hoCe/t+7K2pObYsUEj4WceDC2aYtZWU8vi2g/tN8slLtc3BxjBQ pGuuz/h4e4WdyEA4STkS2V20DKT0odYewLHs/KD6Swj+Hjz0EopvGoPjguT9OiHImxgz JSNQ4UfzFQLnDG8g0kaJ5JiI+DQgHfZDhV/C+QIVkyHBN6j/fCiN8tQFb1Gn0RXjPl/s p1XAl2850NR2WnH+fot1vcN8DkLnIB+aYxYnPX3B9cFQ4/gwFx4nH2GYGeguWFdMTR17 yhUPE6GdTz0DDJly8bhRXzbabDbpiPZ9fctxKFzaD0nWYgvZ8wshtAgHBcC/gFOmLc3k wXPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OG09KzA4HuO3BOZQKOUcZGEc5bHon2VHvRmMFTk+/XA=; b=LE1g7rfoVrZE+Osjdmir9rGE3LR5OKSm5wCsFfonBfILwZW6bXKuxkRLFRsQd+RmNf FwNdFpIaYCl+D/OehdIjjz4yWIBUWMuUpyFRXL0qariqc6H+RyJlgoISIPZXljUM59/y WRBAzgKs+yDm9v/P0i6/r+UjbQdfPWvBdHGylJSCtXe2zH43MA50ULuCJHkTxULCdo0Y VLSYQWDr/IWEA/gl++O6n8TW+/S9K/kTSfDjicaBGWnkdsT49+jA305KBF0Xrs8pjSkI gCZHcfJPRmDR6RWEGF3conmZH0j2g3yK+UwMsSP8z5IpSnG2FbTLSapycrMluD4k4Xlu SLiQ== X-Gm-Message-State: ANhLgQ1eKGGVeydjkuLAJt3s1+nRTFogt7Pri3pLsDJ/J7heYngrpm9Y tWN1OTp+H2GIG/Covzpl5tw3CA== X-Received: by 2002:a05:620a:529:: with SMTP id h9mr8463342qkh.142.1585233065063; Thu, 26 Mar 2020 07:31:05 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:a9a9]) by smtp.gmail.com with ESMTPSA id l60sm1700051qtd.35.2020.03.26.07.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 07:31:04 -0700 (PDT) Date: Thu, 26 Mar 2020 10:31:02 -0400 From: Johannes Weiner To: Yafang Shao Cc: peterz@infradead.org, akpm@linux-foundation.org, mhocko@kernel.org, axboe@kernel.dk, mgorman@suse.de, rostedt@goodmis.org, mingo@redhat.com, linux-mm@kvack.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] psi: enhance psi with the help of ebpf Message-ID: <20200326143102.GB342070@cmpxchg.org> References: <1585221127-11458-1-git-send-email-laoar.shao@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585221127-11458-1-git-send-email-laoar.shao@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 07:12:05AM -0400, Yafang Shao wrote: > PSI gives us a powerful way to anaylze memory pressure issue, but we can > make it more powerful with the help of tracepoint, kprobe, ebpf and etc. > Especially with ebpf we can flexiblely get more details of the memory > pressure. > > In orderc to achieve this goal, a new parameter is added into > psi_memstall_{enter, leave}, which indicates the specific type of a > memstall. There're totally ten memstalls by now, > MEMSTALL_KSWAPD > MEMSTALL_RECLAIM_DIRECT > MEMSTALL_RECLAIM_MEMCG > MEMSTALL_RECLAIM_HIGH > MEMSTALL_KCOMPACTD > MEMSTALL_COMPACT > MEMSTALL_WORKINGSET_REFAULT > MEMSTALL_WORKINGSET_THRASHING > MEMSTALL_MEMDELAY > MEMSTALL_SWAPIO What does this provide over the events tracked in /proc/vmstats? Can you elaborate a bit how you are using this information? It's not quite clear to me from the example in patch #2.