-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19/11/2019 11.26, Martin Wilck wrote:
On Tue, 2019-11-19 at 10:01 +0100, Stefan Seyfried wrote:
And what's wrong with using "journalctl -k -b"?
First, it does not work.
seife@vbox-seife:/local> journalctl -k -b Hint: You are currently not seeing messages from other users and the system. Users in the 'systemd-journal' group can see all messages. Pass -q to turn off this notice.
Well, it tells you what to do to make it work, does it not?
Second, performance.
Try this on a 500-days-uptime machine running on slow rotating rust.
You should update more often :-) Joke aside, I haven't tried. I'm curious, how long does it take?
Up to half an hour with just a month of logs, last time I tried on rotating rust.
Anyway, would "dmesg" actually be useful on such a machine? The kernel log buffer might have wrapped and lost messages after such a long uptime. More often than not, you're only interested in the latest messages, for which you can use something like "journalctl --since -10m -k", which is much quicker than "journalctl -b -k".
It takes a bit of changing habits, but I've come to like the journalctl command a lot.
I'll have to remember that one. I just tried, but the journal doesn't have all the text. journal
Nov 19 12:51:55 Telcontar kernel: snd_hda_intel 0000:03:00.0: CORB reset timeout#1, CORBRP = 0 Nov 19 12:51:55 Telcontar kernel: pciehp 0000:00:1c.3:pcie004: Timeout on hotplug command 0x0018 (issued 1904 msec ago) Nov 19 12:51:55 Telcontar kernel: pciehp 0000:00:1c.2:pcie004: Timeout on hotplug command 0x0018 (issued 1904 msec ago) Nov 19 12:51:55 Telcontar kernel: pciehp 0000:00:1c.4:pcie004: Timeout on hotplug command 0x0018 (issued 1912 msec ago) Nov 19 12:51:55 Telcontar kernel: serial 00:02: activated Nov 19 12:51:55 Telcontar kernel: r8169 0000:07:00.0 eth1: link down Nov 19 12:51:55 Telcontar kernel: r8169 0000:06:00.0 eth0: link down Nov 19 12:51:55 Telcontar kernel: ata6: SATA link down (SStatus 0 SControl 300) Nov 19 12:51:55 Telcontar kernel: ata8: SATA link down (SStatus 0 SControl 300) Nov 19 12:51:55 Telcontar kernel: ata7: SATA link down (SStatus 0 SControl 300) Nov 19 12:51:55 Telcontar kernel: ata5: SATA link down (SStatus 0 SControl 300) Nov 19 12:51:55 Telcontar kernel: r8169 0000:06:00.0 eth0: link up Nov 19 12:51:55 Telcontar kernel: PM: restore of devices complete after 4106.678 msecs Nov 19 12:51:55 Telcontar kernel: PM: Trampoline freed Nov 19 12:51:55 Telcontar kernel: OOM killer enabled. Nov 19 12:51:55 Telcontar kernel: Restarting tasks ... done.
dmesg:
[50647.969674] snd_hda_intel 0000:03:00.0: CORB reset timeout#1, CORBRP = 0 [50647.973469] pciehp 0000:00:1c.3:pcie004: Timeout on hotplug command 0x0018 (issued 1904 msec ago) [50647.973471] pciehp 0000:00:1c.2:pcie004: Timeout on hotplug command 0x0018 (issued 1904 msec ago) [50647.981468] pciehp 0000:00:1c.4:pcie004: Timeout on hotplug command 0x0018 (issued 1912 msec ago) [50647.985588] serial 00:02: activated [50648.001725] r8169 0000:07:00.0 eth1: link down [50648.025736] r8169 0000:06:00.0 eth0: link down [50648.295594] ata6: SATA link down (SStatus 0 SControl 300) [50648.295597] ata8: SATA link down (SStatus 0 SControl 300) [50648.295641] ata7: SATA link down (SStatus 0 SControl 300) [50648.295648] ata5: SATA link down (SStatus 0 SControl 300) [50650.182723] r8169 0000:06:00.0 eth0: link up [50650.301711] PM: restore of devices complete after 4106.678 msecs [50650.302013] PM: Image restored successfully. ********** [50650.302015] PM: Trampoline freed [50650.302042] PM: Basic memory bitmaps freed ********** [50650.302043] OOM killer enabled. [50650.302044] Restarting tasks ... done.
The "**********" mark missing lines on the journal. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXdPo1gAKCRC1MxgcbY1H 1ZWCAJ0dY3xLFONA1ao1Th9u/epUFJjgKQCdGaThOuBuebiPMVaVgTHX3A+FJWw= =YFl1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org