Skip to content

Commit 31ab6c1

Browse files
committed
Update ref/pgtesttiming.sgml
ref/pgtesttiming.sgml 调整内容191215: row178———————————————— 根据WinMerge比较结果,将 "<screen>" 调整为新内容 "<screen><![CDATA[" row194 根据row178英文内容更新,将 "<screen>" 调整为新翻译内容 "<screen><![CDATA[" row188———————————————— 根据WinMerge比较结果,将 "</screen>" 调整为新内容 "]]></screen>" row204 根据row188英文内容更新,将 "</screen>" 调整为新内容 "]]></screen>" row281———————————————— 根据WinMerge比较结果,将 "<screen>" 调整为新内容 "<screen><![CDATA[" row300 根据row281英文内容更新,将 "<screen>" 调整为新翻译内容 "<screen><![CDATA[" row294———————————————— 根据WinMerge比较结果,将 "</screen>" 调整为新内容 "]]></screen>" row313 根据row294英文内容更新,将 "</screen>" 调整为新内容 "]]></screen>" row370———————————————— 根据WinMerge比较结果,将 "<screen>" 调整为新内容 "<screen><![CDATA[" row392 根据row370英文内容更新,将 "<screen>" 调整为新翻译内容 "<screen><![CDATA[" row387———————————————— 根据WinMerge比较结果,将 "</screen></para>" 调整为新内容 "]]></screen></para>" row409 根据row387英文内容更新,将 "</screen></para>" 调整为新翻译内容 "]]></screen></para>" 其他更新 将英文原文中的</>补充相应tag
1 parent 4e219f2 commit 31ab6c1

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

postgresql/doc/src/sgml/ref/pgtesttiming.sgml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ____________________________________________________________________________-->
5555

5656
<!--==========================orignal english content==========================
5757
<para>
58-
<application>pg_test_timing</> is a tool to measure the timing overhead
58+
<application>pg_test_timing</application> is a tool to measure the timing overhead
5959
on your system and confirm that the system time never moves backwards.
6060
Systems that are slow to collect timing data can give less accurate
6161
<command>EXPLAIN ANALYZE</command> results.
@@ -93,8 +93,8 @@ ____________________________________________________________________________-->
9393
</varlistentry>
9494

9595
<varlistentry>
96-
<term><option>-V</></term>
97-
<term><option>-&minus;version</></term>
96+
<term><option>-V</option></term>
97+
<term><option>-&minus;version</option></term>
9898
<listitem>
9999
<para>
100100
Print the <application>pg_test_timing</application> version and exit.
@@ -103,8 +103,8 @@ ____________________________________________________________________________-->
103103
</varlistentry>
104104

105105
<varlistentry>
106-
<term><option>-?</></term>
107-
<term><option>-&minus;help</></term>
106+
<term><option>-?</option></term>
107+
<term><option>-&minus;help</option></term>
108108
<listitem>
109109
<para>
110110
Show help about <application>pg_test_timing</application> command line
@@ -175,7 +175,7 @@ ____________________________________________________________________________-->
175175
nanoseconds. This example from an Intel i7-860 system using a TSC clock
176176
source shows excellent performance:
177177

178-
<screen>
178+
<screen><![CDATA[
179179
Testing timing overhead for 3 seconds.
180180
Per loop time including overhead: 35.96 ns
181181
Histogram of timing durations:
@@ -185,13 +185,13 @@ Histogram of timing durations:
185185
4 0.00015 126
186186
8 0.00002 13
187187
16 0.00000 2
188-
</screen>
188+
]]></screen>
189189
</para>
190190
____________________________________________________________________________-->
191191
<para>
192192
好的结果将显示大部分(>90%)的单个计时调用用时都小于 1 微秒。每次循环的平均开销将会更低,低于 100 纳秒。下面的例子来自于一台使用了一份 TSC 时钟源码的 Intel i7-860 系统,它展示了非常好的性能:
193193

194-
<screen>
194+
<screen><![CDATA[
195195
Testing timing overhead for 3 seconds.
196196
Per loop time including overhead: 35.96 ns
197197
Histogram of timing durations:
@@ -201,7 +201,7 @@ Histogram of timing durations:
201201
4 0.00015 126
202202
8 0.00002 13
203203
16 0.00000 2
204-
</screen>
204+
]]></screen>
205205
</para>
206206

207207
<!--==========================orignal english content==========================
@@ -278,7 +278,7 @@ ____________________________________________________________________________-->
278278
possible from switching to the slower acpi_pm time source, on the same
279279
system used for the fast results above:
280280

281-
<screen>
281+
<screen><![CDATA[
282282
# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
283283
tsc hpet acpi_pm
284284
# echo acpi_pm > /sys/devices/system/clocksource/clocksource0/current_clocksource
@@ -291,13 +291,13 @@ Histogram of timing durations:
291291
4 0.07810 3241
292292
8 0.01357 563
293293
16 0.00007 3
294-
</screen>
294+
]]></screen>
295295
</para>
296296
____________________________________________________________________________-->
297297
<para>
298298
在一些较新的 Linux 系统上,可以在任何时候更改用来收集计时数据的时钟来源。第二个例子显示了在上述快速结果的相同系统上切换到较慢的 acpi_pm 时间源可能带来的降速:
299299

300-
<screen>
300+
<screen><![CDATA[
301301
# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
302302
tsc hpet acpi_pm
303303
# echo acpi_pm > /sys/devices/system/clocksource/clocksource0/current_clocksource
@@ -310,7 +310,7 @@ Histogram of timing durations:
310310
4 0.07810 3241
311311
8 0.01357 563
312312
16 0.00007 3
313-
</screen>
313+
]]></screen>
314314
</para>
315315

316316
<!--==========================orignal english content==========================
@@ -367,7 +367,7 @@ kern.timecounter.hardware: ACPI-fast -> TSC
367367
implementation, which can have good resolution when it's backed by fast
368368
enough timing hardware, as in this example:
369369

370-
<screen>
370+
<screen><![CDATA[
371371
$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
372372
jiffies
373373
$ dmesg | grep time.c
@@ -384,12 +384,12 @@ Histogram of timing durations:
384384
8 0.00007 22
385385
16 0.00000 1
386386
32 0.00000 1
387-
</screen></para>
387+
]]></screen></para>
388388
____________________________________________________________________________-->
389389
<para>
390390
其他系统可能只允许在启动时设定时间源。在旧的 Linux 系统上,“clock”内核设置是做这类更改的唯一方法。并且即使在一些更近的系统上,对于一个时钟源你将只能看到唯一的选项 "jiffies"。Jiffies 是老的 Linux 软件时钟实现,当有足够快的计时硬件支持时,它能够具有很好的解析度,就像在这个例子中:
391391

392-
<screen>
392+
<screen><![CDATA[
393393
$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
394394
jiffies
395395
$ dmesg | grep time.c
@@ -406,7 +406,7 @@ Histogram of timing durations:
406406
8 0.00007 22
407407
16 0.00000 1
408408
32 0.00000 1
409-
</screen></para>
409+
]]></screen></para>
410410

411411
</refsect2>
412412

0 commit comments

Comments
 (0)