Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9791907ybc; Sat, 30 Nov 2019 14:36:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwvB07Mc+c9TT/I/r1SdnU79PIGygp1W5SEHKJb3ESjJt3OSKeBbLZ3haqhGj9jJ/bXQD5q X-Received: by 2002:a50:fb0b:: with SMTP id d11mr30867026edq.252.1575153417313; Sat, 30 Nov 2019 14:36:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575153417; cv=none; d=google.com; s=arc-20160816; b=Ub6utITSHbFNT+O8iueCqSdgptUyDJEG1B+1zqmBHGIZq+OHR+S5+kIElS327P8ONk WdbffH31VlQnNU+ZCqDL3HLg7DvZgEqUXR3+KXqjCRG+9au5CsNsT2h7NlM1nFeo/RIu Re4NHlatGPrKTkNJfp+aw4rzfNefAShL9F2H/O4D8WHF6a3m7FI3clHKkW1z894O2tCS +BoxuY94Ch1WGV7UnO707JXRFRvgBuo4DbLmihX49g+nIZirN8dhTfsBzlkVrfCmtF7p ff4SvLSKCrPa5FeDdzVLZjz5JGbCFQ2IRXDMV0TqOzfpQpcI5fK8fiqCuriBV7zIyXgD gs8A== 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:dkim-signature; bh=+HwDNVPZTmEV8LgEuhD+8L70Dw2SKe0RDGV9XU0Auto=; b=pAotXv8QcXMMZQ3mRMgA1FtAl1056gRcpH5fuv77pTclsvfxKIs7FQYG9EB/5f1FfJ u1WVnSX+dYYmIscd53ViggLkj30rLRfFbVn5lEk1ggcNhJiTvHK16UatWGYT23NV3bGp nJwg+e2tWZnkPx1TTrnHRg6JafELXeovBrZwhoMFVgzpbbdyUoIIVXCOUpurR3PyJ8yi gZEsA8aWjlLbk/8R7chS99Hv+65gbYdJUxZ2YdZoI4LJz3VJnE1EVVgt+1+uhDUL5DYp EOlqBikGhpvpiZgw/sCyomhxUmJ53Wjl3gnVW2+5RMclc8ODCUiDXYOT0GOdiC5C76fW roEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NIqeYba3; 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 me11si16180295ejb.386.2019.11.30.14.36.33; Sat, 30 Nov 2019 14:36:57 -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=pass header.i=@linux-foundation.org header.s=google header.b=NIqeYba3; 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 S1727312AbfK3Wf1 (ORCPT + 99 others); Sat, 30 Nov 2019 17:35:27 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36323 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727179AbfK3Wf1 (ORCPT ); Sat, 30 Nov 2019 17:35:27 -0500 Received: by mail-lj1-f196.google.com with SMTP id r19so1868913ljg.3 for ; Sat, 30 Nov 2019 14:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+HwDNVPZTmEV8LgEuhD+8L70Dw2SKe0RDGV9XU0Auto=; b=NIqeYba352diDcQ/nZ2p84c2Y3Th8G+TmbLbdMGiHk3/iV+fDjGuaNMCi/cp63v2Yt xUU6wFlfmalk/xTPl1imj9jtCDOo2K5b87cxBUKJIGko/GtNq68bwEM5jGD7OWNJmzBc TGW2Z8GIGHbmD/LDqcBgQagMMNVy3vFP/rs8I= 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=+HwDNVPZTmEV8LgEuhD+8L70Dw2SKe0RDGV9XU0Auto=; b=QTXeEBVdtyCDe0btrWZ5wpEIxjbktKi/+DmCpVgvEQt4GkEqDSgPhYAgbMpkBVu1hq oGxP72FT6ElYlxTCsKh8H61DDcmnRVefpULwte+gNQRf19Nty6/vcP6EsaHpmY66lANF Bp6K/fKESZG4pBmOhtCNbf0wAHTk1G1CvE6WO9hRHnQoPZs80R0F+Mvd+TwiorVbAmas 7XMhrujbPzKytBYSZetjg0gibem+YNI/0C1c5AfMvfHChiqW0TGwYS2lWGkAsVmumEyR 6xl6eNYKFLizqT3rcpyw3iQ0bIlPFDCPDIR11RQSuLPVjVShf3lX3hAofi6c22sxESV4 TCpA== X-Gm-Message-State: APjAAAU+0fI6qD2tJcXOMWc6sXL62Qv6NgWyR7OtmMIQr/Ti1qzlS05j EYGivCsxFlHj8+CoEivwtD04EPP0fPw= X-Received: by 2002:a2e:9549:: with SMTP id t9mr5111004ljh.148.1575153324379; Sat, 30 Nov 2019 14:35:24 -0800 (PST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id v28sm7661272lfd.93.2019.11.30.14.35.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Nov 2019 14:35:23 -0800 (PST) Received: by mail-lj1-f169.google.com with SMTP id e10so26462787ljj.6 for ; Sat, 30 Nov 2019 14:35:22 -0800 (PST) X-Received: by 2002:a2e:86c4:: with SMTP id n4mr27824654ljj.97.1575153322708; Sat, 30 Nov 2019 14:35:22 -0800 (PST) MIME-Version: 1.0 References: <20191127005312.GD20422@shao2-debian> <20191130212729.ykxstm5kj2p5ir6q@linux-p48b> In-Reply-To: From: Linus Torvalds Date: Sat, 30 Nov 2019 14:35:06 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [x86/mm/pat] 8d04a5f97a: phoronix-test-suite.glmark2.0.score -23.7% regression To: mceier@gmail.com Cc: Davidlohr Bueso , kernel test robot , Ingo Molnar , Davidlohr Bueso , Thomas Gleixner , Peter Zijlstra , Borislav Petkov , LKML , lkp@lists.01.org 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 Sat, Nov 30, 2019 at 2:09 PM Mariusz Ceier wrote: > > Contents of /sys/kernel/debug/x86/pat_memtype_list on master > (32ef9553635ab1236c33951a8bd9b5af1c3b1646) where performance is > degraded: Diff between good and bad case: @@ -1,8 +1,8 @@ PAT memtype list: write-back @ 0x55ba4000-0x55ba5000 write-back @ 0x5e88c000-0x5e8b5000 -write-back @ 0x5e8b4000-0x5e8b8000 write-back @ 0x5e8b4000-0x5e8b5000 +write-back @ 0x5e8b4000-0x5e8b8000 write-back @ 0x5e8b7000-0x5e8bb000 write-back @ 0x5e8ba000-0x5e8bc000 write-back @ 0x5e8bb000-0x5e8be000 @@ -21,15 +21,15 @@ uncached-minus @ 0xec260000-0xec264000 uncached-minus @ 0xec300000-0xec320000 uncached-minus @ 0xec326000-0xec327000 -uncached-minus @ 0xf0000000-0xf0001000 uncached-minus @ 0xf0000000-0xf8000000 +uncached-minus @ 0xf0000000-0xf0001000 uncached-minus @ 0xfdc43000-0xfdc44000 uncached-minus @ 0xfe000000-0xfe001000 uncached-minus @ 0xfed00000-0xfed01000 uncached-minus @ 0xfed10000-0xfed16000 uncached-minus @ 0xfed90000-0xfed91000 -write-combining @ 0x2000000000-0x2100000000 -write-combining @ 0x2000000000-0x2100000000 +uncached-minus @ 0x2000000000-0x2100000000 +uncached-minus @ 0x2000000000-0x2100000000 uncached-minus @ 0x2100000000-0x2100001000 uncached-minus @ 0x2100001000-0x2100002000 uncached-minus @ 0x2ffff10000-0x2ffff20000 the first two differences are just trivial ordering differences for overlapping ranges (starting at 0x5e8b4000 and 0xf0000000) respectively. But the final difference is a real difference where it used to be WC, and is now UC-: -write-combining @ 0x2000000000-0x2100000000 -write-combining @ 0x2000000000-0x2100000000 +uncached-minus @ 0x2000000000-0x2100000000 +uncached-minus @ 0x2000000000-0x2100000000 which certainly could easily explain the huge performance degradation. Linus