From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: Olivier Dion <odion@efficios.com>,
lttng-dev <lttng-dev@lists.lttng.org>,
Michael Jeanson <mjeanson@efficios.com>
Cc: "Paul E . McKenney" <paulmck@kernel.org>
Subject: Re: [lttng-dev] [RFC] Deprecating RCU signal flavor
Date: Mon, 21 Aug 2023 11:43:32 -0400 [thread overview]
Message-ID: <cf12aa23-f3ad-e286-58b6-ae1b7e70b9e2@efficios.com> (raw)
In-Reply-To: <df134b32-9e1b-8deb-14fc-b09f02e2e678@efficios.com>
On 8/15/23 08:38, Mathieu Desnoyers via lttng-dev wrote:
> On 8/14/23 17:05, Olivier Dion via lttng-dev wrote:
>>
>> After discussing it with Mathieu, we agree on the following 3 phases for
>> deprecating the signal flavor:
>>
>> 1) liburcu-signal will be implemented in term of liburcu-mb. The only
>> difference between the two flavors will be the public header files,
>> linked symbols and library name. Note that this add a regression in
>> term of performance, since the implementation of liburcu-mb adds memory
>> barriers on the reader side which are not present in the original
>> liburcu-signal implementation.
>>
>> 2) Adding the deprecated attribute to every public functions exposed by
>> the liburcu-signal flavor. At this point, tests for liburcu-signal
>> will also be removed from the project. There will be no more support
>> for this flavor.
>>
>> 3) Removing the liburcu-signal flavor completely from the project.
>>
>> Finally, here is a tentative versions release of mine for each phase:
>>
>> 1) 0.15.0 [October 2023] (also TSAN support yay!)
>>
>> 2) 0.15.1
>>
>> 3) 0.16.0 || 1.0.0 (maybe a major bump since this is an API breaking
>> change)
>
> There is a distinction between the version number of the liburcu project
> (0.14) and the ABI soname for the shared objects. We may be able to do
> step (3) without going to 1.0.0 (I don't see removal of the urcu-signal
> flavor a strong enough motivation for hitting 1.0.0 yet).
>
> Technically speaking, given that we would be removing the entire
> liburcu-signal.so shared object, we would not be changing _symbols_
> within an existing shared object, therefore I'm not even sure we need to
> bump the soname for all the other remaining shared objects.
So after merging this commit:
Phase 1 of deprecating liburcu-signal
The first phase of liburcu-signal deprecation consists of implementing
it in term of liburcu-mb. In other words, liburcu-signal is identical to
liburcu-mb at the exception of the function symbols and public header
files.
This is done by:
1) Removing the RCU_SIGNAL specific code in urcu.c
2) Making the RCU_MB specific code also specific to RCU_SIGNAL in
urcu.c
3) Rewriting _urcu_signal_read_unlock_update_and_wakeup to use a
atomic store with CMM_SEQ_CST instead of a store CMM_RELAXED with
cmm_barrier() around it. We could keep the explicit barriers, but that
would require to add some cmm_annotate annotations. Therefore, to be
less intrusive in a public header file, simply use the CMM_SEQ_CST
like for the mb flavor.
I notice that an application previously built against urcu-signal with
_LGPL_SOURCE defined would have to be rebuilt, which would require a
soname bump of urcu-signal.
So considering that this phase 1 is not really a "drop in" replacement,
I favor removing the urcu-signal flavor entirely before the next release.
Thoughts ?
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next prev parent reply other threads:[~2023-08-21 15:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-10 21:10 Olivier Dion via lttng-dev
2023-05-11 6:57 ` Duncan Sands via lttng-dev
2023-05-16 12:16 ` Paul E. McKenney via lttng-dev
2023-05-16 13:11 ` Ondřej Surý via lttng-dev
2023-08-14 21:05 ` Olivier Dion via lttng-dev
2023-08-15 12:38 ` Mathieu Desnoyers via lttng-dev
2023-08-21 15:43 ` Mathieu Desnoyers via lttng-dev [this message]
2023-08-23 14:47 ` Paul E. McKenney via lttng-dev
2023-08-23 14:52 ` Mathieu Desnoyers via lttng-dev
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=cf12aa23-f3ad-e286-58b6-ae1b7e70b9e2@efficios.com \
--to=lttng-dev@lists.lttng.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mjeanson@efficios.com \
--cc=odion@efficios.com \
--cc=paulmck@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox