[systemd-bugs] [Bug 83221] New: systemd-journald rate limits on kernel messages

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 28 21:02:11 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83221

          Priority: medium
            Bug ID: 83221
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-journald rate limits on kernel messages
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: wzyboies at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

I can see there are some rate limits in /etc/systemd/journald.conf and the
default values, according to journald.conf(5) is "1000 messages in 30s". This
is nice. However, it seems that these limits do not apply to kernel messages.

My / partition is 10 GiB so journals by defaults take up to 1 GiB space, this
is enough for months of logs on my laptop. However, yesterday I encountered a
bug related to USB kernel module while traferring data from my laptop to my USB
device, this bug made the USB kernel module keep generating kernel messages
(that kind of [---cut here---] stuff) at a rate of thousands of lines per
second. These kernel messages quickly took up 1 GiB space and totally flushed
all the logs of previous months in a few minutes.

Generating more than 1 GiB of kernel messages in a few minutes is apprently
more than the defaults limit of "1000 messages in 30s", but journald did not
stop this kind of "stupid" behaviour.

May I suggest that journald should also apply the rate limit not only on
service messages, but also on kernel messages? This will help a lot when some
kernel module generates tons of messages.

Thanks.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140829/6ebb0dff/attachment.html>


More information about the systemd-bugs mailing list