From: Namhyung Kim <namhyung@kernel.org>
To: Jan Polensky <japo@linux.ibm.com>
Cc: adrian.hunter@intel.com, irogers@google.com,
linux-perf-users@vger.kernel.org
Subject: Re: [RFC PATCH v1 1/1] perf test: Increase load in lock contention test on low-activity systems
Date: Fri, 25 Jul 2025 22:35:59 -0700 [thread overview]
Message-ID: <aIRpP_LpVAWXv7o7@google.com> (raw)
In-Reply-To: <aIOvdQ003hRqFEH1@li-276bd24c-2dcc-11b2-a85c-945b6f05615c.ibm.com>
On Fri, Jul 25, 2025 at 06:23:17PM +0200, Jan Polensky wrote:
> Hello Namhyung,
> On Wed, Jul 16, 2025 at 12:50:51PM -0700, Namhyung Kim wrote:
> > Hello,
> > On Wed, Jul 09, 2025 at 10:38:09PM +0200, Jan Polensky wrote:
> > > On low-activity systems, the 'kernel lock contention analysis test'
> > > often fails due to insufficient system load. To address this, the test
> > > now increases load by using multiple groups and threads in 'perf bench
> > > sched messaging', scaled to the number of available CPUs.
> > >
> > > Signed-off-by: Jan Polensky <japo@linux.ibm.com>
> > > ---
> [skip]
> >
> > More importantly, there are several instances of this workload.
> > Probably we want to change all of them by introducing a shell variable.
> You're right — introducing a shell variable makes sense, especially since
> there are 13 identical calls. However, I’m slightly concerned that this
> might reduce readability. We might also consider an alternative solution
> to avoid this.
We already have similar code in other places like record.sh.
Thanks,
Namhyung
> > But I'm a bit afraid how much overhead it'd bring up.
> Indeed, using the --group parameter on large systems can lead to issues.
> For example:
>
> [root@localhost perf]# ./perf stat -- perf bench sched messaging --group $(nproc) --thread
> # Running 'sched/messaging' benchmark:
> perf: socketpair(): Too many open files
>
> To avoid this, I suggest following the approach proposed by Thomas
> Richter (tmricht@linux.ibm.com), using the -p (pipe) mode instead:
>
> perf bench sched messaging -p
>
> The pipe-based solution generates sufficient load and lock contention for
> the test, while avoiding the use of sockets and their associated file
> descriptor limits.
>
> I’ll incorporate these changes and send the next version shortly.
>
> Thanks again for your feedback – it's much appreciated.
>
> Best regards,
> Jan
prev parent reply other threads:[~2025-07-26 5:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 20:38 [RFC PATCH v1 1/1] perf test: Increase load in lock contention test on low-activity systems Jan Polensky
2025-07-10 5:47 ` Thomas Richter
2025-07-16 19:50 ` Namhyung Kim
2025-07-25 16:23 ` Jan Polensky
2025-07-26 5:35 ` Namhyung Kim [this message]
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=aIRpP_LpVAWXv7o7@google.com \
--to=namhyung@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=irogers@google.com \
--cc=japo@linux.ibm.com \
--cc=linux-perf-users@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.