From: Patrick McHardy <kaber@trash.net>
To: Eric Leblond <eric@inl.fr>
Cc: victor@inl.fr,
Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>,
Vincent Deffontaines <vincent@inl.fr>
Subject: Re: libnetfilter_queue hang when flooding
Date: Sat, 29 Jul 2006 17:07:36 +0200 [thread overview]
Message-ID: <44CB79B8.3060502@trash.net> (raw)
In-Reply-To: <1154175007.8178.28.camel@localhost>
Eric Leblond wrote:
> Hi,
>
> I've proceed to some stress test of libnetfilter_queue using hping3.
>
> ./hping3 -p 5000 --flood localhost
>
>
> The main issue is that the recv buffer of the netlink socket gets full.
> We've got error 105 during recv.
> unbinding from queue 0
>
> I provide a patch to print error and avoid printf to be able to test
> performance of libnetfilter_queue.
>
> The problem is that when socket is full we disconnect and try to close
> the queue :
> got error 105 during recv.
> unbinding from queue 0
> It hangs here. gdb shows that we hang in recvmsg.
Its waiting for an ACK from the kernel .. which doesn't seem to
be very reasonable unless measures are taken in case it doesn't
arrive within some timeframe. So I think you could do one of:
- don't require an ACK
- implement timeouts and retransmissions in case ACK doesn't arrive
prev parent reply other threads:[~2006-07-29 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-29 12:10 libnetfilter_queue hang when flooding Eric Leblond
2006-07-29 15:07 ` Patrick McHardy [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=44CB79B8.3060502@trash.net \
--to=kaber@trash.net \
--cc=eric@inl.fr \
--cc=netfilter-devel@lists.netfilter.org \
--cc=victor@inl.fr \
--cc=vincent@inl.fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.