Skip to contentSkip to conversation

cpu: make Quick Quiz 3.6 more explicit

PATCH In review [email protected] 2 participants 2 messages Dec 30, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

This change was identified by Chinese version editor Yunjing Li in the course of translating the book to Chinese.

Reported-by Chinese version editor YunJing Li
---
 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 11 lines · On Sat, Dec 30, 2023 at 08:07:24AM +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.

This change was identified by Chinese version editor Yunjing Li in the course of translating the book to Chinese.

Reported-by Chinese version editor YunJing Li

Thank you! I have queued this one in place of your original.

Thanx, Paul

Quoted 21 lines
---
 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