Re: gap: journalctl vs ps
Philippe Strauss via gull <gull-04vmY7CpswVinyhjFObuvR+/[email protected]>
| Newsgroups | gmane.org.user-groups.gull.general |
|---|---|
| Message-ID | <[email protected]> |
un deux deux corrige ses timestamps d'après NTP non? l'autre reste du le temps de ta RTC avant le démarrage de NTP. à mon avis. Le lun., févr. 20 2023 at 08:34:38 +01:00:00, felix via gull <gull-04vmY7CpswVinyhjFObuvR+/[email protected]> a écrit : > Bonjour, > > Question aux experts à propos de journalctl: > > Si je fait: $ sudo journalctl -k -b -0 | head -n3 > Je vois les premières lignes de démarrage du système: > > -- Journal begins at Sun 2022-08-07 12:06:55 CEST, ends at Mon > 2023-02-20 08... > jan 09 15:07:39 magnet kernel: Linux version 5.10.0-20-amd64 > (debian-kernel@... > jan 09 15:07:39 magnet kernel: Command line: > BOOT_IMAGE=/boot/vmlinuz-5.10.0... > > Qui devrairent correspondre à # dmesg | head -n2 > [ 0.000000] Linux version 5.10.0-20-amd64 > ([email protected] > <mailto:[email protected]>... > [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-20-amd64 > root=/... > > Vu d'ici, ça à l'air bien, le soucis est que si je fait: # ps ho > lstart,cmd 1 > Mon Jan 9 15:07:26 2023 /sbin/init > > Je vois que ``init'' à démarré à 15:07:26, soit 13 secondes > **AVANT** le > kernel!? > > Ce n'est pas systématique: > > ssh user@raspberrypi /usr/bin/sudo /bin/bash <<<'echo $(( > $(date -f <( > LC_ALL=C journalctl -k -b -0 | sed -e > "2{s/$HOSTNAME.*//;q};d"; > LC_ALL=C ps ho lstart 1) +%s-)0))' > -50 > > Là, le gap est inversé: init à démarré 50" après le kernel. > > sur mon rasberrypi v2, j'ai -3354: init à démarré presqu'une heure > après... > mais surtout, sur un poste HP, j'ai 18" AVANT le kernel, sur mon poste > perso, j'ai 30", etc... > > Vos avis et observations!? > > -- > Félix Hauri - <[email protected] <mailto:[email protected]>> - > http://www.f-hauri.ch <http://www.f-hauri.ch/> > > _______________________________________________ > gull mailing list > gull-04vmY7CpswVinyhjFObuvR+/[email protected] <mailto:gull-04vmY7CpswVinyhjFObuvR+/[email protected]> > <https://forum.linux-gull.ch/mailman/listinfo/gull> _______________________________________________ gull mailing list [email protected] https://forum.linux-gull.ch/mailman/listinfo/gull