From owner-freebsd-stable@FreeBSD.ORG Mon Aug 27 08:52:00 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BB29106566C; Mon, 27 Aug 2012 08:52:00 +0000 (UTC) (envelope-from orientalsensation@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C74C48FC1F; Mon, 27 Aug 2012 08:51:59 +0000 (UTC) Received: by ialo14 with SMTP id o14so9690625ial.13 for ; Mon, 27 Aug 2012 01:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ribgMRgUmGbX9CyLizZUR1paZb47T8jPsOPXDHFR160=; b=HAAU1qhcfRjWAhWhAN9WxSCBFUFu3aLVaz9nqBFdZdquSgJtkVX8tEZBQN74H9ccnu pqTpPqEojXayoan0Gf+5Ektqke95Bny7g0xha+bXJgizPMX4vaxKMDGXSunoEfAA6gxi bhInOoRLFKQeJmZmADzFY+tk4R2hZwaw3/CrzPO/szCOCUXRi6TwpGSSNDc+Tes0jJG7 nHhXLclF1xAE3iW5ZIwiaO5Otr362sOSor76OUeuQL82/s3O9XiMVcNWWbljvJBkP2IR jiV1bNHfARfNoCeCDqsP6iKhAy8dyWkyJCUiIBSvCDjVnP0Zbdenfm8Ts+ztJpT3UjDC b8OQ== MIME-Version: 1.0 Received: by 10.50.183.231 with SMTP id ep7mr9275400igc.66.1346057519342; Mon, 27 Aug 2012 01:51:59 -0700 (PDT) Sender: orientalsensation@gmail.com Received: by 10.64.81.226 with HTTP; Mon, 27 Aug 2012 01:51:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Aug 2012 10:51:59 +0200 X-Google-Sender-Auth: mvxNc1qwv-ap1LfpjhuQsWsxeQU Message-ID: From: OriS To: Sergey Kandaurov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= Subject: Re: Weird message in dmesg X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 08:52:00 -0000 Yup, that seems to be the issue... I kept bumping up the value of kern.maxswzone until the warning disappeared. Should be incorporated into sources I guess. Thanks! :) Noor On Mon, Aug 27, 2012 at 10:26 AM, Sergey Kandaurov wrote: > On 27 August 2012 10:48, OriS wrote: > > Hello all, > > > > I have a strange warning message in dmesg: > > > > warning: total configured swap (15728640 pages) exceeds maximum > > recommended amount (22369984 pages). > > warning: increase kern.maxswzone or reduce amount of swap. > > > > (The configured pages are actually less than maximum) > > > > The value of kern.maxswzone in /boot/loader.conf is: > > > > kern.maxswzone=201326592 > > > > Anyone knows what's going on?! > > I think there is a typo. Should be: > > Index: /usr/src/sys/vm/swap_pager.c > =================================================================== > --- /usr/src/sys/vm/swap_pager.c (revision 239722) > +++ /usr/src/sys/vm/swap_pager.c (working copy) > @@ -2135,7 +2135,7 @@ swapon_check_swzone(unsigned long npages) > if (npages > maxpages / 2) { > printf("warning: total configured swap (%lu pages) " > "exceeds maximum recommended amount (%lu pages).\n", > - npages, maxpages); > + npages, maxpages / 2); > printf("warning: increase kern.maxswzone " > "or reduce amount of swap.\n"); > return (-1); > > -- > wbr, > pluknet >