netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Julian Anastasov <ja@ssi.bg>
Cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH net-next 00/19] IPVS optimizations, part 2
Date: Thu, 28 Mar 2013 14:41:28 +0900	[thread overview]
Message-ID: <20130328054127.GC10171@verge.net.au> (raw)
In-Reply-To: <1363945614-11752-1-git-send-email-ja@ssi.bg>

On Fri, Mar 22, 2013 at 11:46:35AM +0200, Julian Anastasov wrote:
> 	This is the second patchset with IPVS optimizations.
> Now we convert the schedulers, dests and services to RCU.
> 
> 	All patches are for net-next based on the first
> patchset v3. The idea is after discussion and review Simon to
> apply the patchset after a week or so to ipvs-next tree.
> 
> 	The changes in this patchset eliminate global locks
> from packet processing by using RCU. There are more details
> in the patches.
> 
> 	After this patchset the situation is as follows:
> 
> - dests:
> 	- lookups under RCU lock allow ip_vs_dest_hold, used
> 	for binding dest to conn or to select dest by scheduler
> 	- dests are freed by dest_trash code long after grace period
> 
> - services:
> 	- no global read_lock
> 	- lookups under RCU lock allow scheduler to select
> 	dests under RCU lock
> 	- grace period implemented with IP_VS_WAIT_WHILE is
> 	gone allowing scheduler's dest selection and scheduler
> 	reconfiguration to run in parallel
> 
> - schedulers:
> 	- schedule method runs under RCU lock, needs _rcu
> 	if using svc->destinations, needs _bh suffix to locks
> 	because it can be called in LOCAL_OUT hook
> 	- when dest is added, the add_dest method is called
> 	instead of update_service
> 	- when dest is deleted, the del_dest method is called
> 	instead of update_service
> 	- when dest is updated, the upd_dest method is called
> 	instead of update_service
> 	- scheduler can hold dests in its state long after they are
> 	unlinked from svc, even without providing del_dest handler.
> 	But such dests must not be returned by the
> 	schedule method (needs IP_VS_DEST_F_AVAILABLE check)
> 	- sched_data must be freed after grace period and
> 	module exit should be delayed with synchronize_rcu
> 	to wait all RCU read-side critical sections to
> 	complete
> 
> - BH:
> 	- we do not disable BHs in LOCAL_OUT and sync code anymore
> 	- _bh suffixes are added to all places that need them,
> 	except timer handlers

Hi Julian,

what is the status of this series?

N.B: THis series is different to "[PATCH 00/15 v3] IPVS optimizations (repost)"

  parent reply	other threads:[~2013-03-28  5:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22  9:46 [PATCH net-next 00/19] IPVS optimizations, part 2 Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 01/19] ipvs: change ip_vs_sched_lock to mutex Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 02/19] ipvs: preparations for using rcu in schedulers Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 03/19] ipvs: add ip_vs_dest_hold and ip_vs_dest_put Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 04/19] ipvs: convert dh scheduler to rcu Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 05/19] ipvs: convert lblc " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 06/19] ipvs: convert lblcr " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 07/19] ipvs: convert lc " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 08/19] ipvs: convert nq " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 09/19] ipvs: convert rr " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 10/19] ipvs: convert sed " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 11/19] ipvs: convert sh " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 12/19] ipvs: convert wlc " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 13/19] ipvs: convert wrr " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 14/19] ipvs: reorganize dest trash Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 15/19] ipvs: do not expect result from done_service Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 16/19] ipvs: convert sched_lock to spin lock Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 17/19] ipvs: convert dests to rcu Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 18/19] ipvs: convert services " Julian Anastasov
2013-03-22  9:46 ` [PATCH net-next 19/19] ipvs: do not disable bh for long time Julian Anastasov
2013-03-28  5:41 ` Simon Horman [this message]
2013-03-28  8:57   ` [PATCH net-next 00/19] IPVS optimizations, part 2 Julian Anastasov
2013-03-28  9:05     ` Simon Horman

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=20130328054127.GC10171@verge.net.au \
    --to=horms@verge.net.au \
    --cc=ja@ssi.bg \
    --cc=lvs-devel@vger.kernel.org \
    --cc=netdev@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).