From owner-freebsd-current@FreeBSD.ORG Tue Mar 11 04:24:57 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EA461065670 for ; Tue, 11 Mar 2008 04:24:57 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.242]) by mx1.freebsd.org (Postfix) with ESMTP id 2FAC18FC17 for ; Tue, 11 Mar 2008 04:24:57 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by hs-out-0708.google.com with SMTP id m63so1913607hsc.11 for ; Mon, 10 Mar 2008 21:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=i/A0H/PNawn1D8M3Zb0XQ5Pvl4UsByszhIh4X/gALIQ=; b=ZrUwcpOLAeH4sQszVyjv8dVMP3I9GThjfGJ7FwGxFZn5wJYiqw2aYFlOUEJQ3zKK6yDa+TyuDvmXzkvrBp+uIwIk9npLEmLACDWxZAZ1r6/dyUmiDIMSP37mqi3hMN83TYPDABqPIhh5VTURzZ09F3EGvnMfdwanR4YhNEYqE0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RzZrSIm0wmR/tuHuybcxKWV0FEyykxW6D8BQw9hUmoxUqPAKSgbRd3E7xSfORtNe2nIUbi+WUtCiCrmwMNYMW0u4dbcGJo4oHx4RHdQONYmR1Glte64dAA5B19xZcGWb8+VQbw0sChho7SxVMtAxT23Q9LqtDVeQ+fjaxJ96ZDE= Received: by 10.114.153.18 with SMTP id a18mr4409277wae.127.1205209495494; Mon, 10 Mar 2008 21:24:55 -0700 (PDT) Received: by 10.115.22.10 with HTTP; Mon, 10 Mar 2008 21:24:55 -0700 (PDT) Message-ID: Date: Mon, 10 Mar 2008 21:24:55 -0700 From: "Kip Macy" To: "Zaphod Beeblebrox" In-Reply-To: <5f67a8c40803101813k3a2b790dk57b67bc2d6f85d17@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47D544B1.6070806@bsdunix.ch> <47D5D2B2.90202@FreeBSD.org> <5f67a8c40803101813k3a2b790dk57b67bc2d6f85d17@mail.gmail.com> Cc: freebsd-fs@freebsd.org, current@freebsd.org, Thomas Vogt Subject: Re: vm_thread_new: kstack allocation failed with many ZFS FS and NFSD 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: Tue, 11 Mar 2008 04:24:57 -0000 On Mon, Mar 10, 2008 at 6:13 PM, Zaphod Beeblebrox wrote: > On Mon, Mar 10, 2008 at 8:30 PM, Kris Kennaway wrote: > > > > Your kernel has run out of memory. If you cannot tune kmem_size further > > then it cannot handle this many ZFS filesystems. > > > Roughly how much kernel memory does a filesystem use (even if inactive) --- > or did you really mean something like too many pools? > > The ZFS documentation encourages creating filesystems for everything. I > think my (rather beafy) laptop has 20 filesystems now for various tasks --- > but I didn't realize there was a non-trivial cost (that is: a cost beyond > the mount structure, root vnodes and whatnot)... There may be kernel threads created for each file system. One way to look at it is that a process isn't that expensive, but FreeBSD probably couldn't cope very well with 5000 processes. -Kip