Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2871250pxk; Sun, 4 Oct 2020 15:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGiakACg1e5UYYGdyhUcZRDYIY8abfn9N+icLapCBBmGXVsSipxU+p0BjF38Zt+WDxU1Ut X-Received: by 2002:a05:6402:6d3:: with SMTP id n19mr13846619edy.381.1601851586754; Sun, 04 Oct 2020 15:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601851586; cv=none; d=google.com; s=arc-20160816; b=co4EaHoz6uxeiyNgZbFBttLGOIwQhWXyWocqQVlcxXVA88xB3rV5+G4hnA109mlq0Q qd0XjIYThm/JY2xYJ0+y23SpDIfc1Eo7tncyoA7MGHU/lANjScWnkNR/FAFoFg92fh7H BplEdMHX3QXDwzAeQHg2csGymnrA3G31EXMaTx1SyxBhwkZcL4u1SXn4aFrmMwRQpRrf RMgbAvFIzb19EEnVJUq2RU6SbonkFvZpB3xMzqoFBMpala5XHXCP+4JLLqqfTYpQtAA9 C4B8wFEhUDQ4zevH5KzAMGCWewW4T0FyFekjEj7cS/ojCOweRTJ78Pmt+p6wJKdUX7dV 48Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=MpkvmcH+NMYBNiip1vkhzzK7SIVasXcwMqx27x1ZuUc=; b=ccFrjZ1vR/TaLxKFuyFz1ebf4/yx59StKsjpO34/K6zbVMk7suoIkFklMa30YOzvBz ng6cr/KWUMyocr3Fin6dQDTp2x7JK4JbxNGrjnfq2P6ebHPgC0EmmqbgeJQxaVKWtt0T fh7lK0Rq3gWoPc6Xo7WTLoY1uwS/JZ/Bhxrj1hq0qZi+YjhgIqmkDQtLg94y0NCRStnv 1l21ysZSK0cNfLILx7uTudvfRDCDMjdWuWV2UZO44G/r8M+/MYp1QZdA2qDSib7cTS4U GiTq+XSJyY5zvlBnFtxNGco4NsSuqbE4d09ymf/+4KkNioxE6JCFTxUgQwZQCKScyyOx hkzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi11si5699608ejb.741.2020.10.04.15.45.53; Sun, 04 Oct 2020 15:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725839AbgJDWje (ORCPT + 99 others); Sun, 4 Oct 2020 18:39:34 -0400 Received: from mga18.intel.com ([134.134.136.126]:13159 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbgJDWjd (ORCPT ); Sun, 4 Oct 2020 18:39:33 -0400 IronPort-SDR: SaEnvdh5J+/0xgbR1oxc/acjtT9mfH7ru0W6GC38RXzZu4HZQN14t+rorYOyIeygUz3vBo0zsO U62FBjjLVMLQ== X-IronPort-AV: E=McAfee;i="6000,8403,9764"; a="151093825" X-IronPort-AV: E=Sophos;i="5.77,336,1596524400"; d="scan'208";a="151093825" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2020 15:39:32 -0700 IronPort-SDR: q3N0KWptmMBcYAecsPXECP1Z4ZDmXJi37nBwbx/BkW4gf0Or8YeP6Xa1ov6+tjLnyHAOdApOTB E1YUS/ouD1XQ== X-IronPort-AV: E=Sophos;i="5.77,336,1596524400"; d="scan'208";a="522137154" Received: from avahldie-mobl.amr.corp.intel.com (HELO localhost) ([10.249.32.74]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2020 15:39:24 -0700 Date: Mon, 5 Oct 2020 01:39:21 +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: <20201004223921.GA48517@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. /Jarkko