From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F3E7C41604 for ; Wed, 7 Oct 2020 17:47:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B37E121707 for ; Wed, 7 Oct 2020 17:47:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B37E121707 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C4B236B005C; Wed, 7 Oct 2020 13:47:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BFC576B0062; Wed, 7 Oct 2020 13:47:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AEA4A6B0068; Wed, 7 Oct 2020 13:47:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0057.hostedemail.com [216.40.44.57]) by kanga.kvack.org (Postfix) with ESMTP id 823376B005C for ; Wed, 7 Oct 2020 13:47:26 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0BEB68249980 for ; Wed, 7 Oct 2020 17:47:26 +0000 (UTC) X-FDA: 77345861292.07.books99_330dc87271d1 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id E66CD1803F9A4 for ; Wed, 7 Oct 2020 17:47:25 +0000 (UTC) X-HE-Tag: books99_330dc87271d1 X-Filterd-Recvd-Size: 4397 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Wed, 7 Oct 2020 17:47:22 +0000 (UTC) IronPort-SDR: mTBdSz0nVqL0P92AUYIFPBP8O3MM26T/KTPIcDVns5MOd/p9Lyv4Vvr9UObcTNvztjtZZZpgdo MJ1F+gPMHnSA== X-IronPort-AV: E=McAfee;i="6000,8403,9767"; a="164260176" X-IronPort-AV: E=Sophos;i="5.77,347,1596524400"; d="scan'208";a="164260176" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2020 10:26:08 -0700 IronPort-SDR: YQKUNORNy8VrI5cpc8I3z1JS+pfk6A7ydbG3DSW5FaMtMCcLFgcmFOJsE8Kjnmudm1WFnYtFQl 7N5jQsYVh2cQ== X-IronPort-AV: E=Sophos;i="5.77,347,1596524400"; d="scan'208";a="461416722" Received: from dumser-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.51.100]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2020 10:25:55 -0700 Date: Wed, 7 Oct 2020 20:25:51 +0300 From: Jarkko Sakkinen To: Haitao Huang Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jethro Beekman , Jordan Hand , Nathaniel McCallum , Chunyang Hui , Seth Moore , Sean Christopherson , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, bp@alien8.de, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com, mikko.ylinen@intel.com, willy@infradead.org Subject: Re: [PATCH v39 16/24] x86/sgx: Add a page reclaimer Message-ID: <20201007172551.GA4792@linux.intel.com> References: <20201003045059.665934-1-jarkko.sakkinen@linux.intel.com> <20201003045059.665934-17-jarkko.sakkinen@linux.intel.com> <20201003133245.GA6074@linux.intel.com> <20201004223921.GA48517@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201004223921.GA48517@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Oct 05, 2020 at 01:39:21AM +0300, Jarkko Sakkinen wrote: > On Sat, Oct 03, 2020 at 01:23:49PM -0500, Haitao Huang wrote: > > On Sat, 03 Oct 2020 08:32:45 -0500, Jarkko Sakkinen > > wrote: > > > > > On Sat, Oct 03, 2020 at 12:22:47AM -0500, Haitao Huang wrote: > > > > When I turn on CONFIG_PROVE_LOCKING, kernel reports following > > > > suspicious RCU > > > > usages. Not sure if it is an issue. Just reporting here: > > > > > > I'm glad to hear that my tip helped you to get us the data. > > > > > > This does not look like an issue in the page reclaimer, which was not > > > obvious for me before. That's a good thing. I was really worried about > > > that because it has been very stable for a long period now. The last > > > bug fix for the reclaimer was done in June in v31 version of the patch > > > set and after that it has been unchanged (except possibly some renames > > > requested by Boris). > > > > > > I wildly guess I have a bad usage pattern for xarray. I migrated to it > > > in v36, and it is entirely possible that I've misused it. It was the > > > first time that I ever used it. Before xarray we had radix_tree but > > > based Matthew Wilcox feedback I did a migration to xarray. > > > > > > What I'd ask you to do next is to, if by any means possible, to try to > > > run the same test with v35 so we can verify this. That one still has > > > the radix tree. > > > > > > > > > v35 does not cause any such warning messages from kernel > > Thank you. Looks like Matthew already located the issue, a fix will > land soon. Just acknowledging that this should be fixed in my master branch now. /Jarkko