From owner-freebsd-current@FreeBSD.ORG Thu Nov 27 11:11:09 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E60DB106564A for ; Thu, 27 Nov 2008 11:11:09 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 69FE58FC14 for ; Thu, 27 Nov 2008 11:11:09 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so1623800ugs.39 for ; Thu, 27 Nov 2008 03:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-pgp-agent:x-mailer; bh=MAQHQVVtkszPB8SLNe2TqK3cwfA62FU1uq/iyfFSd+g=; b=b4sDGnH/rlOy3JbwY8g1MdeJzzAijUIqilBJ4UbUxHaXGPfTaThdmHax70kBlfOsVY eql4OZbLF+Xb4mflMSGzYkKa69DOz7rh1rPJg4eB7EYuX9wZhDvfezurchGCbY5CBSJA IQg0ECBcpLyhWmv/jAFS9g6msNrRabRGm2sLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-pgp-agent:x-mailer; b=B7JAmQC1IP9rgbSJtmib9oEqkpikgIPRZEKzqSMJ/rRu+BbNTwTT1cbcX1N4UYA6KK iI3q2ZjJ9fD+0tm82uQq08LAhINqgjES995qxkIwgLF34rf8hOXBil7L6mOa3cbN5Z6H YD35ZLQjBiGGDmrjp13xH12ZoNkoEmpl+wLHY= Received: by 10.103.49.12 with SMTP id b12mr2576492muk.98.1227784267866; Thu, 27 Nov 2008 03:11:07 -0800 (PST) Received: from ndenev.cmotd.com (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id n10sm2640509mue.37.2008.11.27.03.11.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Nov 2008 03:11:06 -0800 (PST) Message-Id: <6F0A14C8-785A-4794-93A5-C3C2770FC231@gmail.com> From: Nikolay Denev To: Pawel Jakub Dawidek In-Reply-To: <64C828D5-3F3C-4AB8-9D12-4EAD30B11818@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Thu, 27 Nov 2008 13:11:03 +0200 References: <20081117205526.GC1733@garage.freebsd.pl> <8ECD400F-BFE3-4E31-94F0-39AF5F44FDAC@gmail.com> <20081119090307.GA81236@icarus.home.lan> <18E318DD-29FA-4E26-89CF-11B893B42E34@gmail.com> <20081121162518.GC6509@garage.freebsd.pl> <20081122230554.GC2016@garage.freebsd.pl> <8517A9FD-6420-413A-9190-10F3969DEF95@gmail.com> <976654BF-F7A0-41F9-8ECD-8CF76D97EEE9@gmail.com> <64C828D5-3F3C-4AB8-9D12-4EAD30B11818@gmail.com> X-Pgp-Agent: GPGMail d53 (v53, Leopard) X-Mailer: Apple Mail (2.929.2) Cc: freebsd-current@freebsd.org Subject: Re: HEADS UP: New ZFS in the tree. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 27 Nov 2008 11:11:10 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Pawel, I don't know if this is going to be helpful, but I did the following experiment : I've disabled all tuning in loader.conf, all values for arc_max, kmem_size and kmem_size_max are the defaults computed for amd64 machine with 4G of RAM. I've put debug printf()'s in the loop in vm/vm_kern.c:kern_malloc() printing the number of loops. I've increased the loop count in kern_malloc() from 8 to 100. I've also put debug printf()'s in the arc_lowmem() function in zfs's ARC cache, this should be the function that is called when the "vm_lowmem" event fires. Then I started one bonnie++ process and watched /var/log/messages. Several times the loopcount in kern_malloc() jumped from 0 to 2 or 3 maximum, and everything continued to work, but after 20-30 minutes they started to increase steadily and it took the machine another maybe 20 minutes to reach 99 loops and then panic again with kmem_map too small. I hope this makes sense. - -- Regards, Nikolay Denev -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (Darwin) iEYEARECAAYFAkkugEcACgkQHNAJ/fLbfrnJGACfSHq/dKJFBBecMWfElI35m/2C mwQAoLsafDZI/lALZO/Xr9i/MYbdkiUm =QTnU -----END PGP SIGNATURE-----