gap: journalctl vs ps

felix via gull <gull-04vmY7CpswVinyhjFObuvR+/[email protected]>
Newsgroups gmane.org.user-groups.gull.general
Message-ID <Y/[email protected]>
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]...
[    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]>  -  http://www.f-hauri.ch

_______________________________________________
gull mailing list
[email protected]
https://forum.linux-gull.ch/mailman/listinfo/gull
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.