From owner-freebsd-current@FreeBSD.ORG Wed Aug 14 16:21:48 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A9AB4E39; Wed, 14 Aug 2013 16:21:48 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-ea0-x233.google.com (mail-ea0-x233.google.com [IPv6:2a00:1450:4013:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 904AE256F; Wed, 14 Aug 2013 16:21:47 +0000 (UTC) Received: by mail-ea0-f179.google.com with SMTP id b10so4898137eae.24 for ; Wed, 14 Aug 2013 09:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ucb9vd4GczSwEWv8khwSZ81mBSOn+9RAEl1O1U2NLDs=; b=nczRcsXs0YLxG/4h37XCYIw4hNDdXRXKO/vmjCDnkH7U5ZmDIhy53P32SHszUD2W3h p9wUmkQTmxTUv4YIJT20RKcZAF/x0wps31GmqYMYontZaBpj3ZiyxjPF66cyzhY/LNZ3 Nv+VxmSwa0QI7BWfNMVVTN/LDdx2IcsMADZcTzZiKyXn2t8gIVznK9pMQFQX4e7AzOko eJuOjDn7kT0IGmT0I6oWZUccZZaREYTTeyJVRr4jeb55s8gmutCaleLeV4jFuPvAhKop iBy3X04/9NAfqZlzzgft3kfNG/LHLpmfhRUhioY3RGRt2WEeBGlEKmcSdktRW8nLjx9f AKLA== MIME-Version: 1.0 X-Received: by 10.15.90.132 with SMTP id q4mr1881051eez.98.1376497305739; Wed, 14 Aug 2013 09:21:45 -0700 (PDT) Received: by 10.14.143.80 with HTTP; Wed, 14 Aug 2013 09:21:45 -0700 (PDT) In-Reply-To: References: <5208A488.2050603@freebsd.org> Date: Wed, 14 Aug 2013 09:21:45 -0700 Message-ID: Subject: Re: panic: UMA: Increase vm.boot_pages with 32 CPUs From: Jim Harris To: Jeff Roberson Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Alan Cox , Attilio Rao , FreeBSD current , Konstantin Belousov , Colin Percival X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 14 Aug 2013 16:21:48 -0000 On Tue, Aug 13, 2013 at 8:47 PM, Jeff Roberson wrote: > On Tue, 13 Aug 2013, Jim Harris wrote: > > >> >> >> On Tue, Aug 13, 2013 at 3:05 PM, Jeff Roberson >> wrote: >> >> It's not any one commit really, just creeping demand for more pages >> before the VM can get started. I would suggest making boot pages >> scale with MAXCPU. Or just raising it as the panic suggests. We >> could rewrite the way that the vm gets these early pages but it's a >> lot of work and typically people just bump it and forget about it. >> >> >> I ran into this problem today when enabling hyperthreading on my >> dual-socket >> Xeon E5 system. >> >> It looks like r254025 is actually the culprit. Specifically, the new >> mallocinit()/kmeminit() now invoke the new vmem_init() before >> uma_startup2(), which allocates 16 zones out of the boot pages if I am >> reading this correctly. This is all done before uma_startup2() is called, >> triggering the panic. >> >> > I just disabled the quantum caches in vmem which allocate those 16 zones. > This may alleviate the problem for now. > > Thanks, > Jeff > > Yes - this does alleviate the problem. Thanks! -Jim