From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 24 12:17:50 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB9D2106566B; Fri, 24 Sep 2010 12:17:50 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C85568FC08; Fri, 24 Sep 2010 12:17:49 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA16338; Fri, 24 Sep 2010 15:17:47 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4C9C96EA.9060100@freebsd.org> Date: Fri, 24 Sep 2010 15:17:46 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Jeff Roberson References: <4C93236B.4050906@freebsd.org> <4C935F56.4030903@freebsd.org> <4C95C804.1010701@freebsd.org> <4C95CCDA.7010007@freebsd.org> <4C984E90.60507@freebsd.org> <4C99AF63.3000900@freebsd.org> In-Reply-To: <4C99AF63.3000900@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Jeff Roberson Subject: Re: zfs + uma X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 12:17:50 -0000 on 22/09/2010 10:25 Andriy Gapon said the following: > 2. patch that attempts to implement Jeff's three suggestions; I've tested > per-CPU cache size adaptive behavior, works well, but haven't tested per-CPU > cache draining yet: > http://people.freebsd.org/~avg/uma-2.diff Now I've fully tested this change, found out that it is a very bad idea to call cache_drain/cache_drain2 on UMA_ZFLAG_INTERNAL zones, and updated the patch. Everything seems to work as expected. -- Andriy Gapon