Skip to contentSkip to conversation

docs/zh_CN: add scheduler arch and bwc translation

PATCH Superseded Yanteng Si 2 participants 7 messages Nov 29, 2021 – Dec 6, 2021

Subsystems (2)

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Yanteng Si

author
#0 lore raw

v2 cover docs/zh_CN: add scheduler arch and bwc translation

v2:

* Pick Reviewed-by tag. (Patch 2/3 and 3/3)
* Modified some words under Alex's advices.

v1:

* Translate .../scheduler/sched-arch.rst and sched-bwc.rst into Chinese.
* When I translated sched-bwc, I fixed some errata along the way.
* fix a build warning in sched-bwc,I put them inside a patch or even in a series, so if I should split them, please let me know.

Yanteng Si (3):
docs/zh_CN: add scheduler sched-arch translation docs/zh_CN: add scheduler sched-bwc translation docs/scheduler: fix typo and warning in sched-bwc

 Documentation/scheduler/sched-bwc.rst         |   5 +-
 .../translations/zh_CN/scheduler/index.rst    |   3 +-
 .../zh_CN/scheduler/sched-arch.rst            |  78 +++++++
 .../zh_CN/scheduler/sched-bwc.rst             | 206 ++++++++++++++++++
 4 files changed, 288 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-arch.rst
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-bwc.rst
Signature · 1 line
2.27.0
author
#1 lore raw

PATCH v2 1/3 docs/zh_CN: add scheduler sched-arch translation

From: Yanteng Si <[email protected]>

Translate .../scheduler/sched-arch.rst into Chinese.

---
 .../translations/zh_CN/scheduler/index.rst    |  2 +-
 .../zh_CN/scheduler/sched-arch.rst            | 78 +++++++++++++++++++
 2 files changed, 79 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-arch.rst
Documentation/translations/zh_CN/scheduler/index.rst +1 -1
index 5ec71e6043ae..797df3a9c66f 100644
@@ -20,11 +20,11 @@ Linux调度器
     :maxdepth: 1
 
     completion
+    sched-arch
 
 
 TODOList:
 
-    sched-arch
     sched-bwc
     sched-deadline
     sched-design-CFS
Documentation/translations/zh_CN/scheduler/sched-arch.rst new file +78 -0

78 lines not on this page · raw message

Signature · 1 line
2.27.0
author
#5 lore raw

PATCH v2 3/3 docs/scheduler: fix typo and warning in sched-bwc

In reply to Yanteng Si

From: Yanteng Si <[email protected]>

a) since d73df887b6b8 ("sched/fair: Add document for burstable CFS bandwidth") [cpu.cfs_quota_us: the total available run-time within a period (in] shoud be removed, let's delete it.

b) Add a period.

c) fix a build warning:

linux-next/Documentation/scheduler/sched-bwc.rst:243: WARNING: Inline emphasis start-string without end-string.

---
 Documentation/scheduler/sched-bwc.rst | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/scheduler/sched-bwc.rst +2 -3
index 173c14110c85..f166b182ff95 100644
@@ -74,7 +74,6 @@ Quota, period and burst are managed within the cpu subsystem via cgroupfs.
    to cgroup v1. For cgroup v2, see
    :ref:`Documentation/admin-guide/cgroup-v2.rst <cgroup-v2-cpu>`.
 
-- cpu.cfs_quota_us: the total available run-time within a period (in
 - cpu.cfs_quota_us: run-time replenished within a period (in microseconds)
 - cpu.cfs_period_us: the length of a period (in microseconds)
 - cpu.stat: exports throttling statistics [explained further below]
@@ -135,7 +134,7 @@ cpu.stat:
   of the group have been throttled.
 - nr_bursts: Number of periods burst occurs.
 - burst_time: Cumulative wall-time (in nanoseconds) that any CPUs has used
-  above quota in respective periods
+  above quota in respective periods.
 
 This interface is read-only.
 
@@ -238,7 +237,7 @@ Examples
    additionally, in case accumulation has been done.
 
    With 50ms period, 20ms quota will be equivalent to 40% of 1 CPU.
-   And 10ms burst will be equivalent to 20% of 1 CPU.
+   And 10ms burst will be equivalent to 20% of 1 CPU::
 
 	# echo 20000 > cpu.cfs_quota_us /* quota = 20ms */
 	# echo 50000 > cpu.cfs_period_us /* period = 50ms */
Signature · 1 line
2.27.0
author
#2 lore raw

PATCH v2 2/3 docs/zh_CN: add scheduler sched-bwc translation

In reply to Yanteng Si

From: Yanteng Si <[email protected]>

Translate .../scheduler/sched-bwc.rst into Chinese.

---
 .../translations/zh_CN/scheduler/index.rst    |   1 +
 .../zh_CN/scheduler/sched-bwc.rst             | 206 ++++++++++++++++++
 2 files changed, 207 insertions(+)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-bwc.rst
Documentation/translations/zh_CN/scheduler/index.rst +1 -0
index 797df3a9c66f..aba11e561ec3 100644
@@ -21,6 +21,7 @@ Linux调度器
 
     completion
     sched-arch
+    sched-bwc
 
 
 TODOList:
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +206 -0

206 lines not on this page · raw message

Signature · 1 line
2.27.0
maintainer
#3 lore raw

Re: [PATCH v2 2/3] docs/zh_CN: add scheduler sched-bwc translation

Quoted 11 lines · Yanteng Si

From: Yanteng Si <[email protected]>

Translate .../scheduler/sched-bwc.rst into Chinese.

---
 .../translations/zh_CN/scheduler/index.rst    |   1 +
 .../zh_CN/scheduler/sched-bwc.rst             | 206 ++++++++++++++++++
 2 files changed, 207 insertions(+)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-bwc.rst

One quick question:

Quoted 21 lines
Documentation/translations/zh_CN/scheduler/index.rst +1 -0
index 797df3a9c66f..aba11e561ec3 100644
@@ -21,6 +21,7 @@ Linux调度器
 
     completion
     sched-arch
+    sched-bwc
 
 
 TODOList:
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +3 -0
new file mode 100644
index 000000000000..4fb18db54655
@@ -0,0 +1,206 @@
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: Documentation/scheduler/sched-bwc.rst

Documentation/translations/zh_CN/scheduler/sched-bwc.rst line 13

Quoted 10 lines
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +10 -0
+
+:翻译:
+
+ 司延腾 Yanteng Si <[email protected]>
+
+:校译:
+
+
+
+.. _cn_scheduler_sched-bwc.rst:

Is there a reason for adding all of these labels? They are generally not used and just clutter up the documents. I think I would prefer to not see them unless they are needed, but if there's a reason to have them that I'm not seeing ... ?

Otherwise this set seems about ready to go.

Thanks,

jon

author
#4 lore raw

Re: [PATCH v2 2/3] docs/zh_CN: add scheduler sched-bwc translation

Quoted 45 lines · Jonathan Corbet <[email protected]> 于2021年11月30日周二 上午5:17写道:
Quoted 11 lines · Yanteng Si

From: Yanteng Si <[email protected]>

Translate .../scheduler/sched-bwc.rst into Chinese.

---
 .../translations/zh_CN/scheduler/index.rst    |   1 +
 .../zh_CN/scheduler/sched-bwc.rst             | 206 ++++++++++++++++++
 2 files changed, 207 insertions(+)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-bwc.rst

One quick question:

Quoted 28 lines
Documentation/translations/zh_CN/scheduler/index.rst +1 -0
index 797df3a9c66f..aba11e561ec3 100644
@@ -21,6 +21,7 @@ Linux调度器
 
     completion
     sched-arch
+    sched-bwc
 
 
 TODOList:
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +10 -0
new file mode 100644
index 000000000000..4fb18db54655
@@ -0,0 +1,206 @@
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: Documentation/scheduler/sched-bwc.rst
+
+:翻译:
+
+ 司延腾 Yanteng Si <[email protected]>
+
+:校译:
+
Quoted 8 lines

Documentation/translations/zh_CN/scheduler/sched-bwc.rst line 13

Quoted 3 lines
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +3 -0
+
+
+.. _cn_scheduler_sched-bwc.rst:

Is there a reason for adding all of these labels? They are generally not used and just clutter up the documents. I think I would prefer to not see them unless they are needed, but if there's a reason to have them that I'm not seeing ... ?

OK!let's remove it.

Thanks,
Yanteng

Quoted 6 lines

Otherwise this set seems about ready to go.

Thanks,

jon

Quoted 59 lines · Jonathan Corbet <[email protected]> 于2021年11月30日周二 上午5:17写道:
Quoted 11 lines · Yanteng Si

From: Yanteng Si <[email protected]>

Translate .../scheduler/sched-bwc.rst into Chinese.

---
 .../translations/zh_CN/scheduler/index.rst    |   1 +
 .../zh_CN/scheduler/sched-bwc.rst             | 206 ++++++++++++++++++
 2 files changed, 207 insertions(+)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-bwc.rst

One quick question:

Quoted 21 lines
Documentation/translations/zh_CN/scheduler/index.rst +1 -0
index 797df3a9c66f..aba11e561ec3 100644
@@ -21,6 +21,7 @@ Linux调度器
 
     completion
     sched-arch
+    sched-bwc
 
 
 TODOList:
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +3 -0
new file mode 100644
index 000000000000..4fb18db54655
@@ -0,0 +1,206 @@
+.. include:: ../disclaimer-zh_CN.rst
+
+:Original: Documentation/scheduler/sched-bwc.rst

Documentation/translations/zh_CN/scheduler/sched-bwc.rst line 13

Quoted 10 lines
Documentation/translations/zh_CN/scheduler/sched-bwc.rst new file +10 -0
+
+:翻译:
+
+ 司延腾 Yanteng Si <[email protected]>
+
+:校译:
+
+
+
+.. _cn_scheduler_sched-bwc.rst:

Is there a reason for adding all of these labels? They are generally not used and just clutter up the documents. I think I would prefer to not see them unless they are needed, but if there's a reason to have them that I'm not seeing ... ?

Otherwise this set seems about ready to go.

Thanks,

jon

maintainer
#6 lore raw
In reply to Yanteng Si
Quoted 17 lines · Yanteng Si

v2:

* Pick Reviewed-by tag. (Patch 2/3 and 3/3)
* Modified some words under Alex's advices.

v1:

* Translate .../scheduler/sched-arch.rst and sched-bwc.rst into Chinese.
* When I translated sched-bwc, I fixed some errata along the way.
* fix a build warning in sched-bwc,I put them inside a patch or even in a series, so if I should split them, please let me know.

Yanteng Si (3):
docs/zh_CN: add scheduler sched-arch translation docs/zh_CN: add scheduler sched-bwc translation docs/scheduler: fix typo and warning in sched-bwc

Quoted 7 lines
 Documentation/scheduler/sched-bwc.rst         |   5 +-
 .../translations/zh_CN/scheduler/index.rst    |   3 +-
 .../zh_CN/scheduler/sched-arch.rst            |  78 +++++++
 .../zh_CN/scheduler/sched-bwc.rst             | 206 ++++++++++++++++++
 4 files changed, 288 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-arch.rst
 create mode 100644 Documentation/translations/zh_CN/scheduler/sched-bwc.rst

Set applied, thanks.

jon