From owner-freebsd-current@FreeBSD.ORG Tue Jan 22 23:22:43 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7ABCC6EC; Tue, 22 Jan 2013 23:22:43 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx1.freebsd.org (Postfix) with ESMTP id D1DE9CB7; Tue, 22 Jan 2013 23:22:42 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id fy7so4018112vcb.4 for ; Tue, 22 Jan 2013 15:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=QVYpoF9mNN/yWXsdDowaIcwb0yfm0+A5bqqZZTqm0Ng=; b=tkfxzg9/ps834gRnfNd9iCycmE1JYhvgRyMDRgvyIZVOY7b/dK/DdWeT51agJx0njM 8e3y2P3NaPjyqtAWL2/ATuAZndg04tubHMoo8wSMYd+IvibVVwCfhctdz3zGR0sjdzjO Wtz1MmaDVlnBaO2EsfBXO0ai5FRLnWBw8uxgz3Vcr0Cx0vSw/HtjPXVMfWr9RWjDdyVO p4cZCUiarMrVK9oxO2MWkGvS80GLAn4eUsqwNFdt/32z7J60jMZJ+1V6alPazR7vsGcU gne0ZfVMTrqxcyKMBUGlzq93eZUfMmzDH9yLl7SVZ217y+/b8amVt05yT1XV4EQcbPkc SK5g== MIME-Version: 1.0 X-Received: by 10.52.67.45 with SMTP id k13mr23456165vdt.9.1358896956102; Tue, 22 Jan 2013 15:22:36 -0800 (PST) Sender: artemb@gmail.com Received: by 10.220.122.196 with HTTP; Tue, 22 Jan 2013 15:22:35 -0800 (PST) In-Reply-To: <20130121210645.GC1341@garage.freebsd.pl> References: <50F96A67.9080203@freebsd.org> <20130121210645.GC1341@garage.freebsd.pl> Date: Tue, 22 Jan 2013 15:22:35 -0800 X-Google-Sender-Auth: Wy68ekTm74emE4euEUDfVS6eJ2s Message-ID: Subject: Re: kmem_map auto-sizing and size dependencies From: Artem Belevich To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Cc: Matthew Fleming , FreeBSD Current , Andre Oppermann , freebsd-hackers 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: Tue, 22 Jan 2013 23:22:43 -0000 On Mon, Jan 21, 2013 at 1:06 PM, Pawel Jakub Dawidek wrote: > On Fri, Jan 18, 2013 at 08:26:04AM -0800, mdf@FreeBSD.org wrote: >> > Should it be set to a larger initial value based on min(physical,KVM) space >> > available? >> >> It needs to be smaller than the physical space, [...] > > Or larger, as the address space can get fragmented and you might not be > able to allocate memory even if you have physical pages available. +1 for relaxing upper limit. I routinely patch all my systems that use ZFS to allow kmem_map size to be larger than physical memory. Otherwise on a system where most of RAM goes towards ZFS ARC I used to eventually run into dreaded kmem_map too small panic. --Artem