From owner-freebsd-current@freebsd.org Sat Aug 19 21:31:54 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF996DE646F for ; Sat, 19 Aug 2017 21:31:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A45EF65BB2 for ; Sat, 19 Aug 2017 21:31:54 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x235.google.com with SMTP id d5so5530483pfg.0 for ; Sat, 19 Aug 2017 14:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ITDqh6fDtNU1krt/FPJT9cGEP9MVzPw+6dFz25/Tu14=; b=jAlw1QTa2xzCxc02URGg4N9pIOO8l6i3MSCKTXNaW2DALwCVCL/qZmeCwnxtr7STDh vZCD2yjiyB+MBgdso+IwceY7XNOp1QTUB7W6+2e4UMAUOOznF0U1f+2x2D6K/jj9UFXk au/pKrCapNAnw3z7U6Vv8fVlo1dqeCNYj79deC541EMLn1wtRPBFbZCX+1hoMeBjN1vZ UIGKmZiNtE4EODLLc/268WgVwm/9GFxC8cOEC5On6QugNZOxHizD1gRHDNNU6n3lnA7j M9pQzKLPB+SdGHvxE4chQCFzc+v6ip/wvOl3tclhcRw0nOcOk3t4lnmUfDWHbGQI9ESS 9oeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ITDqh6fDtNU1krt/FPJT9cGEP9MVzPw+6dFz25/Tu14=; b=pPXes6/H1B1sOg9/Fjm6LtGMhCdj9WVeW9/EKm6RndjmssPJGV4321hq0x/ejPc/AN 1u8KrKZTwZugvZkl6T/pjfYfYVnfX88kGC83OGVEXnnnuJ99/53B5iVcNiXxsWG8u1Xr zDEHmgQYkYNCvsnJHuYcGB3xc3CR+hSVDB4IjvU2U56EubASYoOXGTwI348Kh+FNv6DL Fsr2TL8KtigiWgnTgYltf2v8R0j+3/nl25qt7/mQX0tyYXnWy96/fzmDLlZH9DA9PZYT 1Be1krQ9WTEzMGEmMPUb+nz2xaUEjrOgdWMCvsgFRo82G1OKeMeYuQIf+GyhIOeycKvs kYMQ== X-Gm-Message-State: AHYfb5g0wzivNaGpJuYAZmPXTorxtZlV9wn3NZN/NmxIhYjyhgQ2fA3Q 3zXXTNGBFuc3I113 X-Received: by 10.98.194.155 with SMTP id w27mr2247105pfk.246.1503178314137; Sat, 19 Aug 2017 14:31:54 -0700 (PDT) Received: from raichu ([2604:4080:1102:0:ca60:ff:fe9d:3963]) by smtp.gmail.com with ESMTPSA id m190sm16259802pfb.102.2017.08.19.14.31.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Aug 2017 14:31:53 -0700 (PDT) Sender: Mark Johnston Date: Sat, 19 Aug 2017 14:31:49 -0700 From: Mark Johnston To: Cy Schubert Cc: freebsd-current@freebsd.org Subject: Re: swapfile query Message-ID: <20170819213149.GA34140@raichu> References: <201708192100.v7JL0vFk003935@slippy.cwsent.com> <201708192124.v7JLOJKJ004107@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201708192124.v7JLOJKJ004107@slippy.cwsent.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 19 Aug 2017 21:31:54 -0000 On Sat, Aug 19, 2017 at 02:24:19PM -0700, Cy Schubert wrote: > In message <201708192100.v7JL0vFk003935@slippy.cwsent.com>, Cy Schubert > writes: > > > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idle > > laptop and in the teens of my idle firewall. IMO this doesn't seem right, > > at least not compared to previous releases of FreeBSD or from the days when > > I worked on Solaris. You shouldn't see a scan rate on an idle system.) > > It appears that on an idle system with many pages in use, i.e. a laptop > running X and not really doing anything else, pages are scanned though the > system is idle. This is likely an artifact of r308474. It's an intentional consequence of r254304. The page daemon performs a slow and steady scan of the queue of active pages and will gradually move unreferenced pages to the inactive queue.