Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1390345ybn; Wed, 25 Sep 2019 17:37:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqylCcK6Qh8lu3h3wFp8nJ4dWu+C+RrENXevts6DE6UfB5W/DKmMKxgquPe9mRkRL697zAvV X-Received: by 2002:a17:906:5644:: with SMTP id v4mr853757ejr.52.1569458247859; Wed, 25 Sep 2019 17:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569458247; cv=none; d=google.com; s=arc-20160816; b=e+4cm8JJc+5e8Ow1CQkoqes9Wi/RneZloo4GTIbF+vuw7wus1htrLgxdsVLvX1lANz TvFmx/GghZupGOfmxlsGX/BeLgrgdm63yPOnT/DpC2yXucGeS63pPY9HypczldyQGlpl MSFPA+wivYWsxgMHLaB3WB8DMNE3tlKPgz1pa0iQ4kH0vus66yPMfzZC7r8b2A8bLvqg KIuyNTDmOvAHNwZfhuaWJUlvXomRSZbrgZJZYAf1YjApMbY0GD/TNsFqVqg1vFY/DWjE eQuH52KEnw52DbuXZPEgQEnUBoNfqen5HMR0NyjfRULqzV3BAS7DR/y0dNJuxamzpDZ3 4eoQ== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=1yypi58E3fTmbIYwdBg0EPyrPm9KDK9Ldl2AJ1fOlWk=; b=z6I8WOaDsH2RQ60zKhhoAVArxo2csVClQs4JtD4s1ZsbWhNCfaRRiPQwHkRSPBldoL SToWJabictr9CJ4dsskf8YVLiKpRyaI2O91mw4taH4KZ64ieTSYNDsoPNv9YkPQOpMRr wHxXa9zL7J6TE6Nb2gbpARQMZdGsMqBdAE0hKp1VmUv5ZKoYNEwPYoDDWFNKGz5gGElC ktukamYDuq4qyBC9M56SoV2e7/2dTwVpcNvDWwAGnTvSqca9GMxDqlES91EK7Wb+cJU0 BhcIpG9q5d1L+0x4Szjs+zp5Yfl+40GC7h0b4MNOAFFmyI2HwgS8M3O8h3+h0+HRluTT nahg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UeC4Jud0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si377044edq.49.2019.09.25.17.37.04; Wed, 25 Sep 2019 17:37:27 -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; dkim=pass header.i=@kernel.org header.s=default header.b=UeC4Jud0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391025AbfIWXtU (ORCPT + 99 others); Mon, 23 Sep 2019 19:49:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:40178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729276AbfIWXtU (ORCPT ); Mon, 23 Sep 2019 19:49:20 -0400 Received: from paulmck-ThinkPad-P72 (unknown [170.225.9.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96F8D21A4C; Mon, 23 Sep 2019 23:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569282559; bh=jL+W7CvZH4IgiJNH4Ta0EhwbKZYehXX/NJi8o1uDX1k=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=UeC4Jud0+mJMm5/0QRXUluKExkV2v4Bm5v3jzNKZ9VsWLHJzNJkLgrWRdKSERFccH 8oYzNCEwjAUNxdFdfT1TRHetfT/Jo2kgOTSq4CCw9PHx7lOo3OYcfgv0VhyOlEL546 wNPDBQXOMW5lCPjtrIITjD0QwQxNeORyEsBQ2H8A= Date: Mon, 23 Sep 2019 16:49:16 -0700 From: "Paul E. McKenney" To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, byungchul.park@lge.com, Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , rcu@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH v2 -rcu dev 0/5] kfree_rcu() additions for -rcu Message-ID: <20190923234916.GF7828@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20190830163633.104099-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830163633.104099-1-joel@joelfernandes.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 12:36:28PM -0400, Joel Fernandes (Google) wrote: > Hi, > > This is a series on top of the patch "rcu/tree: Add basic support for kfree_rcu() batching". > > It adds performance tests, some clean ups and removal of "lazy" RCU callbacks. > > Now that kfree_rcu() is handled separately from call_rcu(), we also get rid of > kfree "lazy" handling from tree RCU as suggested by Paul which will be unused. > > Based on patch: > Link: http://lore.kernel.org/r/20190814160411.58591-1-joel@joelfernandes.org > > > v1 series: > https://lkml.org/lkml/2019/8/27/1315 > https://lore.kernel.org/patchwork/project/lkml/list/?series=408218 > > Joel Fernandes (Google) (5): > rcu/rcuperf: Add kfree_rcu() performance Tests > rcu/tree: Add multiple in-flight batches of kfree_rcu work > rcu/tree: Add support for debug_objects debugging for kfree_rcu() > rcu: Remove kfree_rcu() special casing and lazy handling > rcu: Remove kfree_call_rcu_nobatch() Hello, Joel, I have reworked these as we discussed. Please see below for a preliminary series on -rcu. I say "preliminary" because most (if not all) of my patchlets should be merged with one or another of yours. I split them out to make it easier for you to review my changes. Also, I need to swap your first two commits, if I am not mistaken -- they are switched for ease of testing. Thoughts? Thanx, Paul ------------------------------------------------------------------------ b2674c7 rcuperf: Add kfree_rcu() performance Tests ff8db00 rcu: Make batched kfree_rcu() work during early boot 0784b59 rcu: Add crude self-test for early boot kfree_rcu() 196c1d9 rcu: Kick kfree_rcu() state machine for early boot calls 52a10e8 rcu: Use docbook header comment for struct kfree_rcu_cpu 099f53b rcu: Rework comments, indentation, and line breaks for kfree_rcu() 7ab6387 rcu EXP: Non-atomic ->monitor_todo, step 1 4a908098 rcu EXP: Non-atomic ->monitor_todo, step 2 783f00d rcu EXP: Non-atomic ->monitor_todo, step 3 4fe2018 rcu EXP: Non-atomic ->monitor_todo, step 4 b389141 rcu EXP: Non-atomic ->monitor_todo, step 5 8889da8 rcu EXP: Non-atomic ->monitor_todo, step 6 149b93e rcu EXP: Non-atomic ->monitor_todo, step 7 733e6a7 rcu: Add multiple in-flight batches of kfree_rcu() work 3acdea0 rcu: Add support for debug_objects debugging for kfree_rcu() 463db53 rcu: Remove kfree_rcu() special casing and lazy-callback handling 49e601b rcu: Remove kfree_call_rcu_nobatch()