advsync: Replace table with diagrams in "Variables Can Have More ..."
RFC PATCH 1/1 advsync: Replace table with diagrams in "Variables Can Have More ..."
From 6503699d2abef5f5774577d7bd86f1a51829525b Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 30 Apr 2016 12:43:57 +0900
Subject: [RFC PATCH] advsync: Replace table with diagrams in "Variables Can
Have More ..."
In commit 8de1474e3282 ("Add larger multiple-value-write scenario"), a table representing difference in opinions of 15 CPUs of a shared variable was introduced. However, a diagram similar to Figure 14.2 is nicer for readers.
This commit replaces the table with a figure which consists of two diagrams. One shows the overall picture and the other shows the zoom-up of the beginning period.
It also updates related text appropriately.
It removes the explanation of non-response period added in commit 12eb7c30e5db ("Explain why cells in table 14.2 can be blank") since the diagrams ignore such periods just as in Figure 14.2. It also adds unpolished source code of a conversion program used to generate .fig files.
It also adds the input file to the conversion program for other people to see if the extracted data is correct. Detailed explanation of the format of the input file and the conversion program is planned to be added in a future commit.
--- Makefile | 2 + advsync/MoreThanOneValue-15CPU.eps | 1062 ++++++++++++++++++++++++++++++++++ advsync/MoreThanOneValue-15CPU.fig | 391 +++++++++++++ advsync/MoreThanOneValue-15CPU.input | 16 + advsync/memorybarriers.tex | 149 +---- utilities/MoreThanOneValue-15CPU.c | 185 ++++++ 6 files changed, 1673 insertions(+), 132 deletions(-) create mode 100644 advsync/MoreThanOneValue-15CPU.eps create mode 100644 advsync/MoreThanOneValue-15CPU.fig create mode 100644 advsync/MoreThanOneValue-15CPU.input create mode 100644 utilities/MoreThanOneValue-15CPU.c
Makefile +2 -0
@@ -93,6 +93,8 @@ EPSSOURCES = \ advsync/DataDependencySupplied.eps \ advsync/MemoryArchitecture.eps \ advsync/MemoryBarrierPairing.eps \ + advsync/MoreThanOneValue.eps \ + advsync/MoreThanOneValue-15CPU.eps \ advsync/ReadBarrierNeeded.eps \ advsync/ReadBarrierSupplied.eps \ advsync/ReadBarrierSupplied1.eps \
advsync/MoreThanOneValue-15CPU.eps new file +1062 -0
1,062 lines not on this page · raw message
advsync/MoreThanOneValue-15CPU.fig new file +391 -0
391 lines not on this page · raw message
advsync/MoreThanOneValue-15CPU.input new file +16 -0
@@ -0,0 +1,16 @@ +0 +12 1 90 6 147 4 225 10 311 15 442 3 515 9 0 0 13 89 91 146 148 224 226 310 312 441 443 514 0 0 +16 2 441 3 510 9 0 0 17 440 443 509 0 0 +17 3 511 9 0 0 19 510 0 0 +15 4 212 10 294 15 391 12 475 9 0 0 16 211 335 390 400 474 0 0 +16 5 214 10 297 15 393 12 476 9 0 0 17 213 226 296 335 392 400 475 0 0 +17 6 173 2 333 15 500 9 0 0 18 172 174 332 335 499 0 0 +18 7 172 2 334 15 499 9 0 0 19 171 173 333 335 498 0 0 +15 8 25 9 0 0 16 24 0 0 +17 9 0 0 0 0 +21 10 308 15 397 12 472 9 0 0 226 307 335 396 400 471 0 0 +20 11 78 10 309 15 399 12 473 9 0 0 21 77 226 308 335 398 400 472 0 0 +13 12 525 9 0 0 400 524 0 0 +12 13 57 12 523 9 0 0 13 56 400 522 0 0 +13 14 20 15 379 12 528 9 0 0 14 19 400 527 0 0 +16 15 381 12 529 9 0 0 26 380 400 528 0 0
advsync/memorybarriers.tex +17 -132
169 lines not on this page · raw message
utilities/MoreThanOneValue-15CPU.c new file +185 -0
185 lines not on this page · raw message
Signature · 1 line
1.9.1
RFC PATCH 1/1 advsync: Minor fix of word choice
From 67433ddbf67a7d37e83426fed98228c245408c89 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 30 Apr 2016 17:08:03 +0900
Subject: [FOLLOW-UP RFC PATCH] advsync: Minor fix of word choice
This should have been "the vertical line", not "the vertical bar".
--- advsync/memorybarriers.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
advsync/memorybarriers.tex +1 -1
@@ -378,7 +378,7 @@ Again, CPU~0 coordinates the test, so does not record any values. All CPUs eventually agree on the final value of 9, but not before the values 15 and 12 take early leads. Note that there are fourteen different opinions on the variable's value -at time 21 indicated by the vertical bar in the lower diagram. +at time 21 indicated by the vertical line in the lower diagram. Note also that all CPUs see sequences whose orderings are consistent with the directed graph shown in Figure~\ref{fig:advsync:Possible Global Orders With More Simultaneous Values}.
Signature · 1 line
1.9.1
Re: [FOLLOW-UP RFC PATCH] advsync: Minor fix of word choice
Quoted 8 lines · Akira Yokosawa
Quoted 1 line
From
67433ddbf67a7d37e83426fed98228c245408c89Mon Sep 17 00:00:00 2001From: Akira Yokosawa <[email protected]>
Date: Sat, 30 Apr 2016 17:08:03 +0900
Subject: [FOLLOW-UP RFC PATCH] advsync: Minor fix of word choiceThis should have been "the vertical line", not "the vertical bar".
Signed-off-by Akira Yokosawa <[email protected]>
I squashed this into your previous patch and also pulled in fixes for a couple of grammatical nits.
Thank you!
Thanx, Paul
Quoted 21 lines
--- advsync/memorybarriers.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)advsync/memorybarriers.tex +1
-1@@ -378,7 +378,7 @@ Again, CPU~0 coordinates the test, so does not record any values. All CPUs eventually agree on the final value of 9, but not before the values 15 and 12 take early leads. Note that there are fourteen different opinions on the variable's value -at time 21 indicated by the vertical bar in the lower diagram. +at time 21 indicated by the vertical line in the lower diagram. Note also that all CPUs see sequences whose orderings are consistent with the directed graph shown in Figure~\ref{fig:advsync:Possible Global Orders With More Simultaneous Values}.Signature · 1 line
1.9.1