Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2423711imm; Wed, 3 Oct 2018 03:44:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV63JBkeKmqcgo00xwQDtfKLwQtfzOYvJuQol8fQ9S6Ew9zH0C9+K6lZ0y5rwtMgNt4r3BZa/ X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr995508plk.316.1538563479725; Wed, 03 Oct 2018 03:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538563479; cv=none; d=google.com; s=arc-20160816; b=ziDB01+726JnllSxIRJXHhOvW9Ukx30X9cp2Sn9yBH94AlewwzmoRLb5tuWc/QbMYE Oox+uelLbFOUJdfz/7ktpH1Yx6a3Qe/wmhYKyElXHXsVkF9zRB/YnMOiwKD3TDKU4b9b XtSQEZAIw98M4kppd8M98rtDXtEHBOaFlqzYHr4Ss/CjIGNoQVvFjuAWMYe6I8GYNj3w cTY5mXH47YJctY7hbbwk/n94CIp9B5Rq+c5XK/oiuA1A0Gz7zDo0Cyedk4wiefvPEhkg 7qv7m3WwCvVS653GsOVtz7LjbytxLuqzc3djsDV1I8OOzc5kg8X0szCv6VSAXWywJV6t qHiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=v1QorAtkFwUO1l5OMcgjqxs4NmOfzZ9w1B6qm7UfKXo=; b=c1f/7VjURmTTgGyYe3LzZYlzbpX3Gt97BxdK8487cGO5foVJp/R/Lqc+1e/H8xS+En o/buc7D6RVAYqpiJx7po1oJ6eUSe2BxNDbdJcsYCS94UAB/Jj7IKOa8SKWMW2pME5Irh MJYNqtE/RGAeJX/qHEeDsqpqnxT6znRqU3tQ5+TtDo/6aVm48iwKzh6uxUtmNWhoO0ob SSYtvh0DGElTjuKb5/59sGg7zGNiQunZkZDAglaRfy6VHRPIEfE2/vKHdOteikFKd5Zn wXTN3MYDA2/nJHkx+HuF7ZTC2yN2UJBYf2qVbzyl58ZQCVFhVQiMmPi9X9ciOEs4Lge5 P19A== ARC-Authentication-Results: i=1; mx.google.com; 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 m65-v6si1431240pfc.75.2018.10.03.03.44.24; Wed, 03 Oct 2018 03:44:39 -0700 (PDT) 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; 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 S1726755AbeJCRbw (ORCPT + 99 others); Wed, 3 Oct 2018 13:31:52 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:33432 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbeJCRbw (ORCPT ); Wed, 3 Oct 2018 13:31:52 -0400 Received: from p5492e4c1.dip0.t-ipconnect.de ([84.146.228.193] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g7edK-000274-2j; Wed, 03 Oct 2018 12:43:58 +0200 Date: Wed, 3 Oct 2018 12:43:57 +0200 (CEST) From: Thomas Gleixner To: Peter Zijlstra cc: Catalin Marinas , bigeasy@linutronix.de, Linux Kernel Mailing List , daniel.wagner@siemens.com, Will Deacon , x86@kernel.org, Linus Torvalds , "H. Peter Anvin" , boqun.feng@gmail.com, Paul McKenney Subject: Re: [Problem] Cache line starvation In-Reply-To: <20181003082842.GN26858@hirez.programming.kicks-ass.net> Message-ID: References: <20180921120226.6xjgr4oiho22ex75@linutronix.de> <20180921122058.GB24124@hirez.programming.kicks-ass.net> <20181003082842.GN26858@hirez.programming.kicks-ass.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Oct 2018, Peter Zijlstra wrote: > On Wed, Oct 03, 2018 at 10:07:05AM +0200, Thomas Gleixner wrote: > > On Wed, 3 Oct 2018, Catalin Marinas wrote: > > > > > On Fri, 21 Sep 2018 at 13:22, Peter Zijlstra wrote: > > > > On Fri, Sep 21, 2018 at 02:02:26PM +0200, Sebastian Andrzej Siewior wrote: > > > > > We reproducibly observe cache line starvation on a Core2Duo E6850 (2 > > > > > cores), a i5-6400 SKL (4 cores) and on a NXP LS2044A ARM Cortex-A72 (4 > > > > > cores). > > > Except that the ARM64 ticket locks are not preventing the starvation > > issue. Neither do the qrlocks on ARM64 on later kernels. > > That A72 is ARMv8-A afaict, that doesn't have the fancy LSE bits (which > are new in ARMv8.1) on and thus ends up using LL/SC. And LL/SC has > similar issues as cmpxchg loops. > > AFAICT Cortex-A75 is the first that has LSE on (that's an ARMv8.2-A). I know. That doesn't help though. We need a solution for the v8-A and the magic delay loop we have right now to work around it is more that disturbing. Thanks, tglx