All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Schaaf <bof@bof.de>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Patrick Schaaf <bof@bof.de>,
	Martin Josefsson <gandalf@wlug.westbo.se>,
	Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
	Rolf Fokkens <fokkensr@fokkensr.vertis.nl>,
	Harald Welte <laforge@netfilter.org>,
	Netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: PATCH: extra conntrack stats
Date: Thu, 1 May 2003 09:04:08 +0200	[thread overview]
Message-ID: <20030501070408.GD15143@oknodo.bof.de> (raw)
In-Reply-To: <20030501064732.ADD9C2C003@lists.samba.org>

On Thu, May 01, 2003 at 04:46:44PM +1000, Rusty Russell wrote:
> In message <20030501060522.GB15143@oknodo.bof.de> you write:
> > > 	struct nf_ct_info infos[IP_CT_NUMBER];
> > > 7 * 4 bytes.  We could eliminate this by adding an skb field to hold
> > > the state.
> > 
> > Given a guaranteed cacheline alignment of our 'struct ip_conntrack',
> > we could make the current pointer on the skbuffs a tagged pointer,
> > i.e. stuff our 3 info bits into the low 3 bits, without consuming
> > more room in the skbuffs.
> 
> That was my original implementation.  It was fairly ugly, but worse, I
> can imagine an arch where it would break.  None would at the moment,
> though, since kmalloc cacheline aligns

This boils down to the question whether SLAB_HWCACHE_ALIGN is a guarantee,
or a hint. I would have expected it to be a guarantee.

Argh. Are you worried about architectures with 8 byte or less cache lines?

Well, use another field in the skbuff, then. I would recycle nfcache,
but that's just because nobody ever explained to me what it would be
used for... :)

> (although we'd have to be a
> little careful to explicitly align a conntrack if we were to use a
> dummy one for a "notrack" target.

Unless you are after static initializability, what keeps us from
allocating such dummies in the same way as we allocate the rest?

best regards
  Patrick

  reply	other threads:[~2003-05-01  7:04 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-19 21:42 PATCH: extra conntrack stats Rolf Fokkens
2003-04-25  8:23 ` Patrick Schaaf
2003-04-27 12:48 ` Harald Welte
2003-04-27 15:23   ` Rolf Fokkens
2003-04-27 20:42     ` Harald Welte
2003-04-28  6:13       ` Patrick Schaaf
2003-04-29 22:15     ` Jozsef Kadlecsik
2003-04-29 22:38       ` Martin Josefsson
2003-04-30 10:49         ` Jozsef Kadlecsik
2003-04-30 11:19           ` Martin Josefsson
2003-04-30 23:05             ` Martin Josefsson
2003-05-01  4:05               ` Rusty Russell
2003-05-01  6:05                 ` Patrick Schaaf
2003-05-01  6:46                   ` Rusty Russell
2003-05-01  7:04                     ` Patrick Schaaf [this message]
2003-05-01  7:38                       ` Rusty Russell
2003-05-01  9:58                 ` Martin Josefsson
2003-05-01 11:32                 ` Harald Welte
2003-05-01 11:26               ` Harald Welte
2003-05-02 12:18                 ` Jozsef Kadlecsik
2003-05-02 12:30                   ` Martin Josefsson
2003-05-02 21:51                     ` Jozsef Kadlecsik
2003-05-02 21:58                       ` Martin Josefsson
2003-05-05  9:24                         ` Jozsef Kadlecsik
2003-05-05 12:38                         ` Jozsef Kadlecsik
2003-05-05 13:07                           ` Martin Josefsson
2003-05-01  0:06           ` Rusty Russell
2003-05-01  5:48             ` Patrick Schaaf
2003-05-01 10:01               ` Martin Josefsson
2003-05-01  9:06             ` Martin Josefsson
2003-05-02  5:31               ` Rusty Russell
2003-05-02  7:06                 ` Patrick Schaaf
2003-05-02  8:57                   ` Rusty Russell
2003-05-02  9:54                     ` SNAT and IP ID Patrick Schaaf
2003-05-02 15:43                       ` Harald Welte
2003-05-05  8:43             ` PATCH: extra conntrack stats Jozsef Kadlecsik
2003-04-28  9:13 ` vecna
2003-04-28 13:47   ` Patrick Schaaf
2003-04-28 15:07     ` possible target SBALANCE ? vecna
2003-04-29 14:48       ` Harald Welte
2003-04-30 11:59         ` vecna
2003-04-30 13:02           ` Roberto Nibali

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=20030501070408.GD15143@oknodo.bof.de \
    --to=bof@bof.de \
    --cc=fokkensr@fokkensr.vertis.nl \
    --cc=gandalf@wlug.westbo.se \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=laforge@netfilter.org \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=rusty@rustcorp.com.au \
    /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.