From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 28 01:42:40 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 54410C83 for ; Sun, 28 Sep 2014 01:42:40 +0000 (UTC) Received: from smtp1.multiplay.co.uk (smtp1.multiplay.co.uk [85.236.96.35]) by mx1.freebsd.org (Postfix) with ESMTP id 193DCD1F for ; Sun, 28 Sep 2014 01:42:39 +0000 (UTC) Received: by smtp1.multiplay.co.uk (Postfix, from userid 65534) id 26A8720E7088F; Sun, 28 Sep 2014 01:42:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.multiplay.co.uk X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=8.0 tests=AWL,BAYES_00,DOS_OE_TO_MX, FSL_HELO_NON_FQDN_1,RDNS_DYNAMIC,STOX_REPLY_TYPE autolearn=no version=3.3.1 Received: from r2d2 (82-69-141-170.dsl.in-addr.zen.co.uk [82.69.141.170]) by smtp1.multiplay.co.uk (Postfix) with ESMTPS id 42E1820E7088B; Sun, 28 Sep 2014 01:42:30 +0000 (UTC) Message-ID: From: "Steven Hartland" To: "Bryan Venteicher" , References: Subject: Re: Change uma_mtx to rwlock Date: Sun, 28 Sep 2014 02:42:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2014 01:42:40 -0000 Out of interest does that include ZFS and its UMA zones, as we're currently investigating issues around this. Regards Steve ----- Original Message ----- From: "Bryan Venteicher" To: Sent: Sunday, September 28, 2014 1:59 AM Subject: Change uma_mtx to rwlock > Hi, > > I'd appreciate some comments attached patch that changes the uma_mtx to a > rwlock. > > At $JOB, we have machines with ~400GB RAM, with much of that being > allocated through UMA zones. We've observed that timeouts were sometimes > unexpectedly delayed by a half second or more. We tracked one of the > reasons for this down to when the page daemon was running, calling > uma_reclaim() -> zone_foreach(). zone_foreach() holds the uma_mtx while > zone_drain()'ing each zone. If uma_timeout() fires, it will block on the > uma_mtx when it tries to zone_timeout() each zone. > -------------------------------------------------------------------------------- > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"