Bug#1086341: logcheck-database: systemd rules - Consumed CPU time change

2025-04-28 Thread Mathias Gibbens
control: tags -1 + pending


signature.asc
Description: This is a digitally signed message part


Bug#1086341: logcheck-database: systemd rules - Consumed CPU time change

2024-11-14 Thread Richard Lewis
On Wed, 30 Oct 2024 11:58:34 +1100 Craig Small  wrote:

> The logcheck rule for system CPU time misses the new memory peak part.
>
> Current line in ignore.d.server/systemd:
> # possibly 
> https://sources.debian.org/src/systemd/252.4-1/src/core/unit.c/#L2307 (line 
> 2474 converts the "consumed"->"Consumed")?
> ^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ 
> systemd\[[0-9]+\]: [^ ]+: Consumed .+ CPU time\.$
>
> However logcheck prints things like:
> Oct 30 00:00:09 elmo systemd[1]: debci-update.service: Consumed 1.107s CPU 
> time, 46.7M memory peak.
>
> Suggested change:
> ^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ 
> systemd\[[0-9]+\]: [^ ]+: Consumed .+ CPU time(, .+ memory peak)?\.$

Looks good to me.

Looking at 
https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/src/core/unit.c/#L2308
i think, if i understand
lines 2350 and 2377, that it can also include a 'memory swap peak' as
well(?), but presumably that is rare enough we shouldn't include it to
the rule



Bug#1086341: logcheck-database: systemd rules - Consumed CPU time change

2024-11-10 Thread Richard Lewis
On Wed, 30 Oct 2024 at 01:09, Craig Small  wrote:

> ^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ 
> systemd\[[0-9]+\]: [^ ]+: Consumed .+ CPU time(, .+ memory peak)?\.$

Agree. Will fix this - it seems that it only sometimes prints the memory peak



Bug#1086341: logcheck-database: systemd rules - Consumed CPU time change

2024-10-29 Thread Craig Small
Package: logcheck-database
Version: 1.4.3
Severity: normal

The logcheck rule for system CPU time misses the new memory peak part.

Current line in ignore.d.server/systemd:
# possibly 
https://sources.debian.org/src/systemd/252.4-1/src/core/unit.c/#L2307 (line 
2474 converts the "consumed"->"Consumed")?
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ 
systemd\[[0-9]+\]: [^ ]+: Consumed .+ CPU time\.$

However logcheck prints things like:
Oct 30 00:00:09 elmo systemd[1]: debci-update.service: Consumed 1.107s CPU 
time, 46.7M memory peak.

Suggested change:
^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ 
systemd\[[0-9]+\]: [^ ]+: Consumed .+ CPU time(, .+ memory peak)?\.$


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.10.11-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled