From owner-freebsd-fs@FreeBSD.ORG Wed Jan 29 10:29:07 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 6F1299BA; Wed, 29 Jan 2014 10:29:07 +0000 (UTC) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BAB381839; Wed, 29 Jan 2014 10:29:06 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id u14so1294509lbd.37 for ; Wed, 29 Jan 2014 02:29:04 -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=cS0ZswnjvnoV8W+7sFPqsDygJIva6DgtxRb1hm6V9A8=; b=X0LW1QVwud8XCmZKUfD3uAY0oNcq1rv1PRuFwA+K+lhS/TckuXKlp7qjkpE81KpEg/ Gog+h9krxuUfzwzCUbPOGki/8ey9Z2fTC5j6BRp79298XeY48xSgWQQyoNoBGht0/W9R 49U178CgeqKF54M9DeFZMje+Urw6QinvAXDq+CgM56VGUV/WB1R97G0dJyx5oqdYqkxR 0fTZV0yAcZokRvuJfhh6li4c5XMJFSH94V2S26zuG0nQzT0y2xcP45rEsOxfscixMzsC rv1krPDTTaPvoRLCfrVUhKxEfIR8WousLwAKgNFPYGcLpp4svZ8kh7UBkeCK3k85gZNb OxfA== X-Received: by 10.152.22.1 with SMTP id z1mr694604lae.39.1390991344744; Wed, 29 Jan 2014 02:29:04 -0800 (PST) Received: from [192.168.1.129] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPSA id g8sm2830951lae.1.2014.01.29.02.29.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Jan 2014 02:29:04 -0800 (PST) Message-ID: <52E8D7E3.9040200@gmail.com> Date: Wed, 29 Jan 2014 12:28:51 +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: "Nagy, Attila" , Andriy Gapon , 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> <52E8AAC3.3040300@fsn.hu> In-Reply-To: <52E8AAC3.3040300@fsn.hu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Wed, 29 Jan 2014 10:29:07 -0000 29.01.2014 09:16, Nagy, Attila написав(ла): > On 01/28/14 17: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? >> > # sysctl -a | grep lowmem_period > vm.lowmem_period: 0 > (set from sysctl.conf) > # uptime > 8:15AM up 1:05, 1 user, load averages: 0.25, 0.29, 0.30 > Mem: 468M Active, 127M Inact, 7168M Wired, 54M Cache, 16M Buf, 115M Free > ARC: 5835M Total, 4364M MFU, 789M MRU, 16K Anon, 150M Header, 536M Other > Swap: 2045M Total, 62M Used, 1983M Free, 3% Inuse, 1816K Out > > So not really. I'll rather wait for a couple of days of run time as my load includes heavy disk usage at night and running a couple of VM's (VirtualBox) during a day. Probably VirtualBox is the root cause of high swap size because when starting/restoring a VM it allocates a lot of memory during a very short time period. -- Sphinx of black quartz, judge my vow.