From owner-freebsd-stable@freebsd.org Wed Mar 8 00:46:23 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 4C1A9D02FCA for ; Wed, 8 Mar 2017 00:46:23 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 28FF3179A for ; Wed, 8 Mar 2017 00:46:23 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 255C2D02FC9; Wed, 8 Mar 2017 00:46:23 +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 23164D02FC8 for ; Wed, 8 Mar 2017 00:46:23 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (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 CF8601799 for ; Wed, 8 Mar 2017 00:46:22 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot0-x232.google.com with SMTP id i1so21147278ota.3 for ; Tue, 07 Mar 2017 16:46:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=x3qO26xqXYt7a0QyQG8YP8YQO7e4LB9HxX3EQk52IeQ=; b=qDrcg5KpiFVVwCh4zTpbwjk6ouU/zUhpbB4qFNtpR2lBXx/5HMUV1nDTW/vMRzSRoN cU8HVQ9RUqrRiVPkz+oZFt1DHubzGf5gnOyefaES0/ebdtxCZzpZcERgUfs5LWxTCne6 JCwwpcCRAG68Bboz9KNStEzB6O5ZIKi+P+8CYCayvEewc4DbQzOJ/fluO3KFfwDYP/eI XVE2kV2opSp0Fyp3RiYv3pP59/qlEmRbGXMt185VBlilOFxZoOFeF0Tb0wg4A2Kges0t avlaRqeqOIDZoZ0byXWkmC7r3TmcETN31b/13E9xY/fG0DeU0UwBqxrfh3A+88kVPtgv A+6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=x3qO26xqXYt7a0QyQG8YP8YQO7e4LB9HxX3EQk52IeQ=; b=JNFt2QVfpXYHS3tjW644znVeazBq4bst1eCC6bNfGIYIvR7k4ixF93d756OoGxfPYh EgCO1MODWebCs0wsLnj4DbVCGwbndXGlCO9xuxCRdPhbXDXpCoORFIh5858v7+O+aVRT tlKXwHlBCCG0TOSqm9EmCjbcCblq/LKNOY3Toi+5IsxJ3b8oQymKFaJMkdXOxN8WVGrw Ms+fWeVuL/YMKW+vejNo0l912u7wNPOy81FOrrLC8Oab9uO9ZUtRc7cXrJbZT3kw3ksi ciLTTOWfUG243DRm2/93xeffEQmPn/JKCgTqjQmterRJah+dUcVG+xccFFaSIyAmjKjO F8wg== X-Gm-Message-State: AMke39ml+PRhB8X2gJ7jOAVqe9HrOeImT+DlzUEpls34gHu6XCw7xiMa1TBUtzktONhnX7TQGWYJNUH/eTVI9A== X-Received: by 10.157.12.40 with SMTP id 37mr1849466otr.92.1488933982023; Tue, 07 Mar 2017 16:46:22 -0800 (PST) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.74.32.79 with HTTP; Tue, 7 Mar 2017 16:46:21 -0800 (PST) In-Reply-To: <20170308071428.5f50167c@X220.alogt.com> References: <20170307101935.4c04ad5e@X220.alogt.com> <20170307232423.G87835@sola.nimnet.asn.au> <20170308071428.5f50167c@X220.alogt.com> From: Kevin Oberman Date: Tue, 7 Mar 2017 16:46:21 -0800 X-Google-Sender-Auth: CF-Cklass0ks3mrH-wKCb5JTLSs Message-ID: Subject: Re: slow machine, swap in use, but more than 5GB of RAM inactive To: Erich Dollansky Cc: Ian Smith , "stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Wed, 08 Mar 2017 00:46:23 -0000 On Tue, Mar 7, 2017 at 3:14 PM, Erich Dollansky wrote: > Hi, > > On Tue, 7 Mar 2017 23:30:58 +1100 (EST) > Ian Smith wrote: > > > On Tue, 7 Mar 2017 10:19:35 +0800, Erich Dollansky wrote: > > > Hi, > > > > > > I wonder about the slow speed of my machine while top shows ample > > > inactive memory: > > > > ( quoting from this top output because it's neater :) > > > > > 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 > > > > Others have covered the swap / inactive memory issue. > > > > But I'd expect this to be slow, for any new work anyway .. there's > > next to no idle on any CPU. I'd be asking, what's all of that system > > usage? > > > this is building ports in the background. Still, used doing this ones a > month, I know the feeling when the ports are updated. This one was > really slow. Hopefully, it was just an unlucky coincidence. > > I rebooted meanwhile the machine. It is faster now, I would say, it is > back to normal now. It did not come to its limits since the new start. > It is now on: > > FreeBSD 10.3-STABLE #3 r314363 > > Erich > Well, looks like over half of the CPU is running in system space and that seems rather high for what I would assume is compilation. I thinnk you will need to poke around with things like systat, and the like to see just what the system is doing for 55% or so of all CPUs. Since there doe snot seem to be a lot of IO or memory at issue, the various command for those are probably not very interesting. Probably not lock stats, either. This reminds me of when some operation (IIRC NFS related) was calling system time routines that are fairly expensive on FreeBSD almost continually. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683