From owner-freebsd-questions@freebsd.org Mon Jun 18 12:15:21 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 464A61002E79 for ; Mon, 18 Jun 2018 12:15:21 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 E63E17BCF2 for ; Mon, 18 Jun 2018 12:15:20 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 71D4421EA3 for ; Mon, 18 Jun 2018 08:15:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 18 Jun 2018 08:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=vLvN0dxpiFwHOb8/mDHmO6H4ipQzd 8d6ddZ+cAJq1EQ=; b=HHYSAcx8MExjUyhc//Jg7eop/+rE1X8SjaoyOs8+e+NT3 vFGIiC0L09zla6wJcOlAmyxvCOVzi7AA+g7WOr6rZ4J1fafbwtU5zT9lqMzHJS+6 0tQ7NGckST/XGLeXlaYHgvGo8LSefpeVt0ICkz2nouGicGnsySbCWyE2rhYRYZa4 rZhtvyLzIVEBgt653pwrnI9A4U4Ow0ToNZ9uGoH6HA82ZF2fexSD2T/z7/F4Dk84 T/geG3UKSEvMa86SPk9QHdFSVsBzscxcaC3RvrGAzRt0GgzcmPLF5IWm+P4BNIKE cQcWM0dnv/AVuoMJmQpW3v+IcBaE0uvgRodRZ6o1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=vLvN0d xpiFwHOb8/mDHmO6H4ipQzd8d6ddZ+cAJq1EQ=; b=otI8z0HfiL4b9Xt1BVXUKB j+r1+y7fkFQdHIzlOwgWX7RvfNXI4HcY8KmBGFuvWanSeCOiOjAyYpvLsNANrCen gWN6reFeqPL6xZ1gLrTL7sxMG28RwKkRYyE2634XXyUObYmYzsBuPKIh0G6ppv0D EAGvlc/lZ5yuEnugWA1haZ1BnqJUpYpy1yWwE8CDtXrSuZD/FTPBw2iIfoApZN2c 7+xyn/CbbGe38ZAb3Z7xW3haG/axCZgVmAvgDEpqV6c5SQsjSNeXH5JFu2X88Gv8 I0pC1SnUfaqg/Hp5CyYuGg3tN26d86klNCF2sFLjnGWPTFFNNiqgNcsmAWylUwcA == X-ME-Proxy: X-ME-Sender: Received: from desktop.local (parsley.growveg.org [82.70.91.97]) by mail.messagingengine.com (Postfix) with ESMTPA id C9E59E443C for ; Mon, 18 Jun 2018 08:15:19 -0400 (EDT) Subject: Re: lightly loaded system eats swap space References: To: freebsd-questions@freebsd.org From: tech-lists Organization: none Message-ID: Date: Mon, 18 Jun 2018 13:15:19 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2018 12:15:21 -0000 On 18/06/2018 07:14, Shane Ambler wrote: > There is `sysctl vm.max_wired` which limits the kernel wired memory, the > arc is then also wired but added on top of that setting, if your guests > are then wiring more ram, you can get too much wired. > > There is a patch in review that attempts to improve arc releasing when > free ram is low. See if this helps - > > https://reviews.freebsd.org/D7538 > > Other than that check that your guest ram + max_wired + arc_max adds up > to less than your physical ram minus some host system ram. Note that > wax_wired is a page count so multiply it by hw.pagesize Thanks for this. I can't apply the diff just yet due to the machine being in service but will let you know how I get on when I can. -- J.