Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2542269ybk; Mon, 18 May 2020 01:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCW9+GhcwZt3VBcAeNn298KZTK75GrMd1v8oR8WdX3w6en5yTTkAPQ++NWw4taQhnn7CxC X-Received: by 2002:a17:906:16c2:: with SMTP id t2mr14615732ejd.17.1589790824486; Mon, 18 May 2020 01:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589790824; cv=none; d=google.com; s=arc-20160816; b=MnJGEdp6NNPYBAeA4AL2JRpt4cAjZ5VLVbIkrWY5q6obnthN6ziiq1K15s6J8AMZBB JmGpWVQN6mLA7QMN3iblTWi7hmrSjV4j1Wjh1hEExGxrhP7fD0g89AvnHKOLmtsmryuz 09moo/4HkvgzsynSzwLtaemI66iV6bBzmdcPZZ3FBnWuOSaxflrPuU3ZEZsnpws12u9t DouqhQ7cywz5NAdCU4b7cdGsxauJC9ko901XnBwskmFUD1bcQY/7brpXuD+lq/wkaUKd QbXz4W6qpzPE/SJ6v+/BDMdlO0RKJd0DVhk94J7H+RH8vISdhmdcKfE14mIX0kO9oa9Q mArg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hpCm2vrDY1pMgMNusqX3GXVH9d16QUK2nT/xvBdRK5Y=; b=nzBC/naR33al6ETUjXwMXbsi7BFdF6/Mqg41MidzDhUOZsbL8xPuf5KntNC2Gb0buu 048uMujXpxd3hVOTxPwwenjxc5acpMZs+j9AAPBlJSJZNqc5E+qaLJvYk3Q4/BnhoIrj u17mZa5NvSxeIsLeePZhR5hhZCEliAUadADon1V6qCnivL/L34NfXpvQtlKy+036T/Sk r3Ppefr1t3xyBQsy/ISx/DGq/yNFZevo0Q/qk8QW9AT3njt7ssv3H2QLU/FtG1hl428v xIW3BNF+Hwr5+BeGVB3VZqINABsTV7bIjXWoemUZCD4TrWTIn+9XHrB4VtcoGBX59fbU xpLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sony.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si4869758edm.106.2020.05.18.01.33.21; Mon, 18 May 2020 01:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sony.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbgERHGT (ORCPT + 99 others); Mon, 18 May 2020 03:06:19 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:15995 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbgERHGR (ORCPT ); Mon, 18 May 2020 03:06:17 -0400 Subject: Re: [PATCH] mm, compaction: Indicate when compaction is manually triggered by sysctl To: Guilherme Piccoli , David Rientjes CC: "Guilherme G. Piccoli" , Andrew Morton , , , Gavin Guo , Mel Gorman References: <20200507215946.22589-1-gpiccoli@canonical.com> <20200507160438.ed336a1e00c23c6863d75ae5@linux-foundation.org> From: peter enderborg Message-ID: <6bf5e178-f2c8-f453-9035-93e31995bb53@sony.com> Date: Mon, 18 May 2020 09:06:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-GB X-SEG-SpamProfiler-Analysis: v=2.3 cv=Nc2YKFL4 c=1 sm=1 tr=0 a=kIrCkORFHx6JeP9rmF/Kww==:117 a=IkcTkHD0fZMA:10 a=sTwFKg_x9MkA:10 a=1XWaLZrsAAAA:8 a=-k7fE2aBq4CcJps1nlAA:9 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/20 1:26 PM, Guilherme Piccoli wrote: > On Sun, May 10, 2020 at 10:25 PM David Rientjes wrote: >> [...] >> The kernel log is not preferred for this (or drop_caches, really) because >> the amount of info can causing important information to be lost. We don't >> really gain anything by printing that someone manually triggered >> compaction; they could just write to the kernel log themselves if they >> really wanted to. The reverse is not true: we can't suppress your kernel >> message with this patch. >> >> Instead, a statsfs-like approach could be used to indicate when this has >> happened and there is no chance of losing events because it got scrolled >> off the kernel log. It has the added benefit of not requiring the entire >> log to be parsed for such events. > OK, agreed! Let's forget the kernel log. So, do you think the way to > go is the statsfs, not a zoneinfo stat, a per-node thing? I'm saying > that because kernel mm subsystem statistics seem pretty.."comfortable" > the way they are, in files like vmstat, zoneinfo, etc. Let me know > your thoughts on this, if I could work on that or should wait statsfs. > Thanks, > > > Guilherme I think a trace notification in compaction like kcompad_wake would be good.