From owner-freebsd-questions@FreeBSD.ORG Sat Feb 26 04:12:29 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A353106564A for ; Sat, 26 Feb 2011 04:12:29 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id EFBA48FC08 for ; Sat, 26 Feb 2011 04:12:28 +0000 (UTC) Received: by fxm19 with SMTP id 19so2642281fxm.13 for ; Fri, 25 Feb 2011 20:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=0QRwBoyCE42I0jb51CPrGdEA4a3W02rgZnDZsUBvVLs=; b=NtnWfH/o3tWiHQBuO/2eV54dRYKMBh+LqCPOwniTXfi57e2RGvTJ4wZfVkfsRfoIYD 4idLZS41htd2gEZJizA2916TW70EjNhLNykwf4IvT1wY9QDuEVtkRqq4KJkZoARRVeXJ m2mfFaX7qHBFr7kyXD9DDp3DytGycl38LhkOU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=i1hZpriR39+c2/ZG4WUll4H1ztFVn6DzyRPQtbaaaJxRRpxzhj8DjJ1hoFdkbQGjFM yT8hAMGZnFEvMtJJem8yAUxbn1O9AOG8AbnAQV7Zfp8OzGESKHt9B684EIr706XtIziw q5WvSd4B1zNJOLGaIjh878ryZdm9vn/7uFXMs= MIME-Version: 1.0 Received: by 10.223.54.132 with SMTP id q4mr999933fag.117.1298693547869; Fri, 25 Feb 2011 20:12:27 -0800 (PST) Received: by 10.223.94.67 with HTTP; Fri, 25 Feb 2011 20:12:27 -0800 (PST) In-Reply-To: <41786.47452.qm@web110309.mail.gq1.yahoo.com> References: <20110225212941.BC56910656C4@hub.freebsd.org> <41786.47452.qm@web110309.mail.gq1.yahoo.com> Date: Fri, 25 Feb 2011 22:12:27 -0600 Message-ID: From: Adam Vande More To: Mark Terribile Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Kernel swap zone exhausted, what is the max allowed? FBSD 7.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2011 04:12:29 -0000 On Fri, Feb 25, 2011 at 5:11 PM, Mark Terribile wrote: > I don't explicitly set kern.maxswzone anywhere and it is at its apparent > maximum and default of 32M (33554432). > > Does anyone know if the maximum can be increased? (What actually is it > used for?) I do use lots of memory-intensive processes, most of them idle > much of the time. I see that it's involved with the stuff in the src/sys/vm > directory. Would someone give me a quick precis or pointer to what I need > to study to understand what would happen if I tried to boost this to 64M? > Well vbox% sysctl -ad kern.maxswzone kern.maxswzone: Maximum memory for swap metadata man 8 loader gives: kern.maxswzone Limits the amount of KVM to be used to hold swap meta information, which directly governs the maximum amount of swap the system can support. This value is specified in bytes of KVA space and defaults to 32MBytes on i386 and amd64. Care should be taken to not reduce this value such that the actual amount of configured swap exceeds 1/2 the kernel-supported swap. The default of 32MB allows the ker- nel to support a maximum of ~7GB of swap. Only change this parameter if you need to greatly extend the KVM reservation for other resources such as the buffer cache or kern.ipc.nmbclusters. Modifies kernel option VM_SWZONE_SIZE_MAX. -- Adam Vande More