From owner-freebsd-current@FreeBSD.ORG Mon Jun 11 22:07:21 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 97CD81065673; Mon, 11 Jun 2012 22:07:21 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3E22D8FC1A; Mon, 11 Jun 2012 22:07:21 +0000 (UTC) Received: by yhgm50 with SMTP id m50so3382979yhg.13 for ; Mon, 11 Jun 2012 15:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=rX6A5ohYIZxkdHE0FURkjSx4zF+racZgVcvQzwVCIIU=; b=POx2AgeNjDzgFJnECHHMW3PnTqXboF4k/WMFoVQ1nA4C5kgWmtY0maLEwSY5eMJoEz jTemSSj/ZMZxl9lWTaKQiWVbjviiOaDus0A2oXGHCwq3n8avMqeiQmZE3peSFfa2MDZ4 KmO3rLi7+11h1EV6JOubnTuKzX90gzULopaC3vN2T5kk6flvSKQpU9ONOzMD+ESDG1pl FrnYB75v0/JWkRlt2R4OfASmhJbVb8mq1uUy4Q5sj5pCjSTwtEJ56c7Zf/kFgk86o6dQ gTC8fuwlfZgmVxzPhPjBh1Mau+vIM9N7qziUo/HP8zEZiFGvuVEROJ8uq5qeSRZ4vsu5 +jJQ== MIME-Version: 1.0 Received: by 10.60.3.202 with SMTP id e10mr18129206oee.52.1339452440442; Mon, 11 Jun 2012 15:07:20 -0700 (PDT) Received: by 10.76.98.77 with HTTP; Mon, 11 Jun 2012 15:07:20 -0700 (PDT) In-Reply-To: <20120611204157.GG2337@deviant.kiev.zoral.com.ua> References: <6809F782-1D1F-4773-BAC5-BC3037C58B87@gmail.com> <20120611204157.GG2337@deviant.kiev.zoral.com.ua> Date: Mon, 11 Jun 2012 15:07:20 -0700 Message-ID: From: Garrett Cooper To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: alc@freebsd.org, 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 22:07:21 -0000 On Mon, Jun 11, 2012 at 1:41 PM, Konstantin Belousov wrote: > On Mon, Jun 11, 2012 at 01:23:03PM -0500, Alan Cox wrote: >> On Sat, Jun 9, 2012 at 9:26 PM, Garrett Cooper wrot= e: >> >> > =A0 =A0 =A0 =A0I build out of my UFS-only VM in VMware Fusion from tim= e to time, >> > and it looks like there's a large chunk of processes that are swapped = out >> > when doing two parallel builds: >> > >> > last pid: 27644; =A0load averages: =A02.43, =A00.94, =A00.98 >> > >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0up 1+15:06:= 06 =A019:20:48 >> > 79 processes: =A04 running, 75 sleeping >> > CPU: 77.3% user, =A00.0% nice, 22.7% system, =A00.0% interrupt, =A00.0= % idle >> > Mem: 407M Active, 186M Inact, 208M Wired, 24M Cache, 110M Buf, 145M Fr= ee >> > Swap: 1024M Total, 267M Used, 757M Free, 26% Inuse >> > >> > =A0 =A0 =A0 =A0I 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 wa= s >> > wondering if this behavior was intended; I'm finding it a bit bizarre = that >> > there's ~150MB free, ~180MB inactive, and 267MB swapped out as previou= s >> > experience has dictated that swap is basically untouched except in ext= reme >> > circumstances. >> > >> >> I can't think of any change in the past couple months that would have th= is >> effect. =A0Specifically, I don't recall there having been any change tha= t >> would make the page daemon more (or less aggressive) in laundering dirty >> pages. >> >> Keep in mind that gcc at higher optimization levels can and will use a l= ot >> 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. Good point -- that was another thing that crossed my mind (even though it stayed that way for quite a while).. I'll try the compile with MALLOC_PRODUCTION to see if the behavior differs quite a bit. Thanks! -Garrett