From owner-freebsd-current@FreeBSD.ORG Fri Aug 23 20:54:56 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 052A0BB7; Fri, 23 Aug 2013 20:54:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 66EE92385; Fri, 23 Aug 2013 20:54:55 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id k13so965826wgh.13 for ; Fri, 23 Aug 2013 13:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=B6cii8RMsVvpqUUXf7f8r1U29CqcmEkDjUgOtw6+Yv0=; b=QxIi7QWdou+lCjo/oLvzQwPJXs9ce8UL+j6bND6aiKSY4d50D7VteAPlWWjEmrDhHj YMP1ehJTXKv7/VIXHaG7Bme0tgh8DL507WYxm1hiYk88iZhV94+MsFJsOpUsMIFeqVZW Av4vyWDtLVxXd63C8ckOuQIFyMDMRqlnTVaG+gFBW/W6vi0uGxD/RWAFvvJu4wH+JYTX 1RK4IW7/RbZs1nseyYhUM6eXu5I5sHJwVp9VvmzfKIAttqzMiBQaxWJV2Op0pr/17+R3 xaU0hEsdF8lcr96ifMLMS4mZJG7BjxZCZWUO8tMrAinfA1Y/erTw4AeWmJKcYeFWdOVm NwBw== MIME-Version: 1.0 X-Received: by 10.180.37.16 with SMTP id u16mr3472514wij.46.1377291293684; Fri, 23 Aug 2013 13:54:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Fri, 23 Aug 2013 13:54:53 -0700 (PDT) Date: Fri, 23 Aug 2013 13:54:53 -0700 X-Google-Sender-Auth: T1gehd6Gk12njPMV-BcuuI1pU1k Message-ID: Subject: [rfc] migrate lagg to an rmlock From: Adrian Chadd To: FreeBSD Net , freebsd-current Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 20:54:56 -0000 Hi, I'd like to commit this to -10. It migrates the if_lagg locking from a rw lock to a rm lock. We see a bit of contention between the transmit and receive sides of lagg during traffic loads (10+ gigabit per second.) Using rmlocks eliminate this. http://people.freebsd.org/~adrian/netflix/20130819-lagg-rmlock-1.diff Thanks, -adrian