All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Per bucket conntrack hash locking patch in p-o-m
@ 2003-11-21 11:43 Jozsef Kadlecsik
  2003-11-21 21:37 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Jozsef Kadlecsik @ 2003-11-21 11:43 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: jamal

Hi,

I have added three patches to patch-o-matic/extra:

conntrack_arefcount.patch:
	The revision of the refcounting/locking in conntrack. First, the
	original methods was not perfect at all (see Patrick's efforts in
	cleaning it up...), secondly it did not make possible to
	introduce per bucket lockings at all.
	As an outcome of the revision, init_conntrack could be made a
	little bit faster (read-lock against expectations instead of
	write-locking).

conntrack_locking.patch:
	The patch implements per bucket locking in the conntrack
	hash. The only task remained for the ip_conntrack lock is
	to protect the protocol/helper lists :-).

conntrack_nonat.patch:
	The patch implements an optimization in the per bucket
	locking for the case when there is no NAT support compiled
	into the code.

Any comments are highly welcomed.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Per bucket conntrack hash locking patch in p-o-m
  2003-11-21 11:43 [PATCH] Per bucket conntrack hash locking patch in p-o-m Jozsef Kadlecsik
@ 2003-11-21 21:37 ` Patrick McHardy
  2003-11-21 21:43   ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2003-11-21 21:37 UTC (permalink / raw)
  To: Jozsef Kadlecsik; +Cc: Netfilter Development Mailinglist, jamal

Hi Joszef,
I've just had a look at the diffs until now (I tried to apply them
to numerous kernels until reading the helpfiles ;)), but one thought:


Jozsef Kadlecsik wrote:

>conntrack_locking.patch:
>	The patch implements per bucket locking in the conntrack
>	hash. The only task remained for the ip_conntrack lock is
>	to protect the protocol/helper lists :-).
>  
>

Why not remove the lock for protocol_list completely ? It can never change
anyways ..

Best regards,
Patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Per bucket conntrack hash locking patch in p-o-m
  2003-11-21 21:37 ` Patrick McHardy
@ 2003-11-21 21:43   ` Patrick McHardy
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2003-11-21 21:43 UTC (permalink / raw)
  Cc: Jozsef Kadlecsik, Netfilter Development Mailinglist, jamal

Patrick McHardy wrote:

> Why not remove the lock for protocol_list completely ? It can never 
> change
> anyways ..


Ok now I feel stupid ;) I just looked inside ip_conntrack_core until 
noticing
that the list is not static.

Sorry for the noise ..
Patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-21 21:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21 11:43 [PATCH] Per bucket conntrack hash locking patch in p-o-m Jozsef Kadlecsik
2003-11-21 21:37 ` Patrick McHardy
2003-11-21 21:43   ` Patrick McHardy

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.