From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754213AbcBBJdT (ORCPT ); Tue, 2 Feb 2016 04:33:19 -0500 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:48562 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753861AbcBBJdQ (ORCPT ); Tue, 2 Feb 2016 04:33:16 -0500 X-IBM-Helo: d23dlp02.au.ibm.com X-IBM-MailFrom: srikar@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Date: Tue, 2 Feb 2016 15:02:07 +0530 From: Srikar Dronamraju To: Mel Gorman Cc: Peter Zijlstra , Ingo Molnar , Matt Fleming , Mike Galbraith , LKML , "Naveen N. Rao" Subject: Re: [PATCH 1/1] sched: Make schedstats a runtime tunable that is disabled by default v3 Message-ID: <20160202093207.GA9494@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <1454319426-2658-1-git-send-email-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1454319426-2658-1-git-send-email-mgorman@techsingularity.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16020209-1618-0000-0000-000003A0E874 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dont we need changes for sched_info_on()? If we disable schedstats dynamically but CONFIG_TASK_DELAY_ACCT is not set, then sched_info_on will return true, This could impact guest steal time stats as well as data read from /proc//schedstat Also when schedstats is dynamically disabled, and user tries to enable kernel sleep profiling profile_setup(), the kernel may not be able to do the right profiling since enqueue_sleeper() may not get called. Should we alert the user saying kernel sleep profiling is disabled? -- Thanks and Regards Srikar Dronamraju