Skip to contentSkip to conversation

cpu: make Quick Quiz 3.6 more explicit

PATCH Superseded [email protected] 2 participants 5 messages Dec 28, 2023 – Dec 29, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpu: make Quick Quiz 3.6 more explicit

From: Zhouyi Zhou <[email protected]>

Rewrite Quick Quiz 3.6 for clarity and explicitness, so that the firsttime reader know that another choice is CPU 0 sharing a core with CPU 1.

---
hi Paul and Akira

This minor fix is also reported by our Chinese version editor Yunjing Li.

Thanks
Zhouyi
--

 cpu/overheads.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cpu/overheads.tex +2 -1
index 1ee9c52f..a2ec2998 100644
@@ -262,7 +262,8 @@ CAS and lock, respectively.
 \QuickQuiz{
 	\Cref{tab:cpu:CPU 0 View of Synchronization Mechanisms on 8-Socket System With Intel Xeon Platinum 8176 CPUs at 2.10GHz}
 	shows CPU~0 sharing a core with CPU~224.
-	Shouldn't that instead be CPU~1???
+	However, isn't it more logical for CPU 0
+	to share a core with CPU 1 instead of CPU 224???
 }\QuickQuizAnswer{
 	It is easy to be sympathetic to this view, but the file
 	\path{/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list}
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · On Thu, Dec 28, 2023 at 11:55:00AM +0800, [email protected] wrote:

From: Zhouyi Zhou <[email protected]>

Rewrite Quick Quiz 3.6 for clarity and explicitness, so that the firsttime reader know that another choice is CPU 0 sharing a core with CPU 1.

Quoted 6 lines

---
hi Paul and Akira

This minor fix is also reported by our Chinese version editor Yunjing Li.

I have pulled this in, thanks to both you and the editor! Would it be appropriate to have the editor's reported-by? (I trust your judgment on this. I am only asking, not in any way suggesting a change.)

Thanx, Paul

Quoted 23 lines

Thanks
Zhouyi
--

 cpu/overheads.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cpu/overheads.tex +2 -1
index 1ee9c52f..a2ec2998 100644
@@ -262,7 +262,8 @@ CAS and lock, respectively.
 \QuickQuiz{
 	\Cref{tab:cpu:CPU 0 View of Synchronization Mechanisms on 8-Socket System With Intel Xeon Platinum 8176 CPUs at 2.10GHz}
 	shows CPU~0 sharing a core with CPU~224.
-	Shouldn't that instead be CPU~1???
+	However, isn't it more logical for CPU 0
+	to share a core with CPU 1 instead of CPU 224???
 }\QuickQuizAnswer{
 	It is easy to be sympathetic to this view, but the file
 	\path{/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list}
Signature · 1 line
2.34.1
#2 lore raw
Quoted 12 lines · Paul E. McKenney
Quoted 10 lines · On Thu, Dec 28, 2023 at 11:55:00AM +0800, [email protected] wrote:

From: Zhouyi Zhou <[email protected]>

Rewrite Quick Quiz 3.6 for clarity and explicitness, so that the firsttime reader know that another choice is CPU 0 sharing a core with CPU 1.

---
hi Paul and Akira

Quoted 6 lines
Quoted 2 lines

This minor fix is also reported by our Chinese version editor Yunjing Li.

I have pulled this in, thanks to both you and the editor! Would it be appropriate to have the editor's reported-by? (I trust your judgment on this. I am only asking, not in any way suggesting a change.)

I think I should have the editor's report-by, but she is too modest to offer her email-address,
because she thinks this is her job.

Could we add reported-by without an email address ? ;-)

Thanx, Zhouyi

Quoted 26 lines

Thanx, Paul

Quoted 23 lines

Thanks
Zhouyi
--

 cpu/overheads.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cpu/overheads.tex +2 -2
index 1ee9c52f..a2ec2998 100644
@@ -262,7 +262,8 @@ CAS and lock, respectively.
 \QuickQuiz{
      \Cref{tab:cpu:CPU 0 View of Synchronization Mechanisms on 8-Socket System With Intel Xeon Platinum 8176 CPUs at 2.10GHz}
      shows CPU~0 sharing a core with CPU~224.
-     Shouldn't that instead be CPU~1???
+     However, isn't it more logical for CPU 0
+     to share a core with CPU 1 instead of CPU 224???
 }\QuickQuizAnswer{
      It is easy to be sympathetic to this view, but the file
      \path{/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list}
--

2.34.1

#3 lore raw
Quoted 16 lines · Zhouyi Zhou
Quoted 15 lines · Paul E. McKenney
Quoted 12 lines · On Thu, Dec 28, 2023 at 11:55:00AM +0800, [email protected] wrote:

From: Zhouyi Zhou <[email protected]>

Rewrite Quick Quiz 3.6 for clarity and explicitness, so that the firsttime reader know that another choice is CPU 0 sharing a core with CPU 1.

---
hi Paul and Akira

This minor fix is also reported by our Chinese version editor Yunjing Li.

Quoted 8 lines
Quoted 3 lines

I have pulled this in, thanks to both you and the editor! Would it be appropriate to have the editor's reported-by? (I trust your judgment on this. I am only asking, not in any way suggesting a change.)

I think I should have the editor's report-by, but she is too modest to offer her email-address,
because she thinks this is her job.

Could we add reported-by without an email address ? ;-)

We could just add a line saying something like:

This change was identified by XXX YYYYY in the course of translating the book to Chinese.

Or something similar. What would our editor like best?

For another option, I do sometimes do "Reported-by: LWN user xxxx" or similar.

Thanx, Paul

Quoted 28 lines

Thanx, Zhouyi

Quoted 26 lines

Thanx, Paul

Quoted 23 lines

Thanks
Zhouyi
--

 cpu/overheads.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cpu/overheads.tex +2 -2
index 1ee9c52f..a2ec2998 100644
@@ -262,7 +262,8 @@ CAS and lock, respectively.
 \QuickQuiz{
      \Cref{tab:cpu:CPU 0 View of Synchronization Mechanisms on 8-Socket System With Intel Xeon Platinum 8176 CPUs at 2.10GHz}
      shows CPU~0 sharing a core with CPU~224.
-     Shouldn't that instead be CPU~1???
+     However, isn't it more logical for CPU 0
+     to share a core with CPU 1 instead of CPU 224???
 }\QuickQuizAnswer{
      It is easy to be sympathetic to this view, but the file
      \path{/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list}
--

2.34.1

#4 lore raw
Quoted 29 lines · Paul E. McKenney
Quoted 16 lines · Zhouyi Zhou
Quoted 15 lines · Paul E. McKenney
Quoted 12 lines · On Thu, Dec 28, 2023 at 11:55:00AM +0800, [email protected] wrote:

From: Zhouyi Zhou <[email protected]>

Rewrite Quick Quiz 3.6 for clarity and explicitness, so that the firsttime reader know that another choice is CPU 0 sharing a core with CPU 1.

---
hi Paul and Akira

This minor fix is also reported by our Chinese version editor Yunjing Li.

Quoted 8 lines
Quoted 3 lines

I have pulled this in, thanks to both you and the editor! Would it be appropriate to have the editor's reported-by? (I trust your judgment on this. I am only asking, not in any way suggesting a change.)

I think I should have the editor's report-by, but she is too modest to offer her email-address,
because she thinks this is her job.

Could we add reported-by without an email address ? ;-)

We could just add a line saying something like:

Quoted 7 lines

This change was identified by XXX YYYYY in the course of translating the book to Chinese.

Or something similar. What would our editor like best?

For another option, I do sometimes do "Reported-by: LWN user xxxx" or similar.

Thank Paul for your wonderful suggestion!
I guess our editor will like the first option best ;-) I will send a new version of patch soon.

Thanks, Paul

Quoted 31 lines

Thanx, Paul

Quoted 28 lines

Thanx, Zhouyi

Quoted 26 lines

Thanx, Paul

Quoted 23 lines

Thanks
Zhouyi
--

 cpu/overheads.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
cpu/overheads.tex +2 -2
index 1ee9c52f..a2ec2998 100644
@@ -262,7 +262,8 @@ CAS and lock, respectively.
 \QuickQuiz{
      \Cref{tab:cpu:CPU 0 View of Synchronization Mechanisms on 8-Socket System With Intel Xeon Platinum 8176 CPUs at 2.10GHz}
      shows CPU~0 sharing a core with CPU~224.
-     Shouldn't that instead be CPU~1???
+     However, isn't it more logical for CPU 0
+     to share a core with CPU 1 instead of CPU 224???
 }\QuickQuizAnswer{
      It is easy to be sympathetic to this view, but the file
      \path{/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list}
--

2.34.1