A few terms I'd like to see in perfbook's Glossary
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory
"Reference counter" is already mentioned in a couple of existing items in the glossary.
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.
Thanks, Akira
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.
Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.sh
Thanx, Paul
------------------------------------------------------------------------
commit a8f5948a1b8921941bf4039e278aa7929f64c322
Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800
glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
glossary.tex +24 -0
@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:] + An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory. \item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the
@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.
@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type. + Note that the object might well be freed and then reallocated, but + the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object. \item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.
Thanks Paul and Akira
great improvement to perfbook's glossary!
A question below ;-)
Quoted 51 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +0
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in
glossary.tex line 209
Quoted 10 lines
glossary.tex +8
-0linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:] + An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory.
here type-safe memory is called 'weaker'
Quoted 20 lines
glossary.tex +6
-0\item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:]
glossary.tex line 557
Quoted 10 lines
glossary.tex +10
-0+ Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type. + Note that the object might well be freed and then reallocated, but + the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object.
but why do we use "stronger" here (should not it be "weaker"?)
glossary.tex line 560
Quoted 3 lines
glossary.tex +0
-0\item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.
Many thanks
Zhouyi
Hi Zhouyi,
Quoted 61 lines · Zhouyi Zhou
Thanks Paul and Akira
great improvement to perfbook's glossary!
A question below ;-)
Quoted 54 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +1
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:]
Quoted 8 lines
glossary.tex line 209
Quoted 7 lines
glossary.tex +7
-0+ An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory.here type-safe memory is called 'weaker'
Yes.
Quoted 24 lines
Quoted 24 lines
glossary.tex +9
-0\item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type.
Quoted 8 lines
glossary.tex line 557
Quoted 7 lines
glossary.tex +7
-0+ Note that the object might well be freed and then reallocated, but + the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object.but why do we use "stronger" here (should not it be "weaker"?)
Here, "strictly stronger" modifies "existence guarantee". So there is no inconsistency, I suppose.
Thanks, Akira
Quoted 7 lines
glossary.tex line 560
Quoted 4 lines
glossary.tex +0
-0\item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.Many thanks
Zhouyi
Quoted 61 lines · Zhouyi Zhou
Thanks Paul and Akira
great improvement to perfbook's glossary!
A question below ;-)
Quoted 54 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +1
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:]
Quoted 8 lines
glossary.tex line 209
Quoted 7 lines
glossary.tex +7
-0+ An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory.here type-safe memory is called 'weaker'
Type-safe memory is weaker than existence guarantees ...
Quoted 24 lines
Quoted 24 lines
glossary.tex +10
-0\item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type. + Note that the object might well be freed and then reallocated, but
Quoted 8 lines
glossary.tex line 557
Quoted 6 lines
glossary.tex +6
-0+ the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object.but why do we use "stronger" here (should not it be "weaker"?)
... Or, alternatively but equivalently, existence guarantees are stronger than type-safe memory.
Is there a better way to word this?
Thanx, Paul
Quoted 5 lines
glossary.tex line 560
Quoted 3 lines
glossary.tex +0
-0\item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.Many thanks
Zhouyi
Thanks Paul and Akira for correcting me and helping me (who needs to be improved ;-)) make progress
Quoted 107 lines · Paul E. McKenney
Quoted 61 lines · Zhouyi Zhou
Thanks Paul and Akira
great improvement to perfbook's glossary!
A question below ;-)
Quoted 54 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +1
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:]Quoted 8 lines
glossary.tex line 209
Quoted 7 lines
glossary.tex +7
-0+ An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory.here type-safe memory is called 'weaker'
Type-safe memory is weaker than existence guarantees ...
Quoted 24 lines
Quoted 24 lines
glossary.tex +10
-0\item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type. + Note that the object might well be freed and then reallocated, butQuoted 8 lines
glossary.tex line 557
Quoted 6 lines
glossary.tex +6
-0+ the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object.but why do we use "stronger" here (should not it be "weaker"?)
Quoted 4 lines
... Or, alternatively but equivalently, existence guarantees are stronger than type-safe memory.
Is there a better way to word this?
How about this:
It is to note that existence guarantees are stronger than type-safe memory and.a strictly stronger existence guarantee also prevents freeing of the protected object.
Quoted 8 lines
Thanx, Paul
Quoted 5 lines
glossary.tex line 560
Quoted 3 lines
glossary.tex +0
-0\item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.Many thanks
Zhouyi
Thanks
Zhouyi
Quoted 114 lines · Zhouyi Zhou
Thanks Paul and Akira for correcting me and helping me (who needs to be improved ;-)) make progress
Quoted 110 lines · Paul E. McKenney
Quoted 61 lines · Zhouyi Zhou
Thanks Paul and Akira
great improvement to perfbook's glossary!
A question below ;-)
Quoted 54 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +1
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:]Quoted 8 lines
glossary.tex line 209
Quoted 7 lines
glossary.tex +7
-0+ An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory.here type-safe memory is called 'weaker'
Type-safe memory is weaker than existence guarantees ...
Quoted 24 lines
Quoted 24 lines
glossary.tex +10
-0\item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type. + Note that the object might well be freed and then reallocated, butQuoted 8 lines
glossary.tex line 557
Quoted 6 lines
glossary.tex +6
-0+ the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object.but why do we use "stronger" here (should not it be "weaker"?)
... Or, alternatively but equivalently, existence guarantees are stronger than type-safe memory.
Quoted 6 lines
Quoted 1 line
Is there a better way to word this?
How about this:
It is to note that existence guarantees are stronger than type-safe memory and.a strictly stronger existence guarantee also prevents freeing of the protected object.
I need to think more about this, so let's defer it until after the release, which I am planning for tomorrow (Tuesday) morning, Pacific Time. If I don't get back to this in a week or so, please do remind me.
Thanx, Paul
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
glossary.tex line 560
Quoted 3 lines
glossary.tex +0
-0\item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.Many thanks
ZhouyiThanks
Zhouyi
Quoted 84 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +17
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:] + An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory. \item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type.
glossary.tex line 560
Quoted 10 lines
glossary.tex +7
-0+ Note that the object might well be freed and then reallocated, but + the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag. + The strictly stronger existence guarantee also prevents freeing + of the protected object. \item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.
Looks good to me!
Thanks, Akira
Quoted 89 lines · Akira Yokosawa
Quoted 88 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Hi Paul,
While reading through Section 9.5.4, I noticed a few terms I'd like to see in perfbook's Glossary.
- Reference Counter/Counting
- Existence Guarantee
- Type-safe Memory"Reference counter" is already mentioned in a couple of existing items in the glossary.
Quoted 7 lines
"Existing guarantee" might be obvious enough and not worthy to be in the glossary.
Thoughts?
There were only a few minor nits in the section.
Will post a patch taking care of them.Thank you for looking it over! Please see below for a proposed patch to the glossary. Oh, and thank you for the checking utilities, very nice to get explicit messages rather than subtlely broken formatting!!!
utilities/punctcheck.sh
./glossary.tex:547: Type-safe memory\cite{Cheriton96a} is provided by autilities/cleverefcheck.shThanx, Paul
------------------------------------------------------------------------
commit
a8f5948a1b8921941bf4039e278aa7929f64c322Author: Paul E. McKenney <[email protected]> Date: Mon Dec 20 09:41:55 2021 -0800glossary: Add reference count, existence guarantee, and TSM
Where "TSM" is type-safe memory.
Reported-by Akira Yokosawa <[email protected]>Signed-off-by Paul E. McKenney <[email protected]>glossary.tex +22
-0@@ -199,6 +199,14 @@ increase the overall cost of the computation, resulting in linear speedups as threads are added (assuming sufficient CPUs are available). +\item[\IX{Existence Guarantee}:] + An existence guarantee is provided by a synchronization mechanism + that prevents a given dynamically allocated object from being + freed for the duration of that guarantee. + For example, RCU provides existence guarantees for the duration + of RCU read-side critical sections. + A similar but strictly weaker guarantee is provided by + type-safe memory. \item[\IXh{Exclusive}{Lock}:] An exclusive lock is a mutual-exclusion mechanism that permits only one thread at a time into the@@ -469,6 +477,11 @@ A situation in which getting the correct result is not sufficient, but where this result must also be obtained within a given amount of time. +\item[\IX{Reference Count}:] + A counter that tracks the number of users of a given object or + entity. + Reference counters provide existence guarantees and are sometimes + used to implement garbage collectors. \item[\IX{Scalability}:] A measure of how effectively a given system is able to utilize additional resources.@@ -531,6 +544,17 @@ A synchronization mechanism that gathers groups of memory accesses so as to execute them atomically from the viewpoint of transactions on other CPUs or threads. +\item[\IX{Type-Safe Memory}:] + Type-safe memory~\cite{Cheriton96a} is provided by a + synchronization mechanism that prevents a given dynamically + allocated object from changing to an incompatible type. + Note that the object might well be freed and then reallocated, but + the reallocated object is guaranteed to be of a compatible type. + Within the Linux kernel, type-safe memory is provided within + RCU read-side critical sections for memory allocated from slabs + marked with the \co{SLAB_TYPESAFE_BY_RCU} flag.
Quoted 8 lines
glossary.tex line 560
Quoted 6 lines
glossary.tex +2
-0+ The strictly stronger existence guarantee also prevents freeing + of the protected object. \item[\IX{Unteachable}:] A topic, concept, method, or mechanism that the teacher does not understand well is therefore uncomfortable teaching.Looks good to me!
Very good! I pushed it out. We can always wordsmith further later.
Thanx, Paul