From owner-freebsd-current@FreeBSD.ORG Sun Jun 15 11:12: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 47893106567F; Sun, 15 Jun 2008 11:12:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id B5EA28FC0A; Sun, 15 Jun 2008 11:12:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m5FBHEBc014761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Jun 2008 14:17:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m5FBCqTu038948; Sun, 15 Jun 2008 14:12:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m5FBCqxm038947; Sun, 15 Jun 2008 14:12:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 15 Jun 2008 14:12:52 +0300 From: Kostik Belousov To: Dmitry Morozovsky Message-ID: <20080615111252.GC94309@deviant.kiev.zoral.com.ua> References: <20080615130037.J43777@woozle.rinet.ru> <20080615101918.GA94309@deviant.kiev.zoral.com.ua> <20080615145943.X43777@woozle.rinet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JeObzbN4jAL/QUby" Content-Disposition: inline In-Reply-To: <20080615145943.X43777@woozle.rinet.ru> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: delphij@freebsd.org, current@freebsd.org Subject: Re: tmpfs panic 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: Sun, 15 Jun 2008 11:12:57 -0000 --JeObzbN4jAL/QUby Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 15, 2008 at 03:05:45PM +0400, Dmitry Morozovsky wrote: > On Sun, 15 Jun 2008, Kostik Belousov wrote: >=20 > KB> On Sun, Jun 15, 2008 at 01:06:24PM +0400, Dmitry Morozovsky wrote: > KB> > Hi there, > KB> >=20 > KB> > at contemporary RELENG_7/amd64 >=20 > [snip] >=20 >=20 > KB> I suspect this may be my mistake. > KB> IN case you can reproduce it, please, try the patch below. >=20 > Will try, thank you.=20 >=20 > KB> > Also, active tmpfs usage easy leads to "swap zone exhausted, increa= se > KB> > kern.maxswzone", even with 2G RAM + 4G swap and approx 2-3G of tmpfs > KB> > in use -- any hints? > KB>=20 > KB> I think the message is pretty much self-explanatory. Kernel tried to > KB> allocate the meatadata to track the swap metadata, and zone appears > KB> exhausted. It is not the swap space shortage. Instead, this is kernel > KB> zone used to track swap allocation shortage. > KB>=20 > KB> It is quite non-obvious how to automatically tune this limit, since z= one > KB> is allocated before swap is configured. >=20 > Well, but loader(8) man page said: > The default of 32MB allows the kernel to support a maximum of ~7GB of s= wap.=20 >=20 > and I have only 4G, and system freezes with maxswzone exaustion well befo= re=20 > that... I suspect that the estimation both outdated and arch-specific (i.e. at least divide it by two for amd64). --JeObzbN4jAL/QUby Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhU+TMACgkQC3+MBN1Mb4jDfwCfWz7wlbfPVmNyO0dC1NIDMfGt OLMAoJhreFqt4MBNd/45z9AXevXBzdL2 =NX87 -----END PGP SIGNATURE----- --JeObzbN4jAL/QUby--