diff options
| author | Willy Tu <wltu@google.com> | 2023-07-31 11:05:48 +0300 |
|---|---|---|
| committer | Willy Tu <wltu@google.com> | 2023-08-18 01:44:18 +0300 |
| commit | aea4d2fb923b93a3c7167cc39f2b45230fd7dd9e (patch) | |
| tree | 4f4abeb43b4025dfaaf4f804e08a97d4983d7084 /meta-openembedded/meta-python/recipes-devtools/python/python3-msgpack_1.0.5.bb | |
| parent | 3281cd38bb00d1dc09caac55e2a4f22f0ffbdf4d (diff) | |
| download | openbmc-aea4d2fb923b93a3c7167cc39f2b45230fd7dd9e.tar.xz | |
meta-google: rsyslog: Disable ForwardToSyslog
In rsyslog, the logs are read via the journal files like with
`journalctl`. The socket used by ForwardToSyslog is not used at all
(`run/systemd/journal/syslog`), so we will disable the forwarding to
avoid unnecessary work.
With the logs spamming the CPU usage of systemd-journald went down
after this change.
Before:
Always top 1 or two in CPU usage,
```
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
30892 root 20 0 23520 10108 9720 R 84.3 1.0 0:37.72 /usr/lib/systemd/systemd-journald
```
After:
Less CPU usage overall.
```
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
30976 root 20 0 23520 7608 7216 R 40.8 0.8 2:32.36 /usr/lib/systemd/systemd-journald
```
Reference:
- https://www.freedesktop.org/software/systemd/man/journald.conf.html#Forwarding%20to%20traditional%20syslog%20daemons
Change-Id: I50cf868d63697fc9b72529863bb83d249f3275c7
Signed-off-by: Willy Tu <wltu@google.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-msgpack_1.0.5.bb')
0 files changed, 0 insertions, 0 deletions
