From owner-freebsd-current@FreeBSD.ORG Mon Jun 11 20:42:13 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 898B6106564A; Mon, 11 Jun 2012 20:42:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 032C18FC0A; Mon, 11 Jun 2012 20:42:11 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q5BKfwg8047229; Mon, 11 Jun 2012 23:41:58 +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.5/8.14.5) with ESMTP id q5BKfvQa050824; Mon, 11 Jun 2012 23:41:57 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q5BKfvHx050823; Mon, 11 Jun 2012 23:41:57 +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: Mon, 11 Jun 2012 23:41:57 +0300 From: Konstantin Belousov To: alc@freebsd.org Message-ID: <20120611204157.GG2337@deviant.kiev.zoral.com.ua> References: <6809F782-1D1F-4773-BAC5-BC3037C58B87@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OFj+1YLvsEfSXdCH" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Garrett Cooper , freebsd-current Subject: Re: 10-CURRENT and swap usage 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: Mon, 11 Jun 2012 20:42:13 -0000 --OFj+1YLvsEfSXdCH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 11, 2012 at 01:23:03PM -0500, Alan Cox wrote: > On Sat, Jun 9, 2012 at 9:26 PM, Garrett Cooper wrote: >=20 > > I build out of my UFS-only VM in VMware Fusion from time to time, > > and it looks like there's a large chunk of processes that are swapped o= ut > > when doing two parallel builds: > > > > last pid: 27644; load averages: 2.43, 0.94, 0.98 > > > > up 1+15:06:06 19:20:48 > > 79 processes: 4 running, 75 sleeping > > CPU: 77.3% user, 0.0% nice, 22.7% system, 0.0% interrupt, 0.0% idle > > Mem: 407M Active, 186M Inact, 208M Wired, 24M Cache, 110M Buf, 145M Free > > Swap: 1024M Total, 267M Used, 757M Free, 26% Inuse > > > > I know that some minor changes have gone in in the past couple > > months to change when swapping and page ins/outs would occur, but I was > > wondering if this behavior was intended; I'm finding it a bit bizarre t= hat > > there's ~150MB free, ~180MB inactive, and 267MB swapped out as previous > > experience has dictated that swap is basically untouched except in extr= eme > > circumstances. > > >=20 > I can't think of any change in the past couple months that would have this > effect. Specifically, I don't recall there having been any change that > would make the page daemon more (or less aggressive) in laundering dirty > pages. >=20 > Keep in mind that gcc at higher optimization levels can and will use a lot > of memory, i.e., hundreds of megabytes. The new jemalloc in debugging mode uses much more anonymous memory now. And since typical compiler process is relatively short-lived, the picture posted probably related to some memory hog recently finished a run. --OFj+1YLvsEfSXdCH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/WWBUACgkQC3+MBN1Mb4jBkwCfXLda4TAX7xQZGnilQMxOyQRz e/IAoKSWvYN+m3azj8GNGyBZxh1AcYcd =wErp -----END PGP SIGNATURE----- --OFj+1YLvsEfSXdCH--