Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1744735ybc; Wed, 13 Nov 2019 03:44:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxb6iXHmVRK8e1GH7FrGheahMdJjHBnsbiq4UwhchpS7ujYD6LACr2Leb3YCryHrH2xcUwr X-Received: by 2002:a50:eb8b:: with SMTP id y11mr3047394edr.242.1573645443449; Wed, 13 Nov 2019 03:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573645443; cv=none; d=google.com; s=arc-20160816; b=Nfj1ljnfJ1TZBs7ue4kN7doMH3f9fFhHQalwEcp2rJQDnjW9dr4FnfdevKGzO0qlLW zkmKtmJPgerZKnQIDp1fo39l4fBMfeK0Cw4VkF0ULLG7MZlnul48LogcmUUaHuWJRe6H kdfBeX5wVg/BhW5TTrAeiEIMgDPLhBVGnTdC+xFVVxnJMcDxAlrBAXtXjkB39omr6f7/ 9nYJPcut44MrwOLYCtcj/2ghC1AF165zAHRDCdUxm5lfMM2nVa+FkaIQ+wc4Hhwf3xVt GWuCLyLFXahwwxzEvMnLcLRGMHi2ullRVAtX6dL68XQtcjbcEsGLe02m/teCzEGc6pbz mVjA== 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; bh=0/7Nviy33zYydCHv3+pHX4xq2fpFnNR54nTmMka9iws=; b=d97l+wwj0y/qHFzCsQSneKK0XveiTmim9YtQjhKnDHZD4jjnL7fh+2S4eiLzkPq0Bu tJ7SmviJ48Qdt0Qm98YOg8ic5EuhXA0u3s4LrV1i83U+yRtbQlmOmc2LdpX/1vN2xwUP akgSyIoF7L5xWe8HZ8TFVd+ErKHrsw1RIAO0vvPwqJzN0zGNUFKf2wqA1TLFs9C5c9OP yCM0fw/Pa8yYR2pri6ONHNclRVzeWdYpPmHXvBpsdO8Yzpq7oitV5NXdRJa1KIDM3Gor YJKaayJqifTim998QAbh7kHwuDKCYvLHb96Fv3aoxZW1y1j0U+b//rihRZ2GDonpJwzq myBA== 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 g26si954748edv.109.2019.11.13.03.43.38; Wed, 13 Nov 2019 03:44:03 -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; 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 S1727772AbfKMLkv (ORCPT + 99 others); Wed, 13 Nov 2019 06:40:51 -0500 Received: from outbound-smtp37.blacknight.com ([46.22.139.220]:50527 "EHLO outbound-smtp37.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727693AbfKMLkv (ORCPT ); Wed, 13 Nov 2019 06:40:51 -0500 Received: from mail.blacknight.com (unknown [81.17.254.26]) by outbound-smtp37.blacknight.com (Postfix) with ESMTPS id 99946A3F for ; Wed, 13 Nov 2019 11:40:48 +0000 (GMT) Received: (qmail 2036 invoked from network); 13 Nov 2019 11:40:48 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.18.57]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 13 Nov 2019 11:40:48 -0000 Date: Wed, 13 Nov 2019 11:40:46 +0000 From: Mel Gorman To: Alex Shi Cc: Matthew Wilcox , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, yang.shi@linux.alibaba.com, Johannes Weiner , Roman Gushchin , Shakeel Butt , Chris Down , Thomas Gleixner Subject: Re: [PATCH v2 6/8] mm/lru: remove rcu_read_lock to fix performance regression Message-ID: <20191113114045.GZ3016@techsingularity.net> References: <1573567588-47048-1-git-send-email-alex.shi@linux.alibaba.com> <1573567588-47048-7-git-send-email-alex.shi@linux.alibaba.com> <20191112143844.GB7934@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: 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 Wed, Nov 13, 2019 at 10:40:58AM +0800, Alex Shi wrote: > > > ?? 2019/11/12 ????10:38, Matthew Wilcox ????: > > On Tue, Nov 12, 2019 at 10:06:26PM +0800, Alex Shi wrote: > >> Intel 0day report there are performance regression on this patchset. > >> The detailed info points to rcu_read_lock + PROVE_LOCKING which causes > >> queued_spin_lock_slowpath waiting too long time to get lock. > >> Remove rcu_read_lock is safe here since we had a spinlock hold. > > Argh. You have not sent these patches in a properly reviewable form! > > I wasted all that time reviewing the earlier patch in this series only to > > find out that you changed it here. FIX THE PATCH, don't send a fix-patch > > on top of it! > > > > Hi Matthew, > > Very sorry for your time! The main reasons I use a separate patch since a, Intel 0day asking me to credit their are founding, and I don't know how to give a clearly/elegant explanation for a non-exist regression in a fixed patch. b, this regression is kindly pretty tricky. Maybe it's better saying thanks in version change log of cover-letter? > Add something like this to the patch [lkp@intel.com: Fix RCU-related regression reported by LKP robot] Signed-off-by: Alex Shi ... -- Mel Gorman SUSE Labs