Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1793354ybk; Mon, 11 May 2020 04:31:46 -0700 (PDT) X-Google-Smtp-Source: APiQypIwCczdnL3iBFnmwJgAu/idZOFfnDtvpRtXw4IwT94uRI10DZWaIEkYl0GfvJeUWTO0Mw4X X-Received: by 2002:a17:907:7210:: with SMTP id dr16mr12628563ejc.197.1589196706170; Mon, 11 May 2020 04:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589196706; cv=none; d=google.com; s=arc-20160816; b=yG6JvXRxRe15VAvMeOk1RgNEU+UGXJXoUCGhks7MJk2oYwX+UT7R6iu6tA8+9/Vkmj Di2AnCXRSB+CwlROGb/PEqLhKh9kMO1U/5DtbGBsNXl25qocoGQbE7qUYzSzlQWoGfr7 ubdrElKkHKAoNW/bsIQgkqhRNhPG5+CvfaJXr+rzXab/0x7XeSOuIIIt/fZW2fH+8LlW O453sIkT9qkc+yBYpjbjHdE2gPRRe+mwKkEauKal6J0jpot/QZgQUAU5PgvDTvyp+kud KBPA75IDFmlyp9NPiCti3m7dsS+Ufxqo20z2/kK8wYys9H3/aZ/QGea6/IOsWKK82bAv vljQ== 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; bh=6s913c52qXog287G0uRKNKSekm/u+OcHV1ByehHSyNs=; b=BF/B4WLFUNqAuj7pSaHHccDF83JFv/nXLG2l4PLS6B2pK60vCUUh6udLfl1fpcf59A C0HKoni1dc5cllGl81tfUZtUvJEIJsuM9Z9wVrs+Wn5BNZrrKmojxmuIO0zNHhpjKuYD +s2ReEvrdbyDPO1yv9tf243q3RMwuBf3A2UCzIhPOwO2L1qlTxM6nzsmfv2CXJy97gcE HyGrYkmdOhgwrzUbWcwlqIZvNtRWUyCY5sOd+ys3vv/5O4amarh4dr4PbbSeC9lnzTsw 48PPmHU6QGtzdr+Un95EqNBrwm1+N8BHqUA8xsjHcW78r6WcUrWQ05dhltDiYH/do8Mp HUEg== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt4si6043703ejb.447.2020.05.11.04.31.23; Mon, 11 May 2020 04:31:46 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729989AbgEKL1K (ORCPT + 99 others); Mon, 11 May 2020 07:27:10 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39953 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgEKL1I (ORCPT ); Mon, 11 May 2020 07:27:08 -0400 Received: from mail-ej1-f69.google.com ([209.85.218.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jY6aP-0005ZQ-El for linux-kernel@vger.kernel.org; Mon, 11 May 2020 11:27:05 +0000 Received: by mail-ej1-f69.google.com with SMTP id cb22so3747266ejb.12 for ; Mon, 11 May 2020 04:27:05 -0700 (PDT) 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=6s913c52qXog287G0uRKNKSekm/u+OcHV1ByehHSyNs=; b=rwVPt9VGk2LHgJmQ3Hifkm3M896BLggv7ABT5e1qbw4/Q4PuDgLzRB3i8Unz7woY0r Vpmiwt+T0g5P6cm486uNaPpLRXZeaox9KfyBPnREYLhAv10DMvGBRG4YRrW/x8OJD5M8 FzU/+DA3Wo8hR0X6L4gLaznthuVtwinDfpVNc3J6vJubPPyEFcA5eYacl3GKWn3gRvb0 RRDQNf8355fKizK2bSJspbWq3/C9myj2LMff5W7UhDQEB7rESSaEd+GqB+tjePGRF4uP 7XchhKbf4COn20wbtr/4S5R8KAtCYlZob3T6gi+DSj6jHPR5mGDPrHF1Y4YrWIPSoJuL PS5Q== X-Gm-Message-State: AGi0PuZrrB4IbDQ8yySVnSJddGzKbVNyLMfx2jSvNNNZI+Oh/aEnkdLw MRNMvpCB4wdKgjP3/FTqBwLPsycMXZO6/uRLLA3rDmF7bTl/EOYJykJ6EdQ71r0XrKwMrvvvc7j IzvHiFxS9EILoR7gxviTid7dZtdqCoplnOy/dywKlCzWQVjBw6/SX68y0cQ== X-Received: by 2002:a17:906:e098:: with SMTP id gh24mr13250455ejb.44.1589196425147; Mon, 11 May 2020 04:27:05 -0700 (PDT) X-Received: by 2002:a17:906:e098:: with SMTP id gh24mr13250440ejb.44.1589196424851; Mon, 11 May 2020 04:27:04 -0700 (PDT) MIME-Version: 1.0 References: <20200507215946.22589-1-gpiccoli@canonical.com> <20200507160438.ed336a1e00c23c6863d75ae5@linux-foundation.org> In-Reply-To: From: Guilherme Piccoli Date: Mon, 11 May 2020 08:26:28 -0300 Message-ID: Subject: Re: [PATCH] mm, compaction: Indicate when compaction is manually triggered by sysctl To: David Rientjes Cc: "Guilherme G. Piccoli" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Gavin Guo , Mel Gorman 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 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