Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
admin_grundlagen:uhrzeit [2023/05/04 08:25] ingo_wichmann |
admin_grundlagen:uhrzeit [2023/05/04 16:28] ingo_wichmann [Kernel] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Hardware ====== | ====== Hardware ====== | ||
===== x86 CPU ===== | ===== x86 CPU ===== | ||
- | Hat die CPU einen Constant Time Stamp Counter (TSC) | + | Hat die CPU einen Constant Time Stamp Counter (TSC)? |
grep -o constant_tsc /proc/cpuinfo | grep -o constant_tsc /proc/cpuinfo | ||
Zeile 7: | Zeile 7: | ||
journalctl -kg 'tsc|clocksource' | journalctl -kg 'tsc|clocksource' | ||
+ | ====== Kernel ====== | ||
+ | Welche Zeitquelle nutzt der Kernel? | ||
+ | cat /sys/devices/system/clocksource/clocksource0/current_clocksource | ||
+ | |||
+ | Welche kann er nutzen? | ||
+ | cat /sys/devices/system/clocksource/clocksource0/available_clocksource | ||
+ | -> mögliche Werte sind u.a.: kvm-clock tsc hpet acpi_pm | ||
+ | |||
+ | Kann mit dem Kernel-Parameter clocksource= verstellt werden. (( https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt )) | ||
+ | |||
+ | Der Linux Kernel stellt u.a. folgende Devices als Zeitquellen zur Verfügung: | ||
+ | |||
+ | Real Time Clock: | ||
+ | * ''/dev/rtc*'' | ||
+ | |||
+ | Precision Time Protocol (für Virtualisierungsgäste): | ||
+ | |||
+ | modprobe ptp_kvm | ||
+ | |||
+ | * ''/dev/ptp*'' | ||
+ | |||
+ | siehe auch [[chrony#precision_time_protocol_ptp_im_kvm_gast]] | ||
====== Systemuhr stellen ====== | ====== Systemuhr stellen ====== | ||
===== date ===== | ===== date ===== |