[RESOLVED] systemd missing first log messages with liquorix kernel
mbod
Status: Curious
Joined: 16 Jul 2020
Posts: 6
Reply Quote
I started to use liquorix kernel on Manjaro. Today I found out the the systemd journal is always missing the first 74 messages. This behaviour is true for the 5.7-10 as well as the most recent 5.7-12 release.

liquorix journal starts with this:

:: Code ::
-- Logs begin at Wed 2019-09-04 07:27:58 CEST, end at Fri 2020-07-17 10:16:26 CEST. --
Jul 16 21:56:30 leno systemd-journald[320]: Missed 74 kernel messages
Jul 16 21:56:30 leno kernel: ACPI: TPM2 0x00000000CB5F1000 000034 (v03 LENOVO TP-N23   00001490 PTEC 000>
Jul 16 21:56:30 leno kernel: ACPI: UEFI 0x00000000CB553000 000042 (v01 LENOVO TP-N23   00001490 PTEC 000>
Jul 16 21:56:30 leno kernel: ACPI: SSDT 0x00000000CB5ED000 0030DA (v02 LENOVO SaSsdt   00003000 INTL 201>


While the Manjaro kernel is logging everything:

:: Code ::
-- Logs begin at Wed 2019-09-04 07:27:58 CEST, end at Fri 2020-07-17 10:16:26 CEST. --
Jul 16 21:54:09 leno kernel: Linux version 5.4.50-1-MANJARO (builduser@development) (gcc version 10.1.0 (GCC)) #1 SMP PREEMPT Wed Jul 1 11:52:53 UTC 2020
Jul 16 21:54:09 leno kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=1007bcf0-ca09-4c14-8fd8-abddd6fbbd42 rw pcie_aspm=force quiet cryptdevice=UUID=fa116862-cf26-4a19-b5d3-c1dbc0f5857e:luks-fa116862-cf26-4a19-b5d3-c1dbc0f5857e:allow-discards root=/dev/mapper/luks-fa116862-cf26-4a19-b5d3-c1dbc0f5857e resume=/dev/mapper/luks-fa116862-cf26-4a19-b5d3-c1dbc0f5857e resume_offset=2135472
Jul 16 21:54:09 leno kernel: KERNEL supported cpus:
Jul 16 21:54:09 leno kernel:   Intel GenuineIntel
Jul 16 21:54:09 leno kernel:   AMD AuthenticAMD
Jul 16 21:54:09 leno kernel:   Hygon HygonGenuine
Jul 16 21:54:09 leno kernel:   Centaur CentaurHauls
Jul 16 21:54:09 leno kernel:   zhaoxin   Shanghai 
Jul 16 21:54:09 leno kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jul 16 21:54:09 leno kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jul 16 21:54:09 leno kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Jul 16 21:54:09 leno kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
Jul 16 21:54:09 leno kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
Jul 16 21:54:09 leno kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Jul 16 21:54:09 leno kernel: x86/fpu: xstate_offset[3]:  832, xstate_sizes[3]:   64
Jul 16 21:54:09 leno kernel: x86/fpu: xstate_offset[4]:  896, xstate_sizes[4]:   64
Jul 16 21:54:09 leno kernel: x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
Jul 16 21:54:09 leno kernel: BIOS-provided physical RAM map:
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000008bfff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x000000000008c000-0x00000000000fffff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000040000000-0x00000000403fffff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000040400000-0x000000005a819fff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x000000005a81a000-0x000000005a81bfff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x000000005a81c000-0x000000005b50cfff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x000000005b50d000-0x000000005b50dfff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x000000005b50e000-0x00000000c0a35fff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000c0a36000-0x00000000c0a36fff] ACPI NVS
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000c0a37000-0x00000000c0a37fff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000c0a38000-0x00000000ca39afff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000ca39b000-0x00000000ca469fff] type 20
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000ca46a000-0x00000000cb51bfff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000cb51c000-0x00000000cb599fff] ACPI NVS
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000cb59a000-0x00000000cb5fefff] ACPI data
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000cb5ff000-0x00000000cb5fffff] usable
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000cb600000-0x00000000cf7fffff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000f0000000-0x00000000f7ffffff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x00000000fe010000-0x00000000fe010fff] reserved
Jul 16 21:54:09 leno kernel: BIOS-e820: [mem 0x0000000100000000-0x000000022f7fffff] usable
Jul 16 21:54:09 leno kernel: NX (Execute Disable) protection: active
Jul 16 21:54:09 leno kernel: efi: EFI v2.50 by Lenovo
Jul 16 21:54:09 leno kernel: efi:  TPMFinalLog=0xcb592000  SMBIOS=0xca62f000  SMBIOS 3.0=0xca62c000  ACPI=0xcb5fe000  ACPI 2.0=0xcb5fe014  MPS=0xcaa48000  ESRT=0xca4b9000  MEMATTR=0xc5031018
Jul 16 21:54:09 leno kernel: SMBIOS 3.0.0 present.
Jul 16 21:54:09 leno kernel: DMI: LENOVO 20KHCT01WW/20KHCT01WW, BIOS N23ET74W (1.49 ) 06/03/2020
Jul 16 21:54:09 leno kernel: tsc: Detected 1800.000 MHz processor
Jul 16 21:54:09 leno kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
Jul 16 21:54:09 leno kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
Jul 16 21:54:09 leno kernel: last_pfn = 0x22f800 max_arch_pfn = 0x400000000
Jul 16 21:54:09 leno kernel: MTRR default type: write-back
Jul 16 21:54:09 leno kernel: MTRR fixed ranges enabled:
Jul 16 21:54:09 leno kernel:   00000-9FFFF write-back
Jul 16 21:54:09 leno kernel:   A0000-BFFFF uncachable
Jul 16 21:54:09 leno kernel:   C0000-FFFFF write-protect
Jul 16 21:54:09 leno kernel: MTRR variable ranges enabled:
Jul 16 21:54:09 leno kernel:   0 base 00E0000000 mask 7FE0000000 uncachable
Jul 16 21:54:09 leno kernel:   1 base 00D0000000 mask 7FF0000000 uncachable
Jul 16 21:54:09 leno kernel:   2 base 00CE000000 mask 7FFE000000 uncachable
Jul 16 21:54:09 leno kernel:   3 base 00CD000000 mask 7FFF000000 uncachable
Jul 16 21:54:09 leno kernel:   4 base 2000000000 mask 7000000000 uncachable
Jul 16 21:54:09 leno kernel:   5 disabled
Jul 16 21:54:09 leno kernel:   6 disabled
Jul 16 21:54:09 leno kernel:   7 disabled
Jul 16 21:54:09 leno kernel:   8 disabled
Jul 16 21:54:09 leno kernel:   9 disabled
Jul 16 21:54:09 leno kernel: x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT 
Jul 16 21:54:09 leno kernel: last_pfn = 0xcb600 max_arch_pfn = 0x400000000
Jul 16 21:54:09 leno kernel: esrt: Reserving ESRT space from 0x00000000ca4b9000 to 0x00000000ca4b90b0.
Jul 16 21:54:09 leno kernel: check: Scanning 1 areas for low memory corruption
Jul 16 21:54:09 leno kernel: Using GB pages for direct mapping
Jul 16 21:54:09 leno kernel: Secure boot could not be determined
Jul 16 21:54:09 leno kernel: RAMDISK: [mem 0x36015000-0x37001fff]
Jul 16 21:54:09 leno kernel: ACPI: Early table checksum verification disabled
Jul 16 21:54:09 leno kernel: ACPI: RSDP 0x00000000CB5FE014 000024 (v02 LENOVO)
Jul 16 21:54:09 leno kernel: ACPI: XSDT 0x00000000CB5B2188 00011C (v01 LENOVO TP-N23   00001490 PTEC 00000002)
Jul 16 21:54:09 leno kernel: ACPI: FACP 0x00000000CB5EB000 0000F4 (v05 LENOVO TP-N23   00001490 PTEC 00000002)
Jul 16 21:54:09 leno kernel: ACPI: DSDT 0x00000000CB5C0000 026DC4 (v02 LENOVO SKL      00000000 INTL 20160527)
Jul 16 21:54:09 leno kernel: ACPI: FACS 0x00000000CB53E000 000040
Jul 16 21:54:09 leno kernel: ACPI: SSDT 0x00000000CB5F3000 0099B2 (v02 LENOVO DptfTabl 00001000 INTL 20160527)
Jul 16 21:54:09 leno kernel: ACPI: SSDT 0x00000000CB5F2000 0003DB (v02 LENOVO Tpm2Tabl 00001000 INTL 20160527)

### and here is liquorix kernel starts to log

Jul 16 21:54:09 leno kernel: ACPI: TPM2 0x00000000CB5F1000 000034 (v03 LENOVO TP-N23   00001490 PTEC 00000002)
Jul 16 21:54:09 leno kernel: ACPI: UEFI 0x00000000CB553000 000042 (v01 LENOVO TP-N23   00001490 PTEC 00000002)
Jul 16 21:54:09 leno kernel: ACPI: SSDT 0x00000000CB5ED000 0030DA (v02 LENOVO SaSsdt   00003000 INTL 20160527)

Back to top
mbod
Status: Curious
Joined: 16 Jul 2020
Posts: 6
Reply Quote
I have to add that this is only true for my laptop while my desktop PC is logging fine.

And my laptop is using LUKS encryption for /.
Back to top
mbod
Status: Curious
Joined: 16 Jul 2020
Posts: 6
Reply Quote
I compared the kernel config files Manjaro vs. Liquorix. Could be that this issue is related to the kernel log buffer size:

:: Code ::
Manjaro has 128 kB:
CONFIG_LOG_BUF_SHIFT=17


:: Code ::
Liquorix has 64 kB:
CONFIG_LOG_BUF_SHIFT=16


Explanation: https://rajanvaja.wordpress.com/2015/06/04/how-to-change-linux-kernel-dmesg-buffer-size
Back to top
mbod
Status: Curious
Joined: 16 Jul 2020
Posts: 6
Reply Quote
Confirmed. I built a new kernel with
:: Code ::
CONFIG_LOG_BUF_SHIFT=17
and that solved the issue. The systemd log is complete now.

@damentz:
Can you make this a default setting?
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1143
Reply Quote
Hi mbod,

I increased the buffer [1] and this change will go out in the next release. Thanks for researching and finding the solution!

[1] github.com/damentz/liquorix-package/commit/d06d62821d44e252a370af476f17877c69d63a69
Back to top
Display posts from previous:   

All times are GMT - 8 Hours