pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Add basic spinlock tests to regression tests.
9+ messages / 2 participants
[nested] [flat]
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3b37a6de027c27f1e4ac865aaa34dd92cf5dc7a1
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/59225dcefef278415aef64c3b96f84616b95661e
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/008c119928a3eec4e55560562d872117e08f6df3
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e027219f213111743a51e19e9febface5871af76
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/3f66e1c5a5768f68f71d1bd1ef322af2202d5e3c
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e8302f107af9ebe106ac71a9348514372015839f
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* pgsql: Add basic spinlock tests to regression tests.
@ 2020-06-18 21:36 Andres Freund <andres@anarazel.de>
2020-06-18 21:44 ` Re: pgsql: Add basic spinlock tests to regression tests. Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 9+ messages in thread
From: Andres Freund @ 2020-06-18 21:36 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add basic spinlock tests to regression tests.
As s_lock_test, the already existing test for spinlocks, isn't run in
an automated fashion (and doesn't test a normal backend environment),
adding tests that are run as part of a normal regression run is a good
idea. Particularly in light of several recent and upcoming spinlock
related fixes.
Currently the new tests are run as part of the pre-existing
test_atomic_ops() test. That perhaps can be quibbled about, but for
now seems ok.
The only operations that s_lock_test tests but the new tests don't are
the detection of a stuck spinlock and S_LOCK_FREE (which is otherwise
unused, not implemented on all platforms, and will be removed).
This currently contains a test for more than INT_MAX spinlocks (only
run with --disable-spinlocks), to ensure the recent commit fixing a
bug with more than INT_MAX spinlock initializations is correct. That
test is somewhat slow, so we might want to disable it after a few
days.
It might be worth retiring s_lock_test after this. The added coverage
of a stuck spinlock probably isn't worth the added complexity?
Author: Andres Freund
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/7e91f90a8ed4af18f4d2a3cb1b657b4296e2e710
Modified Files
--------------
src/test/regress/regress.c | 109 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Add basic spinlock tests to regression tests.
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
@ 2020-06-18 21:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2020-06-18 22:01 ` Re: pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 9+ messages in thread
From: Tom Lane @ 2020-06-18 21:44 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers@lists.postgresql.org
Andres Freund <andres@anarazel.de> writes:
> Add basic spinlock tests to regression tests.
Looks like you did not make this C89-clean in the back branches.
regards, tom lane
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Add basic spinlock tests to regression tests.
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:44 ` Re: pgsql: Add basic spinlock tests to regression tests. Tom Lane <tgl@sss.pgh.pa.us>
@ 2020-06-18 22:01 ` Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 9+ messages in thread
From: Andres Freund @ 2020-06-18 22:01 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
Hi,
On 2020-06-18 17:44:47 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Add basic spinlock tests to regression tests.
>
> Looks like you did not make this C89-clean in the back branches.
Working on it, sorry for that.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2020-06-18 22:01 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:36 pgsql: Add basic spinlock tests to regression tests. Andres Freund <andres@anarazel.de>
2020-06-18 21:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2020-06-18 22:01 ` Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox