From owner-freebsd-stable@freebsd.org Tue Mar 7 11:48:15 2017 Return-Path: Delivered-To: freebsd-stable@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 F18ADD01686 for ; Tue, 7 Mar 2017 11:48:15 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id D4E551A07 for ; Tue, 7 Mar 2017 11:48:15 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: by mailman.ysv.freebsd.org (Postfix) id D43DFD01685; Tue, 7 Mar 2017 11:48:15 +0000 (UTC) Delivered-To: stable@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 D3DDFD01684 for ; Tue, 7 Mar 2017 11:48:15 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B56A51A06 for ; Tue, 7 Mar 2017 11:48:15 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jBCfmhq24q5j1Itjs2WlTOP8HVfE1sfv8roJ0VPpbjw=; b=jxNWSUDrtBcAD1IewVsPuXHKDY EJWDh29DgYzTUDwfgvCVEjUPbWIsand5UMdsyvMnVBCQxrJlydCGfaQFXmG7s8D5DT/DaXehn0lk5 +F5gIXdBSVwG5GM9r9N7fX1zjaq4hALv9OoLQgc5GUXjbhsZWEdLRXBTMVq2Wh13FhJI=; Received: from [114.125.118.214] (port=10958 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88) (envelope-from ) id 1clDbA-000CHL-UT; Tue, 07 Mar 2017 04:48:13 -0700 Date: Tue, 7 Mar 2017 19:48:08 +0800 From: Erich Dollansky To: Slawa Olhovchenkov Cc: "stable@freebsd.org" Subject: Re: slow machine, swap in use, but more than 5GB of RAM inactive Message-ID: <20170307194808.75b0064b@X220.alogt.com> In-Reply-To: <20170307070242.GO15630@zxy.spb.ru> References: <20170307101935.4c04ad5e@X220.alogt.com> <20170307070242.GO15630@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2017 11:48:16 -0000 Hi, On Tue, 7 Mar 2017 10:02:42 +0300 Slawa Olhovchenkov wrote: > On Tue, Mar 07, 2017 at 10:19:35AM +0800, Erich Dollansky wrote: > > > I wonder about the slow speed of my machine while top shows ample > > inactive memory: > > > > last pid: 85287; load averages: 2.56, 2.44, 1.68 > > up 6+10:24:45 10:13:36 191 processes: 5 running, 186 sleeping > > CPU 0: 47.1% user, 0.0% nice, 51.4% system, 0.0% interrupt, 1.6% > > idle CPU 1: 38.4% user, 0.0% nice, 60.4% system, 0.0% interrupt, > > 1.2% idle CPU 2: 38.8% user, 0.0% nice, 59.2% system, 0.0% > > interrupt, 2.0% idle CPU 3: 45.5% user, 0.0% nice, 51.0% system, > > 0.4% interrupt, 3.1% idle Mem: 677M Active, 5600M Inact, 1083M > > Wired, 178M Cache, 816M Buf,301M Free > > Swap: 16G Total, 1352M Used, 15G Free, 8% Inuse > > > > The swap space in use can be explained by large compilations done > > recently. Why is the inactive memory not put to use. > > > > I do not want to restart the machine. So, if I could help find the > > source of the problem, I would do. > > inactive is not 'not used' memory. > this is just pages don't touched in last 10(?) seconds, but all of > this allocated (such as malloc, mmap, sendfile) to application > (userland programs). something changed then since my last update of FreeBSD. The machine is currently on 10.3-STABLE FreeBSD 10.3-STABLE #2 r313849: Fri Feb 17. It is on 10 since 2012. It was never this slow. Anyway, I will reboot it soon into a new kernel and see what will happen then. Thanks! Erich