From owner-freebsd-fs@FreeBSD.ORG Tue May 11 15:44:08 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA0ED106566B; Tue, 11 May 2010 15:44:08 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id B71FA8FC17; Tue, 11 May 2010 15:44:08 +0000 (UTC) Received: by pvf33 with SMTP id 33so180876pvf.13 for ; Tue, 11 May 2010 08:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=I7Ttjeqml12bLItvH25RPky63uhyyLYSuEfjEPRWabU=; b=DrpzeTkty+B/OAl0GhzgMer8Ka2iJJjk9uEYsDVUxiHRBeLYrjKyZdSeQsV+Q72qxG AnwK5S9fkOawu2LC00GuMwgA98zqeys6ng8f9pJHRclfXXJxxno84q6as4pRKxmRwDEc LcsNJy2QMo+HkE1p97KPw9CGunNvfpiIbGc7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=tM409dXdJTpjyMxXsDWTQodL1wScQtv7QRRtvlksHF79G8REyTHDI4l/eAqTkADbdG wKp2IOLdUTzM5C/fmSotp1nt8Bj39JqXgDztGBTskuCA/a2BKHNU1+FHiNn6ig8zp++O rq7erdnsIHDVJYTQygUQshBQgG8cLhpurgCSo= MIME-Version: 1.0 Received: by 10.140.55.9 with SMTP id d9mr3946520rva.164.1273592647774; Tue, 11 May 2010 08:44:07 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.141.40.4 with HTTP; Tue, 11 May 2010 08:44:07 -0700 (PDT) In-Reply-To: <20100511152948.GC1667@garage.freebsd.pl> References: <4BE95F1F.5090009@zk.informjust.ua> <20100511152948.GC1667@garage.freebsd.pl> Date: Tue, 11 May 2010 08:44:07 -0700 X-Google-Sender-Auth: FN6l08r4um0rnWPQjH4xoYdqLNs Message-ID: From: Artem Belevich To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org, "Alexander V. Ribchansky" Subject: Re: Freebsd 8.0 kmem map too small X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2010 15:44:09 -0000 > Thanks for confirmation, I also suspected that. I'll turn using UMA for > zio allocations off. Perhaps on i386 only? memory fragmentation is only of concern if you don't have enough VM space. on amd64 it's easily solved by bumping vm.kmem_size up -- something that one's typically advised to do anyways. If I understand it correctly, without ZIO_USE_UMA, ZFS ARC allocations would normally be served from power-of-two zones. For relatively random allocations it would result in fair amount of waste for smaller sized allocations. The increase in apparent amount of wired memory is a bit of red herring. If ARC size is limited to below wired max and there's enough physical memory, then UMA caches may keep a lot of memory hanging on caches' free lists. That memory will be given up as soon as pagedaemon bothers to wake up. --Artem On Tue, May 11, 2010 at 8:29 AM, Pawel Jakub Dawidek wrot= e: > On Tue, May 11, 2010 at 04:43:59PM +0300, Alexander V. Ribchansky wrote: >> As Artem advised, I comment out >> >> CFLAGS+=3D-DZIO_USE_UMA in sys/modules/zfs/Makefile >> >> and things like to be "back in USSR :)" if seriously - all become as goo= d >> as before 18.04.2010 mega ZFS-MFC. >> While with UMA, Wired memory constantly grow up to kmem_max limit and th= an >> PANIC! :(, without it, Wired is approx 380 - 450M on typical 8-STABLE KD= E3 >> desktop with plain ZFS. >> So or there is something wrong with my (and many many other's people's) >> hands or UMA broke ZFS at all. >> >> Thank you, Artem for hint! I already start to think, that revert to >> pre-18.04.2010 8-STABLE is the only solution. > > Thanks for confirmation, I also suspected that. I'll turn using UMA for > zio allocations off. > > -- > Pawel Jakub Dawidek =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://ww= w.wheelsystems.com > pjd@FreeBSD.org =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http:= //www.FreeBSD.org > FreeBSD committer =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Am I Ev= il? Yes, I Am! >