File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,71 @@ if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
288288fi
289289```
290290
291+ ### 修改时钟(可选)
292+ ```
293+ vi /etc/rc.local
294+
295+ touch /var/lock/subsys/local
296+
297+ if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
298+ echo never > /sys/kernel/mm/transparent_hugepage/enabled
299+ fi
300+
301+ echo tsc > /sys/devices/system/clocksource/clocksource0/current_clocksource
302+ ```
303+
304+ 支持的时钟:
305+
306+ ```
307+ cat /sys/devices/system/clocksource/clocksource0/available_clocksource
308+ kvm-clock tsc acpi_pm
309+ ```
310+
311+ 修改时钟:
312+
313+ ```
314+ echo tsc > /sys/devices/system/clocksource/clocksource0/current_clocksource
315+ ```
316+
317+ 时钟性能:
318+
319+ ```
320+ kvm-clock:
321+
322+ pg_test_timing
323+ Testing timing overhead for 3 seconds.
324+ Per loop time including overhead: 38.05 ns
325+ Histogram of timing durations:
326+ < us % of total count
327+ 1 96.22568 75875976
328+ 2 3.76667 2970102
329+ 4 0.00055 435
330+ 8 0.00704 5550
331+ 16 0.00005 42
332+ 32 0.00000 1
333+ 64 0.00000 1
334+ 128 0.00000 0
335+ 256 0.00000 0
336+ 512 0.00000 0
337+ 1024 0.00000 1
338+
339+ tsc:
340+
341+ pg_test_timing
342+ Testing timing overhead for 3 seconds.
343+ Per loop time including overhead: 31.93 ns
344+ Histogram of timing durations:
345+ < us % of total count
346+ 1 96.82838 90964258
347+ 2 3.16507 2973390
348+ 4 0.00078 731
349+ 8 0.00574 5394
350+ 16 0.00003 26
351+ 32 0.00000 2
352+ ```
353+
354+ tsc 略好
355+
291356### 启动irqbalance服务
292357```
293358systemctl enable irqbalance
You can’t perform that action at this time.
0 commit comments