netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Max Kellermann <max@duempel.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [conntrack-utils PATCH r7285 00/11] conntrackd with libevent
Date: Wed, 23 Jan 2008 13:07:45 +0100	[thread overview]
Message-ID: <47972E11.5040602@netfilter.org> (raw)
In-Reply-To: <20080122141034.30077.12083.stgit@rabbit.intern.cm-ag>

Hi Max,

Max Kellermann wrote:
> another patch series, some smaller fixes, and the big part is
> conntrackd with libevent.  While looking for a nice solutions for the
> "huge sorted list of alarms" scaling problem, I thought about storing
> alarms in some sort of tree.  After a quick look at libevent, I saw
> they did it exactly this way.  Let's benchmark libevent against the
> existing alarm library.  I don't think it's worth it to continue work
> on alarm.c, when well-tested code is already available in libevent.

I agree here. Using a tree should scale up better than the current alarm
hash table.

BTW, I have noticed that next release of libevent has replaced RB-tree
by a heap. One of my concerns with introducing a new library dependency
is this sort of changes as well as supporting conntrackd with way many
different versions of libevent. And probably, having people reporting
problems or different behaviours of conntrackd that are not my fault.
Don't get me wrong I have enough with bugs :). Also, I still think that
libevent is way to much since basically we would only be using their
alarm implementation. The current alarm scheduler is barely 200 lines long.

My experience is that synchronization software is a bit hard because
bugs are somehow more difficult to detect (you need a good testbed and
QA testing requires a considerable amount of time). If we introduce more
source code lines, chances to introduce bugs increase, for that reason I
try to keep it as simple as possible.

In any case, I'm going to benchmark your patch and get back to you.

> I did not update configure.ac yet to check for libevent, I am waiting
> for your benchmark results.

Never mind on the autoconf crap. Thanks for the libevent patch.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

  parent reply	other threads:[~2008-01-23 12:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22 14:10 [conntrack-utils PATCH r7285 00/11] conntrackd with libevent Max Kellermann
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 10/11] use libevent Max Kellermann
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 09/11] added handler callback to mcast_sock Max Kellermann
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 05/11] added missing ntohs() Max Kellermann
2008-01-23 11:07   ` Pablo Neira Ayuso
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 06/11] remove obsolete prototypes Max Kellermann
2008-01-23 11:15   ` Pablo Neira Ayuso
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 08/11] check if the received packet is large enough Max Kellermann
2008-01-23 11:46   ` Pablo Neira Ayuso
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 01/11] -1 means error, not 0 Max Kellermann
2008-01-23 10:16   ` Pablo Neira Ayuso
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 04/11] added alarm_pending() Max Kellermann
2008-01-23 11:50   ` Pablo Neira Ayuso
2008-01-23 11:58     ` Max Kellermann
2008-01-23 12:16       ` Pablo Neira Ayuso
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 03/11] moved process function pointer to struct local_server Max Kellermann
2008-01-23 10:45   ` Pablo Neira Ayuso
2008-01-23 10:52     ` Max Kellermann
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 11/11] remove the alarm library Max Kellermann
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 07/11] use size_t Max Kellermann
2008-01-23 12:29   ` Pablo Neira Ayuso
2008-01-23 12:37     ` Max Kellermann
2008-01-23 12:58       ` Pablo Neira Ayuso
2008-01-22 14:10 ` [conntrack-utils PATCH r7285 02/11] added struct local_server Max Kellermann
2008-01-23 10:36   ` Pablo Neira Ayuso
2008-01-23 12:07 ` Pablo Neira Ayuso [this message]
2008-01-23 12:26   ` [conntrack-utils PATCH r7285 00/11] conntrackd with libevent Max Kellermann
2008-01-23 12:50     ` Pablo Neira Ayuso
2008-01-25 18:01       ` Pablo Neira Ayuso
2008-01-25 18:03         ` Pablo Neira Ayuso

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=47972E11.5040602@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=max@duempel.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).