LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [PATCH] ipvs: optimize release of connections in OPS mode

To: Julian Anastasov <ja@xxxxxx>
Subject: Re: [PATCH] ipvs: optimize release of connections in OPS mode
Cc: Marco Angaroni <marcoangaroni@xxxxxxxxx>, lvs-devel@xxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Fri, 15 Apr 2016 10:16:08 +1000
On Sat, Apr 09, 2016 at 01:16:15PM +0300, Julian Anastasov wrote:
> 
>       Hello,
> 
> On Tue, 5 Apr 2016, Marco Angaroni wrote:
> 
> > One-packet-scheduling is the most expensive mode in IPVS from
> > performance point of view: for each packet to be processed a new
> > connection data structure is created and, after packet is sent,
> > deleted by starting a new timer set to expire immediately.
> > 
> > SIP persistent-engine needs OPS mode to have Call-ID based load
> > balancing, so OPS mode performance has negative impact in SIP
> > protocol load balancing.
> > 
> > This patch aims to improve performance of OPS mode by means of the
> > following changes in the release mechanism of OPS connections:
> > a) call expire callback ip_vs_conn_expire() directly instead of
> >    starting a timer programmed to fire immediately.
> > b) avoid call_rcu() overhead inside expire callback, since OPS
> >    connection are not inserted in the hash-table and last just the
> >    time to process the packet, hence there is no concurrent access
> >    to such data structures.
> > 
> > Signed-off-by: Marco Angaroni <marcoangaroni@xxxxxxxxx>
> 
>       Looks good to me. Simon, please apply.
> 
> Acked-by: Julian Anastasov <ja@xxxxxx>

Thanks, applied.
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>