From owner-freebsd-stable@freebsd.org Tue Mar 7 09:48:14 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 E2986D011DE for ; Tue, 7 Mar 2017 09:48:14 +0000 (UTC) (envelope-from allbery.b@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 C10E11B7E for ; Tue, 7 Mar 2017 09:48:14 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id BD708D011DD; Tue, 7 Mar 2017 09:48:14 +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 BD0DDD011DC for ; Tue, 7 Mar 2017 09:48:14 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (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 8B4421B7D for ; Tue, 7 Mar 2017 09:48:14 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: by mail-oi0-x231.google.com with SMTP id 126so47548408oig.3 for ; Tue, 07 Mar 2017 01:48:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kVdUsEihkOCbj4T7ciJSacV588UjDyqo9nRGdDaga6E=; b=lvxv1hv+o9jxzsa/2f8WRY0EVkyu7QMSWa7wc1uuP8j7o50z60/BlQ3BhRY3Qn8vFa RRRmpjQX2DOcNWcpGC7hC39EdNX8imRVwbIG77CiieXVWiWOazXh27taG5Zz11abdRkX rhSbV5AgvbT7YwPXrJXXTW/tZx2eqGx6JUvJFhzcr4OQv3yYf3ZGt/7h9y+qbZ3D+3Id 1o6Q7uPG6Kwe3IMHAJwimPQfOnO4enbKtlIusJc7ZEWJ2IeSlos2TnE0FWOxZIpcPLZp KHH9DBJdJ3CAuFM9Xd0Xd6b1FFXMmaMAD/+DNGLqn0B7oFUCZ8kuLqAgZs+IYv9v+APw 1tvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kVdUsEihkOCbj4T7ciJSacV588UjDyqo9nRGdDaga6E=; b=EtZhSauxsuvT/gq8L5MhzrAja4KYycRzvdRQ0HLfzJLcP4O2xjSswNWrKrFtXLNJJ+ ZEJZyML2RGIOjg4UlNPsGVjaf0XVMKYz3XnjtoQH9jJiwoNxF0DuH6FGrvw8+CQ3Pso5 inCfICLCMdiKx2LRZ4TJBZ3NF7xCMSpb+3rUQoZPprcqLPSJ7B+jfjGihoT3ZnR2s7qZ va8mPe5r2g/Uqf2lStS/6pXYrfUOaTfIsFXMBwIMvEz0iAq76p0e/MEG+UikRahq4Viq xT2MmMkLbOYGYV7HSzAe7i47wVztIhlWBMgqUA5sFK6JZxx6FqSNnNEMjsKK7kJiqq79 9Sqg== X-Gm-Message-State: AMke39mzfjxA8e1UXoQYn3GjPuLgQmmsURl2B8aYkqF45xHEqUB1bfTJXyuKioEqtS00L9aErxTKiSMZCmfHoQ== X-Received: by 10.202.86.82 with SMTP id k79mr5448736oib.150.1488880093794; Tue, 07 Mar 2017 01:48:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.83.196 with HTTP; Tue, 7 Mar 2017 01:48:13 -0800 (PST) In-Reply-To: <20170307070242.GO15630@zxy.spb.ru> References: <20170307101935.4c04ad5e@X220.alogt.com> <20170307070242.GO15630@zxy.spb.ru> From: Brandon Allbery Date: Tue, 7 Mar 2017 04:48:13 -0500 Message-ID: Subject: Re: slow machine, swap in use, but more than 5GB of RAM inactive To: Slawa Olhovchenkov Cc: Erich Dollansky , "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: Tue, 07 Mar 2017 09:48:15 -0000 On Tue, Mar 7, 2017 at 2:02 AM, Slawa Olhovchenkov wrote: > 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). > Or otherwise phrased: they're candidates to be paged out if something requires that much memory soon. Meanwhile, stuff currently paged out will stay there unless actively needed; why bother pulling it back in if nothing actually needs it right now, especially since it got paged out because nothing had used it recently (i.e. it was marked inactive)? -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net