Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1357646 > unrolled thread
| Started by | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| First post | 2016-03-14 23:20 +0100 |
| Last post | 2016-03-15 20:50 +0100 |
| Articles | 8 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [GIT PULL] RCU changes for v4.6 Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-14 23:20 +0100
Re: [GIT PULL] RCU changes for v4.6 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-14 23:30 +0100
Re: [GIT PULL] RCU changes for v4.6 Ingo Molnar <mingo@kernel.org> - 2016-03-15 09:10 +0100
Re: [GIT PULL] RCU changes for v4.6 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-15 16:40 +0100
Re: [GIT PULL] RCU changes for v4.6 Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-15 18:00 +0100
Re: [GIT PULL] RCU changes for v4.6 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-15 19:50 +0100
Re: [GIT PULL] RCU changes for v4.6 Linus Torvalds <torvalds@linux-foundation.org> - 2016-03-15 20:20 +0100
Re: [GIT PULL] RCU changes for v4.6 "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-15 20:50 +0100
| From | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| Date | 2016-03-14 23:20 +0100 |
| Subject | Re: [GIT PULL] RCU changes for v4.6 |
| Message-ID | <rcJ0e-1rB-11@gated-at.bofh.it> |
On Mon, Mar 14, 2016 at 3:55 AM, Ingo Molnar <mingo@kernel.org> wrote:
>
> (Note the somewhat larger .html/.htmlx files about RCU data structures - let us
> know if you think they are over the top.)
I don't think they are over the top because they are *large*.
I don't want to pull them because they seem to be totally pointlessly
*duplicate*,
I don't want to see the same stuff twice.
Either you do html, or you do htmlx. But in no case do you do *both*.
And quite franklty, since the only point of that seems to be the whole
"quiz" thing, I erally think this should go away.
No more of these silly cute pictures, or cute html tricks with quizzes.
Do *documentation*, not games!
Not pulled.
Linus
[toc] | [next] | [standalone]
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-03-14 23:30 +0100 |
| Message-ID | <rcJ9U-1vi-23@gated-at.bofh.it> |
| In reply to | #1357646 |
On Mon, Mar 14, 2016 at 03:12:19PM -0700, Linus Torvalds wrote: > On Mon, Mar 14, 2016 at 3:55 AM, Ingo Molnar <mingo@kernel.org> wrote: > > > > (Note the somewhat larger .html/.htmlx files about RCU data structures - let us > > know if you think they are over the top.) > > I don't think they are over the top because they are *large*. > > I don't want to pull them because they seem to be totally pointlessly > *duplicate*, > > I don't want to see the same stuff twice. > > Either you do html, or you do htmlx. But in no case do you do *both*. > > And quite franklty, since the only point of that seems to be the whole > "quiz" thing, I erally think this should go away. > > No more of these silly cute pictures, or cute html tricks with quizzes. > > Do *documentation*, not games! > > Not pulled. OK, will rework. Thanx, Paul
[toc] | [prev] | [next] | [standalone]
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2016-03-15 09:10 +0100 |
| Message-ID | <rcSdc-7Pd-7@gated-at.bofh.it> |
| In reply to | #1357652 |
* Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:
> On Mon, Mar 14, 2016 at 03:12:19PM -0700, Linus Torvalds wrote:
> > On Mon, Mar 14, 2016 at 3:55 AM, Ingo Molnar <mingo@kernel.org> wrote:
> > >
> > > (Note the somewhat larger .html/.htmlx files about RCU data structures - let us
> > > know if you think they are over the top.)
> >
> > I don't think they are over the top because they are *large*.
> >
> > I don't want to pull them because they seem to be totally pointlessly
> > *duplicate*,
> >
> > I don't want to see the same stuff twice.
> >
> > Either you do html, or you do htmlx. But in no case do you do *both*.
> >
> > And quite franklty, since the only point of that seems to be the whole
> > "quiz" thing, I erally think this should go away.
> >
> > No more of these silly cute pictures, or cute html tricks with quizzes.
> >
> > Do *documentation*, not games!
> >
> > Not pulled.
>
> OK, will rework.
Meanwhile, to not hold up the other RCU changes, I've reconstructed core/rcu with
the following branches:
fixes.2015.02.23a: Miscellaneous fixes
torture.2015.02.23a: Torture-test updates
i.e. the doc.2015.02.23a bits that need reworking are left out.
I'll send an updated pull request in a few minutes.
Thanks,
Ingo
[toc] | [prev] | [next] | [standalone]
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-03-15 16:40 +0100 |
| Message-ID | <rcZeG-3Vk-1@gated-at.bofh.it> |
| In reply to | #1357878 |
On Tue, Mar 15, 2016 at 09:06:06AM +0100, Ingo Molnar wrote: > > * Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote: > > > On Mon, Mar 14, 2016 at 03:12:19PM -0700, Linus Torvalds wrote: > > > On Mon, Mar 14, 2016 at 3:55 AM, Ingo Molnar <mingo@kernel.org> wrote: > > > > > > > > (Note the somewhat larger .html/.htmlx files about RCU data structures - let us > > > > know if you think they are over the top.) > > > > > > I don't think they are over the top because they are *large*. > > > > > > I don't want to pull them because they seem to be totally pointlessly > > > *duplicate*, > > > > > > I don't want to see the same stuff twice. > > > > > > Either you do html, or you do htmlx. But in no case do you do *both*. > > > > > > And quite franklty, since the only point of that seems to be the whole > > > "quiz" thing, I erally think this should go away. > > > > > > No more of these silly cute pictures, or cute html tricks with quizzes. > > > > > > Do *documentation*, not games! > > > > > > Not pulled. > > > > OK, will rework. > > Meanwhile, to not hold up the other RCU changes, I've reconstructed core/rcu with > the following branches: > > fixes.2015.02.23a: Miscellaneous fixes > torture.2015.02.23a: Torture-test updates > > i.e. the doc.2015.02.23a bits that need reworking are left out. > > I'll send an updated pull request in a few minutes. Good point! I will send a pull of the documentation commits that do not involve Documentation/RCU/Design. Thanx, Paul
[toc] | [prev] | [next] | [standalone]
| From | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| Date | 2016-03-15 18:00 +0100 |
| Message-ID | <rd0u5-4EG-3@gated-at.bofh.it> |
| In reply to | #1358104 |
On Tue, Mar 15, 2016 at 8:33 AM, Paul E. McKenney
<paulmck@linux.vnet.ibm.com> wrote:
>
> Good point! I will send a pull of the documentation commits that do not
> involve Documentation/RCU/Design.
Note that I have no objections what-so-ever with the html in the
Design doc directory: I think using html and svg's to do the boxes and
things is fine. Using html and svg's because you can do better
graphics for showing real technical relationships is absolutely
*fine*.
What I object to is "cute". We had a cartoonish jpeg at some point
(maybe it's still there, I didn't check), and now the quizzes with the
html filtering and checking in both versions etc.
I think "cute" may well be fine for doing presentations etc.
But I don't think it's something we want in the kernel sources, and it
absolutely isn't when it adds big files (whether they be duplicate
info or jpeg's) or special non-standard file formats.
It ends up being actively detrimental to disseminating the
information, because of the conversion scripts, or because it's just
distracting.
Linus
[toc] | [prev] | [next] | [standalone]
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-03-15 19:50 +0100 |
| Message-ID | <rd2cy-5Y5-11@gated-at.bofh.it> |
| In reply to | #1358149 |
On Tue, Mar 15, 2016 at 09:58:19AM -0700, Linus Torvalds wrote:
> On Tue, Mar 15, 2016 at 8:33 AM, Paul E. McKenney
> <paulmck@linux.vnet.ibm.com> wrote:
> >
> > Good point! I will send a pull of the documentation commits that do not
> > involve Documentation/RCU/Design.
>
> Note that I have no objections what-so-ever with the html in the
> Design doc directory: I think using html and svg's to do the boxes and
> things is fine. Using html and svg's because you can do better
> graphics for showing real technical relationships is absolutely
> *fine*.
>
> What I object to is "cute". We had a cartoonish jpeg at some point
> (maybe it's still there, I didn't check), and now the quizzes with the
> html filtering and checking in both versions etc.
>
> I think "cute" may well be fine for doing presentations etc.
>
> But I don't think it's something we want in the kernel sources, and it
> absolutely isn't when it adds big files (whether they be duplicate
> info or jpeg's) or special non-standard file formats.
>
> It ends up being actively detrimental to disseminating the
> information, because of the conversion scripts, or because it's just
> distracting.
There is indeed a cartoon in the Requirements documentation, as well
as a simple diagram that can just as easily be represented with text.
(What can I say? I had that .svg lying around and was feeling lazy.)
The commit at the end of this email removes them, and I have queued it
for 3.7.
On the html/htmlx duplication, understood. I will fix this.
On the quick quizzes, if you want me to get rid of them, they are gone.
However, they really do have a serious purpose. That purpose is to
help readers understand what they do and do not know, which admittedly
is the sort of help that many people might rather do without. I learned
about this the hard way, while taking a class in a familiar subject some
years back. I read the first chapter of the text, and was surprised to
find that I could answer only about 30% of the questions. Yes, I did
re-read the chapter more carefully, and then was able to easily answer
all the questions.
The point is that after reading the chapter the first time, I thought
I knew the material, but I very clearly did not. The quick quizzes are
intended to provide this same service to others, unwelcome though that
might be.
But again, if you don't want them, I will get rid of them. After all,
at the time that they become critically important, I won't be in a
position to be worried about it. ;-)
Thanx, Paul
------------------------------------------------------------------------
commit 4fc4c42836db14c1a7ba8558cfab6db82bfe79b5
Author: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Date: Tue Mar 15 11:03:36 2016 -0700
documentation: Remove unnecessary images from requirements
This commit removes a cutesy cartoon and also a diagram that can
just as easily be represented by text.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
diff --git a/Documentation/RCU/Design/Requirements/2013-08-is-it-dead.png b/Documentation/RCU/Design/Requirements/2013-08-is-it-dead.png
deleted file mode 100644
index 7496a55e4e7b..000000000000
diff --git a/Documentation/RCU/Design/Requirements/RCUApplicability.svg b/Documentation/RCU/Design/Requirements/RCUApplicability.svg
deleted file mode 100644
index ebcbeee391ed..000000000000
diff --git a/Documentation/RCU/Design/Requirements/Requirements.html b/Documentation/RCU/Design/Requirements/Requirements.html
index 01e12b86e81f..c67a96a2a389 100644
--- a/Documentation/RCU/Design/Requirements/Requirements.html
+++ b/Documentation/RCU/Design/Requirements/Requirements.html
@@ -1120,12 +1120,27 @@ These classes is covered in the following sections.
<h3><a name="Specialization">Specialization</a></h3>
<p>
-RCU is and always has been intended primarily for read-mostly situations, as
-illustrated by the following figure.
-This means that RCU's read-side primitives are optimized, often at the
+RCU is and always has been intended primarily for read-mostly situations,
+which means that RCU's read-side primitives are optimized, often at the
expense of its update-side primitives.
+Experience thus far is captured by the following list of situations:
-<p><img src="RCUApplicability.svg" alt="RCUApplicability.svg" width="70%"></p>
+<ol>
+<li> Read-mostly data, where stale and inconsistent data is not
+ a problem: RCU works great!
+<li> Read-mostly data, where data must be consistent:
+ RCU works well.
+<li> Read-write data, where data must be consistent:
+ RCU <i>might</i> work OK.
+ Or not.
+<li> Write-mostly data, where data must be consistent:
+ RCU is very unlikely to be the right tool for the job,
+ with the following exceptions, where RCU can provide:
+ <ol type=a>
+ <li> Existence guarantees for update-friendly mechanisms.
+ <li> Wait-free read-side primitives for real-time use.
+ </ol>
+</ol>
<p>
This focus on read-mostly situations means that RCU must interoperate
@@ -1171,10 +1186,7 @@ some period of time, so the exact wait period is a judgment call.
One of our pair of veternarians might wait 30 seconds before pronouncing
the cat dead, while the other might insist on waiting a full minute.
The two veternarians would then disagree on the state of the cat during
-the final 30 seconds of the minute following the last heartbeat, as
-fancifully illustrated below:
-
-<p><img src="2013-08-is-it-dead.png" alt="2013-08-is-it-dead.png" width="431"></p>
+the final 30 seconds of the minute following the last heartbeat.
<p>
Interestingly enough, this same situation applies to hardware.
diff --git a/Documentation/RCU/Design/Requirements/Requirements.htmlx b/Documentation/RCU/Design/Requirements/Requirements.htmlx
index 3355f1f9384c..d6a84f3e0451 100644
--- a/Documentation/RCU/Design/Requirements/Requirements.htmlx
+++ b/Documentation/RCU/Design/Requirements/Requirements.htmlx
@@ -1257,12 +1257,27 @@ These classes is covered in the following sections.
<h3><a name="Specialization">Specialization</a></h3>
<p>
-RCU is and always has been intended primarily for read-mostly situations, as
-illustrated by the following figure.
-This means that RCU's read-side primitives are optimized, often at the
+RCU is and always has been intended primarily for read-mostly situations,
+which means that RCU's read-side primitives are optimized, often at the
expense of its update-side primitives.
+Experience thus far is captured by the following list of situations:
-<p><img src="RCUApplicability.svg" alt="RCUApplicability.svg" width="70%"></p>
+<ol>
+<li> Read-mostly data, where stale and inconsistent data is not
+ a problem: RCU works great!
+<li> Read-mostly data, where data must be consistent:
+ RCU works well.
+<li> Read-write data, where data must be consistent:
+ RCU <i>might</i> work OK.
+ Or not.
+<li> Write-mostly data, where data must be consistent:
+ RCU is very unlikely to be the right tool for the job,
+ with the following exceptions, where RCU can provide:
+ <ol type=a>
+ <li> Existence guarantees for update-friendly mechanisms.
+ <li> Wait-free read-side primitives for real-time use.
+ </ol>
+</ol>
<p>
This focus on read-mostly situations means that RCU must interoperate
@@ -1330,10 +1345,7 @@ some period of time, so the exact wait period is a judgment call.
One of our pair of veternarians might wait 30 seconds before pronouncing
the cat dead, while the other might insist on waiting a full minute.
The two veternarians would then disagree on the state of the cat during
-the final 30 seconds of the minute following the last heartbeat, as
-fancifully illustrated below:
-
-<p><img src="2013-08-is-it-dead.png" alt="2013-08-is-it-dead.png" width="431"></p>
+the final 30 seconds of the minute following the last heartbeat.
<p>
Interestingly enough, this same situation applies to hardware.
[toc] | [prev] | [next] | [standalone]
| From | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| Date | 2016-03-15 20:20 +0100 |
| Message-ID | <rd2FA-6of-15@gated-at.bofh.it> |
| In reply to | #1358193 |
On Tue, Mar 15, 2016 at 11:48 AM, Paul E. McKenney
<paulmck@linux.vnet.ibm.com> wrote:
>
> On the quick quizzes, if you want me to get rid of them, they are gone.
You don't have to remove them (but I do think cartoons etc should be).
But dammit, you don't need to duplicate a big file or use a
non-standard format for something as trivial as a quiz.
There are *trivial* solutions to this:
- just move the answer in the html file (or to another html file past a link).
- or just make the answer be in text using the background color (have
people select the text to see it)
- or make the answer be in a tiny font and make people use "ctrl-+"
or whatever.
None of these require a non-standard format and munging and duplication.
Linus
[toc] | [prev] | [next] | [standalone]
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-03-15 20:50 +0100 |
| Message-ID | <rd38C-6Bt-29@gated-at.bofh.it> |
| In reply to | #1358200 |
On Tue, Mar 15, 2016 at 12:10:03PM -0700, Linus Torvalds wrote: > On Tue, Mar 15, 2016 at 11:48 AM, Paul E. McKenney > <paulmck@linux.vnet.ibm.com> wrote: > > > > On the quick quizzes, if you want me to get rid of them, they are gone. > > You don't have to remove them (but I do think cartoons etc should be). > > But dammit, you don't need to duplicate a big file or use a > non-standard format for something as trivial as a quiz. > > There are *trivial* solutions to this: > > - just move the answer in the html file (or to another html file past a link). > > - or just make the answer be in text using the background color (have > people select the text to see it) > > - or make the answer be in a tiny font and make people use "ctrl-+" > or whatever. > > None of these require a non-standard format and munging and duplication. Will fix! Thanx, Paul
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web