From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo@netfilter.org>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [ulogd2 PATCH] ulogd: use a RT scheduler by default
Date: Wed, 20 Sep 2017 10:54:04 +0200 [thread overview]
Message-ID: <20170920085404.GB8896@salvia> (raw)
In-Reply-To: <CAOkSjBgKX2vzJeO90K8dsTJQOXiBf41Ti3r9wat9dyULs-eQgg@mail.gmail.com>
On Tue, Sep 19, 2017 at 05:59:44PM +0200, Arturo Borrero Gonzalez wrote:
> On 7 September 2017 at 13:36, Arturo Borrero Gonzalez
> <arturo@netfilter.org> wrote:
> > Is common that ulogd runs in scenarios where a lot of packets are to be logged.
> > If there are more packets than ulogd can handle, users can start seing log
> > messages like this:
> >
> > ulogd[556]: We are losing events. Please, consider using the clauses \
> > `netlink_socket_buffer_size' and `netlink_socket_buffer_maxsize'
> >
> > Which means that Netlink buffer overrun have happened.
> > There are several approaches to prevent this situation:
> >
> > * in the ruleset, limit the amount of packet queued for log
> > * in the ruleset, instruct the kernel to use a queue-threshold
> > * from userspace, increment Netlink buffer sizes
> > * from userspace, configure ulogd to run as high priority process
> >
> > The first 3 method can be configured by users at runtime.
> > This patch deals with the last method. SCHED_RR is configured by default,
> > with no associated configuration parameter for users, since I believe
> > this is common enough, and should produce no harm.
> >
> > A similar approach is used in the conntrackd daemon.
> >
> > Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
> > ---
> > src/ulogd.c | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
>
> Eric did ACK this via IRC, please someone push the patch.
Just pushed it out, thanks.
prev parent reply other threads:[~2017-09-20 8:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-07 11:36 [ulogd2 PATCH] ulogd: use a RT scheduler by default Arturo Borrero Gonzalez
2017-09-19 15:59 ` Arturo Borrero Gonzalez
2017-09-20 8:54 ` Pablo Neira Ayuso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170920085404.GB8896@salvia \
--to=pablo@netfilter.org \
--cc=arturo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).