Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp734588ybl; Fri, 10 Jan 2020 05:57:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzvIEexeX81Hm6pTr4W6NxrzYDFXgHFP7m4egy7HomdPfekqbnj0M0me6Xf+tVk+yyv01ld X-Received: by 2002:a9d:67c1:: with SMTP id c1mr2816673otn.161.1578664655483; Fri, 10 Jan 2020 05:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578664655; cv=none; d=google.com; s=arc-20160816; b=qhBfgEDr5mmKgA5GErSXm3LaLoxXzzptAAi+MpyTZJFrRfQVL/nBb1JMqxIUI4iSAQ 8Fa8rUN9P8NMkGxpTck1oCmWwZKuSXVAPJOLGH1APrmmDxEyITybzG+nDgdnZkWoM0Cy EMszeRy58G+yW1HKo+l32N3wT48nXX1pOaFoyqYrxC0zAS1tvaGSRS4FAu1fdJYW4Du4 s23tYrMHBrRzyJ9stvmmXmrInzfz1LjuEgDOmhjK8ij9FLOcz6z47SCFdj0ogEBVO4rK gj3ezII93yrzbU50mIcgoWTOmdh1mHNcbvd7/+PGtiRKgRRbnHGvzhqnbYijKD8dafPM c+xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XDFh81v50T65CqGR12jZtTBrz00AMNxO6f5LHG6APQY=; b=w/ykBUiVR74ejFnTQDRKyc+Zml5c1n3VbIEIQZ8WolKy3HNhL3RX9GHiZFFwTENevf zTpNbar+leea6PqaaNE6v9N2qKPoi17j6r5PNycpLy55iEYaETXs7F9EaclFuvp9ohJU +8EhV81uEwFodLuj5KGEZVD6oR+9n7xMYe2Qdv5f+W5Ye5aCmvXlAXZO2jP1s/9/infC JH/meq8EQtRGH5qPdxc4RQajiwzLq/T2rGIQnCWbALi3MKOnBm5XnZKpEO5grDuKmgOV FopNgbjITXrxW3A6cnC0Zp07tTQa/C9ZaVflA28ibn+VKnM7Gat39fYU++HwQD/b1HZT tjFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=AV133+fO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si1744102otr.219.2020.01.10.05.57.22; Fri, 10 Jan 2020 05:57:35 -0800 (PST) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=AV133+fO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727935AbgAJN4S (ORCPT + 99 others); Fri, 10 Jan 2020 08:56:18 -0500 Received: from merlin.infradead.org ([205.233.59.134]:40456 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727784AbgAJN4S (ORCPT ); Fri, 10 Jan 2020 08:56:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XDFh81v50T65CqGR12jZtTBrz00AMNxO6f5LHG6APQY=; b=AV133+fOtlsjPiO6C9hIJ9hDD EUyWULs+/urgMHe3Wi3caTqSGZhPV2RHcdmrh2MXTplQlTtaZcLAFni3OGU7AiTZLFGOFP+yYUTkE t39L/UdAD0TGkxrt2xJHPHWhQCqjC0gflRaTpE66ttWZh/Cc2SePUemOLMCYWB/07+UNcT1jfuFhv kbR9U3EFdfgah0oTX4eeXISyusibuK98vKEZd8S/PWZHPXtOh/aRMkKNoWhBT51PJYQXjajFI972S 0LVIyqbukpjq1zf5y1KOaKJO8VDQhsXCOYHbqvATltnld2yOsR4NILpu5zP8H2zvfdAlYo1AhKB+h ldkrLGFHQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipulR-0003mo-Qz; Fri, 10 Jan 2020 13:55:50 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5C76130018B; Fri, 10 Jan 2020 14:54:13 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 530AF2B612603; Fri, 10 Jan 2020 14:55:47 +0100 (CET) Date: Fri, 10 Jan 2020 14:55:47 +0100 From: Peter Zijlstra To: Johannes Weiner Cc: Wang Long , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/psi: create /proc/pressure and /proc/pressure/{io|memory|cpu} only when psi enabled Message-ID: <20200110135547.GN2844@hirez.programming.kicks-ass.net> References: <1576672698-32504-1-git-send-email-w@laoqinren.net> <20200108135526.GH2844@hirez.programming.kicks-ass.net> <20200109153002.GA8547@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109153002.GA8547@cmpxchg.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 10:30:02AM -0500, Johannes Weiner wrote: > On Wed, Jan 08, 2020 at 02:55:26PM +0100, Peter Zijlstra wrote: > > On Wed, Dec 18, 2019 at 08:38:18PM +0800, Wang Long wrote: > > > when CONFIG_PSI_DEFAULT_DISABLED set to N or the command line set psi=0, > > > I think we should not create /proc/pressure and > > > /proc/pressure/{io|memory|cpu}. > > > > > > In the future, user maybe determine whether the psi feature is enabled by > > > checking the existence of the /proc/pressure dir or > > > /proc/pressure/{io|memory|cpu} files. > > > > Works for me; Johannes? > > Seems reasonable, and the patch looks good to me. > > Acked-by: Johannes Weiner Thanks!