From: Joel Fernandes <joel@joelfernandes.org>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: urezki@gmail.com, linux-kernel@vger.kernel.org, rcu@vger.kernel.org
Subject: Re: What should we be doing to stress-test kfree_rcu()?
Date: Wed, 1 Apr 2020 16:50:12 -0400 [thread overview]
Message-ID: <20200401205012.GC206273@google.com> (raw)
In-Reply-To: <20200401184415.GA7619@paulmck-ThinkPad-P72>
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.
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()?
thanks,
- Joel
next prev parent reply other threads:[~2020-04-01 20:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-01 18:44 What should we be doing to stress-test kfree_rcu()? Paul E. McKenney
2020-04-01 20:50 ` Joel Fernandes [this message]
2020-04-01 21:16 ` Uladzislau Rezki
2020-04-01 21:24 ` Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200401205012.GC206273@google.com \
--to=joel@joelfernandes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=rcu@vger.kernel.org \
--cc=urezki@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox