From owner-freebsd-fs@FreeBSD.ORG Sun Jan 26 10:06:32 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B622F9D for ; Sun, 26 Jan 2014 10:06:32 +0000 (UTC) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6424B1959 for ; Sun, 26 Jan 2014 10:06:31 +0000 (UTC) Received: by people.fsn.hu (Postfix, from userid 1001) id 659021251B78; Sun, 26 Jan 2014 11:06:22 +0100 (CET) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 6.3857] X-CRM114-CacheID: sfid-20140126_11062_3C9F5317 X-CRM114-Status: Good ( pR: 6.3857 ) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Sun Jan 26 11:06:22 2014 X-DSPAM-Confidence: 0.9938 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 52e4de1e907001756277832 X-DSPAM-Factors: 27, kernel, 0.00088, cache, 0.00176, Is+this, 0.00278, the+kernel, 0.00310, From*"Nagy, Attila" , 0.00330, ZFS, 0.00439, noticed+that, 0.00439, Subject*ZFS, 0.00479, Cache, 0.00527, there+a, 0.00585, sysctl, 0.00585, Received*online.co.hu+[195.228.243.99]), 0.00657, Received*[195.228.243.99]), 0.00657, Received*online.co.hu, 0.00657, Received*(japan.t, 0.00657, Received*(japan.t+online.co.hu, 0.00657, Is+there, 0.00751, output, 0.00782, VM, 0.00875, Received*from+japan.t, 0.00875, Header, 0.00875, Received*online.private+(japan.t, 0.00875, Received*japan.t+online.private, 0.00875, Received*japan.t, 0.00875, releasing, 0.00875, (and, 0.00912, X-Spambayes-Classification: ham; 0.00 Received: from japan.t-online.private (japan.t-online.co.hu [195.228.243.99]) by people.fsn.hu (Postfix) with ESMTPSA id 3E83E1251B69 for ; Sun, 26 Jan 2014 11:06:21 +0100 (CET) Message-ID: <52E4DE17.3000206@fsn.hu> Date: Sun, 26 Jan 2014 11:06:15 +0100 From: "Nagy, Attila" MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Lot more swapping in stable/10 with ZFS Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jan 2014 10:06:32 -0000 Hi, Running stable/10@r261157 (and earlier too), I've noticed that it swaps much more than previous (stable/9) versions. Current top output from such a machine: Mem: 251M Active, 21M Inact, 7491M Wired, 118M Cache, 17M Buf, 51M Free ARC: 5112M Total, 1455M MFU, 2155M MRU, 7761K Anon, 293M Header, 1223M Other Swap: 2045M Total, 757M Used, 1287M Free, 37% Inuse, 1280K Out (there are frequent ins too, so I wouldn't say that the kernel just throws unused pages out) Why ZFS keeps its cache instead of releasing it and free up memory to avoid swapping? Is there a better way to change this than lowering ARC's maximum usage? All *swap* sysctl values are the same as on 9 versions. Is this something changed in the VM handling or in ZFS? Thanks,