From owner-freebsd-fs@FreeBSD.ORG Fri Jan 31 17:39:43 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 82D46A8F; Fri, 31 Jan 2014 17:39:43 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF6DD178A; Fri, 31 Jan 2014 17:39:42 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id l4so3617098lbv.5 for ; Fri, 31 Jan 2014 09:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tScIYLZSrL+W7eYp7Rxc9PfapDyGqD/H9MtTBKkXAXM=; b=LNeNpXpqTCxRp+otHpctjKbWggywMJAOzc2sXaoQjH+oG3YxHiFDD92cmUv+lCQeoT 7XrhXrZdHK8QpSk00hkqw0NE66E6Zdz5SHfTuCClv4NlrJrX3QMIIZIbjT9uj+ZmoQ4H INMC5z0mt+/O2NoHiI29RLTQiKBYp1aiM+z6pp4PR/pN44QxD+CP2UtWveTuv0IzxS0x e25C9EoO4c51m50eps4oeehfhCm6pnmy+kNGmpuhV7hf4Ekiz1JEvTA4pA4Jhma0BSrb kZAJyDZ4W8WofrRqddfhWoY+/43jv8yfH8F7N2tD+k5GEDaeUTXFR2nwOVqVF1w3NocM 1oaQ== X-Received: by 10.112.126.135 with SMTP id my7mr1612659lbb.56.1391189980760; Fri, 31 Jan 2014 09:39:40 -0800 (PST) Received: from [192.168.1.129] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPSA id mx3sm10941428lbc.14.2014.01.31.09.39.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Jan 2014 09:39:40 -0800 (PST) Message-ID: <52EBDFDA.6050708@gmail.com> Date: Fri, 31 Jan 2014 19:39:38 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Andriy Gapon , "Nagy, Attila" , freebsd-fs@FreeBSD.org Subject: Re: Lot more swapping in stable/10 with ZFS References: <52E4DE17.3000206@fsn.hu> <52E7CEB8.7010906@gmail.com> <52E7DBC9.6000708@FreeBSD.org> In-Reply-To: <52E7DBC9.6000708@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; 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: Fri, 31 Jan 2014 17:39:43 -0000 28.01.2014 18:33, Andriy Gapon wrote: > on 28/01/2014 17:37 Volodymyr Kostyrko said the following: >> 26.01.2014 12:06, Nagy, Attila wrote: >>> 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 >> >> Just a +1 from me: >> >> Mem: 1440M Active, 412M Inact, 5889M Wired, 82M Cache, 90M Free >> ARC: 3990M Total, 1981M MFU, 1505M MRU, 533K Anon, 79M Header, 424M Other >> Swap: 8192M Total, 1434M Used, 6758M Free, 17% Inuse >> >> This machine is up for 1+03:13:06 >> > > Guys, > > could you please set sysctl vm.lowmem_period to zero (after a fresh reboot) and > see if it makes any difference? Ok, there are some results: It starts with ARC at ~4G. Probably I should've taken some snapshots but I was waiting for at least one day of uptime. After that I started openoffice build in tmpfs. In something like an hour I got this: Mem: 1167M Active, 2453M Inact, 3483M Wired, 57M Cache, 752M Free ARC: 1060M Total, 199M MFU, 467M MRU, 6836K Anon, 31M Header, 356M Other Swap: 8192M Total, 7218M Used, 974M Free, 88% Inuse, 36K In As you can see ARC shrinked a lot and Inact is still big. So I cleared some space in tmpfs and ordered VirtualBox to unthaw some host. Kindda risky thing as It was pretty tight on memory. The host needs ~1150Mb of memory. Mem: 1806M Active, 1216M Inact, 2638M Wired, 1431M Cache, 820M Free ARC: 1231M Total, 255M MFU, 564M MRU, 34M Anon, 32M Header, 345M Other Swap: 8192M Total, 7065M Used, 1127M Free, 86% Inuse, 13M Out Hey, cheater! ARC grows! you can see Inact is been swapped out. Mem: 1871M Active, 676M Inact, 2649M Wired, 1946M Cache, 770M Free ARC: 1226M Total, 246M MFU, 599M MRU, 4112K Anon, 32M Header, 345M Other Swap: 8192M Total, 7623M Used, 569M Free, 93% Inuse, 14M Out 30 seconds passed - ARC is at the same level while Inact lost 600Mb. Mem: 1918M Active, 185M Inact, 3193M Wired, 1788M Cache, 828M Free ARC: 1405M Total, 390M MFU, 607M MRU, 30M Anon, 33M Header, 345M Other Swap: 8192M Total, 8150M Used, 42M Free, 99% Inuse, 16K In Restoration done. Openoffice is still building and VirtualBox host is running. That was close. Mem: 993M Active, 425M Inact, 4638M Wired, 11M Cache, 1845M Free ARC: 2081M Total, 749M MFU, 913M MRU, 797K Anon, 37M Header, 382M Other Swap: 8192M Total, 673M Used, 7519M Free, 8% Inuse tmpfs cleaned, host exited. ARC grows... -- Sphinx of black quartz, judge my vow.