From owner-freebsd-stable@freebsd.org Tue Nov 17 16:20:15 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73F91A31487 for ; Tue, 17 Nov 2015 16:20:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3BA5B1A0D for ; Tue, 17 Nov 2015 16:20:15 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by obbnk6 with SMTP id nk6so10452022obb.2 for ; Tue, 17 Nov 2015 08:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=B0RLH68yKp6Omz2zo8VG14lzpwFdBme4ulFdDBPZFdA=; b=LP85GbiJAUr4k3P6rqZ1yHdwih7ZRaL/ednSMrMfN7YgCDsQdf+I6IJdN9el8JN/8m CGnVwXwIsMtdS337EdaPUv60pv4eGtvueZHfAd37PKdjd1Dtn0Nu62OkieP2ZAzmxw7A N7bWghFF3i1O6CW2LBsRRAlPopDeSyAIB4s7Ot4hQqzvmf8wwd02WiqFbT+M01IZ1EBd TEJfUaoQTa2MBU/tgQPhg+GGZn2aqO1yvMgzWYAFhwpTvV/g3DavxXAEyobl08YGBd1H bI7PRgLFfeefoMal3a7+ebue5BXI093UZPUshx6LtgH0YgSGdQQsVbYpgHcfYeP3cGcE mabA== MIME-Version: 1.0 X-Received: by 10.182.165.131 with SMTP id yy3mr28380518obb.49.1447777214649; Tue, 17 Nov 2015 08:20:14 -0800 (PST) Sender: asomers@gmail.com Received: by 10.202.0.7 with HTTP; Tue, 17 Nov 2015 08:20:14 -0800 (PST) In-Reply-To: <20151117161627.GH35480@home.opsec.eu> References: <564B4736.3000100@gmail.com> <20151117161627.GH35480@home.opsec.eu> Date: Tue, 17 Nov 2015 09:20:14 -0700 X-Google-Sender-Auth: G1M-lrlEGciaRfC-IPX1tu8-HsQ Message-ID: Subject: Re: LACP with 3 interfaces. From: Alan Somers To: Kurt Jaeger Cc: Johan Hendriks , FreeBSD Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2015 16:20:15 -0000 On Tue, Nov 17, 2015 at 9:16 AM, Kurt Jaeger wrote: > Hi! > >> > Is there something we can do to make sure lagg0 uses all the interfaces. >> >> Nope. LACP doesn't actively load balance its interfaces. > > On FreeBSD 11 > > man lagg(4) > > says: > > The driver currently supports the aggregation protocols failover (the > default), lacp, loadbalance, roundrobin, broadcast, and none. > > with > > roundrobin Distributes outgoing traffic using a round-robin scheduler > through all active ports and accepts incoming traffic from > any active port. > > If the three ports are needed for sending, shouldn't this work ? > Be careful with roundrobin or loadbalance. Both of them will distribute outbound traffic across all ports, but at the expense of causing your NFS clients to receive out-of-order TCP packets. This increases their CPU load. You may find that performance with roundrobin is actually worse than with LACP because of the out-of-order issue. Also, neither roundrobin nor loadbalance will help distribute inbound traffic. -Alan