From owner-freebsd-current@FreeBSD.ORG Mon Jun 11 18:23:04 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 CB35E106566C for ; Mon, 11 Jun 2012 18:23:04 +0000 (UTC) (envelope-from alan.l.cox@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6195F8FC17 for ; Mon, 11 Jun 2012 18:23:04 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so6232972pbb.13 for ; Mon, 11 Jun 2012 11:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=++6gUW1FtTG2VJ+Px9tIQblHsN0wTObi+iJuXp4jppM=; b=vPjv4WBYYS+Uic6bH9vzzlK4k+UgjRNSYWUYrOForfCSkiYmoC83+gOD21YAF7Y6iG 3JL7cVLsVp1DjH11u41HWPp4JBLHPqHsaYg3NKOeEbA+pkPLPuWR4z5v5m6i8jwBinah p/kPuOCaqSni8wt3tmPpa5o+GRb2jPcctEUCcn16aS4eWY5HTcyIRByjj3gHQrXxEcO3 r0ur57jZPKzcRyl20wb6979Cl30RTTnAPHh3/KQXsRo6MGszEnqXUl12+IJGJCLVZj9w kgnTzbjTISFcMfHGKUXHDDnECXateX4NMZIbXyWcRKPOcWlkR7daqjfxsH7S6gDV2yJz zq5A== MIME-Version: 1.0 Received: by 10.68.204.129 with SMTP id ky1mr29829918pbc.32.1339438984032; Mon, 11 Jun 2012 11:23:04 -0700 (PDT) Received: by 10.68.226.7 with HTTP; Mon, 11 Jun 2012 11:23:03 -0700 (PDT) In-Reply-To: <6809F782-1D1F-4773-BAC5-BC3037C58B87@gmail.com> References: <6809F782-1D1F-4773-BAC5-BC3037C58B87@gmail.com> Date: Mon, 11 Jun 2012 13:23:03 -0500 Message-ID: From: Alan Cox To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current Subject: Re: 10-CURRENT and swap usage X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alc@freebsd.org 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 18:23:05 -0000 On Sat, Jun 9, 2012 at 9:26 PM, Garrett Cooper wrote: > 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 out > 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 that > there's ~150MB free, ~180MB inactive, and 267MB swapped out as previous > experience has dictated that swap is basically untouched except in extreme > circumstances. > 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. Keep in mind that gcc at higher optimization levels can and will use a lot of memory, i.e., hundreds of megabytes. Alan