From: Kevin Wolf <kwolf@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Cc: den@openvz.org, hreitz@redhat.com, jsnow@redhat.com,
qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [PATCH 3/3] iotests: check: multiprocessing support
Date: Fri, 10 Dec 2021 17:26:10 +0100 [thread overview]
Message-ID: <YbN/ojNCdKRxhXW5@redhat.com> (raw)
In-Reply-To: <a1b79536-8715-1bf2-729c-2aae4345050b@virtuozzo.com>
Am 10.12.2021 um 15:46 hat Vladimir Sementsov-Ogievskiy geschrieben:
> 10.12.2021 17:36, Kevin Wolf wrote:
> > Am 03.12.2021 um 13:22 hat Vladimir Sementsov-Ogievskiy geschrieben:
> > > Add -j <JOBS> parameter, to run tests in several jobs simultaneously.
> > > For realization - simply utilize multiprocessing.Pool class.
> > >
> > > Notes:
> > >
> > > 1. Of course, tests can't run simultaneously in same TEST_DIR. So,
> > > use subdirectories TEST_DIR/testname/ and SOCK_DIR/testname/
> > > instead of simply TEST_DIR and SOCK_DIR
> > >
> > > 2. multiprocessing.Pool.starmap function doesn't support passing
> > > context managers, so we can't simply pass "self". Happily, we need
> > > self only for read-only access, and it just works if it is defined
> > > in global space. So, add a temporary link TestRunner.shared_self
> > > during run_tests().
> > >
> > > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> >
> > Just wondering, is it worth even supporting the mp=false case or can we
> > simplify the code a bit by always going through multiprocessing and
> > using nice directory names even if only one process is spawned?
> >
> > Maybe John's observation that directory names get longer might be a
> > reason not to do that by default. Any other reasons you're aware of?
>
> I just wanted to keep the behavior without a new option unchanged, to
> not deal with possible CI failures on "make check": who know what
> multiprocessing brings together with performance.
So basically just err on the side of caution. Makes sense.
Kevin
next prev parent reply other threads:[~2021-12-10 16:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 12:22 [PATCH 0/3] iotests: multiprocessing!! Vladimir Sementsov-Ogievskiy
2021-12-03 12:22 ` [PATCH 1/3] iotests/testrunner.py: add doc string for run_test() Vladimir Sementsov-Ogievskiy
2021-12-06 17:52 ` John Snow
2021-12-10 14:12 ` Kevin Wolf
2021-12-10 14:40 ` Vladimir Sementsov-Ogievskiy
2021-12-03 12:22 ` [PATCH 2/3] iotests/testrunner.py: move updating last_elapsed to run_tests Vladimir Sementsov-Ogievskiy
2021-12-06 17:59 ` John Snow
2021-12-10 14:25 ` Kevin Wolf
2021-12-10 14:47 ` Vladimir Sementsov-Ogievskiy
2021-12-10 20:05 ` Vladimir Sementsov-Ogievskiy
2021-12-03 12:22 ` [PATCH 3/3] iotests: check: multiprocessing support Vladimir Sementsov-Ogievskiy
2021-12-06 18:35 ` John Snow
2021-12-06 20:20 ` Vladimir Sementsov-Ogievskiy
2021-12-06 21:00 ` John Snow
2021-12-10 14:36 ` Kevin Wolf
2021-12-10 14:46 ` Vladimir Sementsov-Ogievskiy
2021-12-10 16:26 ` Kevin Wolf [this message]
2021-12-06 18:37 ` [PATCH 0/3] iotests: multiprocessing!! John Snow
2021-12-06 20:26 ` Vladimir Sementsov-Ogievskiy
2021-12-07 18:20 ` John Snow
2021-12-09 14:33 ` Hanna Reitz
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=YbN/ojNCdKRxhXW5@redhat.com \
--to=kwolf@redhat.com \
--cc=den@openvz.org \
--cc=hreitz@redhat.com \
--cc=jsnow@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.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 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.