Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1034854ybb; Wed, 1 Apr 2020 14:26:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKb1Qu9LnDP9eeUISnj3gLPWAUZaiqb6Zc7cyig+iv4acbVpNbOnAuJRMgzs3OpfPAHQwr X-Received: by 2002:a9d:1a2:: with SMTP id e31mr9249025ote.30.1585776368994; Wed, 01 Apr 2020 14:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585776368; cv=none; d=google.com; s=arc-20160816; b=xwZjfuMAWZBznUSWDdD3Xbx26d1ScKmSqsbtzTNLUZpqL3Wz8IyejAzr/tFFY1c4xy HG94LjfjD4ojX2vGa2UdmzSa+WNsK+AJ0FdcLYnwDRriqY8eM1vS3Fx0vSwS6ji0Y4Hc amUgwrcaidue4Tc5g0am0VCRG4LZIKs6Yhbem0nrVVbxHS+NidN45TeyMYqmXr7lhz6H BWewEFK+bG/DbcY3B8rl8g3O1W6phxh8MD9mSTWdlS4S7LfyCtU9ROxaSMLjtwlFy0lB 83wtYQtqIcuNQEjh5Sk5ei3v5wrwEHFTFf7Iw9hdqHghDYPTG8KAYc0CG1jAoQZ6T5HH ytKQ== 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=BGyR8JTfsSbE2g0wj+LH4zKWGaJeQDE7v3iBb44Kfjo=; b=sFLTgNu0scL9ZOImHVbUOuc3Ws5o+kpwu97HUjpDHQf178P5i8CxkshuNBF/1FRaC7 LVTFhPcmN1WbOi2mRqUxTuBG9BGN2eOHhLYrFNkHUfnVa6+jn2hFZt1GgLrNQkZN70eU EuTdKURD6G3IW1xBRPUjb/jk8KrS+MMPq3ys5lEYu8agf1JWdeHAJoghExz1m7XiGrD+ sPOXcaLd3g31j8O3+KLUJngtMAH/tewrKVYTruv59MCM5iEvQajRH5o4k/H3R9eVpYjU jfTaTpU1CFxsxEv071eT6xyUQ+6bA12YPvfRxF0BT8EE7eMC21hoIwhi4zELn21cJxL+ L+8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tVgRLcS2; 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 193si1355833oie.51.2020.04.01.14.25.56; Wed, 01 Apr 2020 14:26:08 -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=tVgRLcS2; 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 S1732860AbgDAVYU (ORCPT + 99 others); Wed, 1 Apr 2020 17:24:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:60954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732357AbgDAVYU (ORCPT ); Wed, 1 Apr 2020 17:24:20 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 76EC7206F6; Wed, 1 Apr 2020 21:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585776259; bh=SpscMagTGAG+/VHvh41OMqrZQ5CvygLTC+B3GQz0ogk=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=tVgRLcS2kdUtwBo1l6umHNb/ZLd3PjKyaifUwJ/xOhBSMlofuc0U1uiJgfN0BQpaG gp1Y+HCjgEV7x2MOKJKTAdIBFlQT+Fb4savqUbGMk/uYZnDwlc7VVE5a5U/eIl837P 2oq9+460OYha2qZ+/LKOXsVWJznHfv2y2T72cyC4= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 5243735226B3; Wed, 1 Apr 2020 14:24:19 -0700 (PDT) Date: Wed, 1 Apr 2020 14:24:19 -0700 From: "Paul E. McKenney" To: Uladzislau Rezki Cc: Joel Fernandes , linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: What should we be doing to stress-test kfree_rcu()? Message-ID: <20200401212419.GN19865@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200401184415.GA7619@paulmck-ThinkPad-P72> <20200401205012.GC206273@google.com> <20200401211607.GA7531@pc636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200401211607.GA7531@pc636> 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 Wed, Apr 01, 2020 at 11:16:07PM +0200, Uladzislau Rezki wrote: > On Wed, Apr 01, 2020 at 04:50:12PM -0400, Joel Fernandes wrote: > > On Wed, Apr 01, 2020 at 11:44:15AM -0700, Paul E. McKenney wrote: > > > Hello! > > > > > > What should we be doing to stress-test kfree_rcu(), including its ability > > > to cope with OOM conditions? Yes, rcuperf runs are nice, but they are not > > > currently doing much more than testing base functionality, performance, > > > and scalability. > > > > I already stress kfree_rcu() with rcuperf right now to a point of OOM and > > make sure it does not OOM. The way I do this is set my VM to low memory (like > > 512MB) and then flood kfree_rcu()s. After the shrinker changes, I don't see > > OOM with my current rcuperf settings. > > > > Not saying that my testing is sufficient, just saying this is what I do. It > > would be good to get a real workload to trigger lot of kfree_rcu() activity > > as well especially on low memory systems. Any ideas on that? > > > > One idea could be to trigger memory pressure from unrelated allocations (such > > as userspace memory hogs), and see how it perform with memory-pressure. For > > one, the shrinker should trigger in such situations to force the queue into > > waiting for a GP in such situations instead of batching too much. This would be good! > > We are also missing vmalloc() tests. I remember Vlad had some clever vmalloc > > tests around for his great vmalloc rewrites :). Vlad, any thoughts on getting > > to stress kvfree_rcu()? > > > Actually i updated(localy for my tests) the lib/test_vmalloc.c module with extra > test cases to stress kvfree_rcu() stuff. I think i should add them :) As would this! ;-) Thanx, Paul