From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugeni Dodonov Subject: Re: [MMTests] IO metadata on XFS Date: Tue, 3 Jul 2012 10:28:12 -0300 Message-ID: References: <20120620113252.GE4011@suse.de> <20120629111932.GA14154@suse.de> <20120629112505.GF14154@suse.de> <20120701235458.GM19223@dastard> <20120702063226.GA32151@infradead.org> <20120702143215.GS14154@suse.de> <20120702193516.GX14154@suse.de> <20120703001928.GV19223@dastard> <20120703105951.GB14154@suse.de> <20120703123119.GA5103@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303f6a1645b38304c3ece5f3 Cc: Daniel Vetter To: Mel Gorman , Dave Chinner , Christoph Hellwig , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com, dri-devel@lists.freedesktop.org, Keith Packard , Eugeni Dodonov , Chris Wilson Return-path: In-Reply-To: <20120703123119.GA5103@phenom.ffwll.local> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org --20cf303f6a1645b38304c3ece5f3 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 3, 2012 at 9:31 AM, Daniel Vetter wrote: > Well, presuming I understand things correctly the cpu die only goes into > the lowest sleep state (which iirc switches off l3 caches and > interconnects) when both the cpu and gpu are in the lowest sleep state. > rc6 is that deep-sleep state for the gpu, so without that enabled your > system won't go into these deep-sleep states. > > I guess the slight changes in wakeup latency, power consumption (cuts > about 10W on an idle desktop snb with resulting big effect on what turbo > boost can sustain for short amounts of time) and all the follow-on effects > are good enough to massively change timing-critical things. > The sad side effect is that the software has very little control over the RC6 entry and exit, the hardware enters and leaves RC6 state on its own when it detects that the GPU is idle beyond a threshold. Chances are that if you are not running any GPU workload, the GPU simple enters RC6 state and stays there. It is possible to observe the current state and also time spent in rc6 by looking at the /sys/kernel/debug/dri/0/i915_drpc_info file. One other effect of RC6 is that it also allows CPU to go into higher turbo modes as it has more watts to spend while GPU is idle, perhaps this is what causes the issue here? -- Eugeni Dodonov --20cf303f6a1645b38304c3ece5f3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Jul 3, 2012 at 9:31 AM, Daniel Vetter <da= niel@ffwll.ch> wrote:
Well, presuming I understand things= correctly the cpu die only goes into
the lowest sleep state (which iirc switches off l3 caches and
interconnects) when both the cpu and gpu are in the lowest sleep state.
rc6 is that deep-sleep state for the gpu, so without that enabled your
system won't go into these deep-sleep states.

I guess the slight changes in wakeup latency, power consumption (cuts
about 10W on an idle desktop snb with resulting big effect on what turbo boost can sustain for short amounts of time) and all the follow-on effects<= br> are good enough to massively change timing-critical things.

The sad side effect is that the software has very litt= le control over the RC6 entry and exit, the hardware enters and leaves RC6 = state on its own when it detects that the GPU is idle beyond a threshold.= =A0Chances are that if you are not running any GPU workload, the GPU simple= enters RC6 state and stays there.

It is possible to observe the current state and also ti= me spent in rc6 by looking at the=A0/sys/kernel/debug/dri/0/i915_drpc_info = file.

One other effect of RC6 is that it also allo= ws CPU to go into higher turbo modes as it has more watts to spend while GP= U is idle, perhaps this is what causes the issue here?

--
Eugeni Dodonov

--20cf303f6a1645b38304c3ece5f3-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q63DSsQC094030 for ; Tue, 3 Jul 2012 08:28:54 -0500 Received: from mail-gg0-f181.google.com (mail-gg0-f181.google.com [209.85.161.181]) by cuda.sgi.com with ESMTP id CbFMpro3DRWkKToA (version=TLSv1 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 03 Jul 2012 06:28:53 -0700 (PDT) Received: by ggnv5 with SMTP id v5so6890169ggn.26 for ; Tue, 03 Jul 2012 06:28:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120703123119.GA5103@phenom.ffwll.local> References: <20120620113252.GE4011@suse.de> <20120629111932.GA14154@suse.de> <20120629112505.GF14154@suse.de> <20120701235458.GM19223@dastard> <20120702063226.GA32151@infradead.org> <20120702143215.GS14154@suse.de> <20120702193516.GX14154@suse.de> <20120703001928.GV19223@dastard> <20120703105951.GB14154@suse.de> <20120703123119.GA5103@phenom.ffwll.local> From: Eugeni Dodonov Date: Tue, 3 Jul 2012 10:28:12 -0300 Message-ID: Subject: Re: [MMTests] IO metadata on XFS List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6366393116620387648==" Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Mel Gorman , Dave Chinner , Christoph Hellwig , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com, dri-devel@lists.freedesktop.org, Keith Packard , Eugeni Dodonov , Chris Wilson Cc: Daniel Vetter --===============6366393116620387648== Content-Type: multipart/alternative; boundary=20cf303f6a1645b38304c3ece5f3 --20cf303f6a1645b38304c3ece5f3 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 3, 2012 at 9:31 AM, Daniel Vetter wrote: > Well, presuming I understand things correctly the cpu die only goes into > the lowest sleep state (which iirc switches off l3 caches and > interconnects) when both the cpu and gpu are in the lowest sleep state. > rc6 is that deep-sleep state for the gpu, so without that enabled your > system won't go into these deep-sleep states. > > I guess the slight changes in wakeup latency, power consumption (cuts > about 10W on an idle desktop snb with resulting big effect on what turbo > boost can sustain for short amounts of time) and all the follow-on effects > are good enough to massively change timing-critical things. > The sad side effect is that the software has very little control over the RC6 entry and exit, the hardware enters and leaves RC6 state on its own when it detects that the GPU is idle beyond a threshold. Chances are that if you are not running any GPU workload, the GPU simple enters RC6 state and stays there. It is possible to observe the current state and also time spent in rc6 by looking at the /sys/kernel/debug/dri/0/i915_drpc_info file. One other effect of RC6 is that it also allows CPU to go into higher turbo modes as it has more watts to spend while GPU is idle, perhaps this is what causes the issue here? -- Eugeni Dodonov --20cf303f6a1645b38304c3ece5f3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Jul 3, 2012 at 9:31 AM, Daniel Vetter <da= niel@ffwll.ch> wrote:
Well, presuming I understand things= correctly the cpu die only goes into
the lowest sleep state (which iirc switches off l3 caches and
interconnects) when both the cpu and gpu are in the lowest sleep state.
rc6 is that deep-sleep state for the gpu, so without that enabled your
system won't go into these deep-sleep states.

I guess the slight changes in wakeup latency, power consumption (cuts
about 10W on an idle desktop snb with resulting big effect on what turbo boost can sustain for short amounts of time) and all the follow-on effects<= br> are good enough to massively change timing-critical things.

The sad side effect is that the software has very litt= le control over the RC6 entry and exit, the hardware enters and leaves RC6 = state on its own when it detects that the GPU is idle beyond a threshold.= =A0Chances are that if you are not running any GPU workload, the GPU simple= enters RC6 state and stays there.

It is possible to observe the current state and also ti= me spent in rc6 by looking at the=A0/sys/kernel/debug/dri/0/i915_drpc_info = file.

One other effect of RC6 is that it also allo= ws CPU to go into higher turbo modes as it has more watts to spend while GP= U is idle, perhaps this is what causes the issue here?

--
Eugeni Dodonov

--20cf303f6a1645b38304c3ece5f3-- --===============6366393116620387648== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs --===============6366393116620387648==--