how to stop spam in /var/log/kernel.log

Post Reply
Zaren
Posts: 62
Joined: Wed Nov 08, 2017 7:12 am
languages_spoken: english
ODROIDs: ODROID C1+, XU4
Location: Poland
Has thanked: 20 times
Been thanked: 0
Contact:

how to stop spam in /var/log/kernel.log

Unread post by Zaren » Tue Oct 22, 2019 3:49 am

Hello!

Then, I found my free space is over. The reason is that /var/log/system 3.5Gb and /var/log/kernel.log 3.5Gb.
Following messages to add in those files every seconds:

Code: Select all

Oct 20 21:32:53 odroid kernel: [ 2779.273225@2] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:32:55 odroid kernel: [ 2781.281878@3] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:32:57 odroid kernel: [ 2783.291141@1] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:32:59 odroid kernel: [ 2785.299509@2] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:01 odroid kernel: [ 2787.308067@3] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:03 odroid kernel: [ 2789.316045@3] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:05 odroid kernel: [ 2791.324579@0] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:07 odroid kernel: [ 2793.333178@3] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:09 odroid kernel: [ 2795.342494@0] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:11 odroid kernel: [ 2797.351522@1] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
Oct 20 21:33:13 odroid kernel: [ 2799.361076@3] gpiomem-meson c1108000.gpiomem: gpiomem device opened.
How to stop this spam?

Thanks,

joshua.yang
Posts: 284
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 2 times
Been thanked: 40 times
Contact:

Re: how to stop spam in /var/log/kernel.log

Unread post by joshua.yang » Tue Oct 22, 2019 11:17 am

That's because gpiomem driver prints its logs as kernel messages.

I'll let you know the updates as long as I optimize that.
These users thanked the author joshua.yang for the post:
Zaren (Fri Nov 01, 2019 1:48 pm)

joshua.yang
Posts: 284
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 2 times
Been thanked: 40 times
Contact:

Re: how to stop spam in /var/log/kernel.log

Unread post by joshua.yang » Fri Nov 01, 2019 11:51 am

Hi.

Sorry for the late reply.

I've tested after simply remove a line that printing a message when it opens.
Could you test with the attached kernel image? Unpack 191101_c1_3.10.107+_gpiomem_no_logs.zip and put those two files meson8b_odroidc.dtb, uImage into the OS card's boot partition.

I also attached the kernel patch file.
This can be merged into our kernel source tree later.
Attachments
0fa6969.diff.zip
(595 Bytes) Downloaded 8 times
191101_c1_3.10.107+_gpiomem_no_logs.zip
(4.9 MiB) Downloaded 7 times
These users thanked the author joshua.yang for the post:
Zaren (Fri Nov 01, 2019 1:48 pm)

Zaren
Posts: 62
Joined: Wed Nov 08, 2017 7:12 am
languages_spoken: english
ODROIDs: ODROID C1+, XU4
Location: Poland
Has thanked: 20 times
Been thanked: 0
Contact:

Re: how to stop spam in /var/log/kernel.log

Unread post by Zaren » Fri Nov 01, 2019 1:46 pm

Thanks! I will test it :) and let you know

Zaren
Posts: 62
Joined: Wed Nov 08, 2017 7:12 am
languages_spoken: english
ODROIDs: ODROID C1+, XU4
Location: Poland
Has thanked: 20 times
Been thanked: 0
Contact:

Re: how to stop spam in /var/log/kernel.log

Unread post by Zaren » Fri Nov 01, 2019 6:34 pm

It works! There is no any spam in those logs.

Thanks!

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests