From owner-freebsd-fs@FreeBSD.ORG Fri Feb 28 19:15:29 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 856F11C9 for ; Fri, 28 Feb 2014 19:15:29 +0000 (UTC) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [IPv6:2607:f8b0:400c:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 406FA1C59 for ; Fri, 28 Feb 2014 19:15:29 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id cz12so1187460veb.35 for ; Fri, 28 Feb 2014 11:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2ceCV8XlLO2SCNkpE5pgRTrFeCrU9mzohrnbtasj1co=; b=g+K5C8SfONNAnTCrmhVKGTpCwSGvuv03LTnfZ6iPpuSNSxowbYpa73YBcFV4T+Bfzo xR8zUmXDs1OvXE5Vo25XcTI9tuMPKcb7mwoWYEVva36yZSsNaPTpQt7FwJkj+62w3obJ Ddv7I9ziXb8wV9rLx/noznwed6s0YEgFaGeE3I/yncdk52IqKn4fiUgZtG+ftJOyWLRQ /7+fEyRygnCIWlX5Gi5hCXF68xv34E/+8A1hJoexHk7SEowCQEbuy7hfAn9MnuCJc2DC S51GCAu1tVOOWpqe5eN9zToN2JoIKEUdPOQZrCKZ8mqQFpDw/cBGayegSuA/GSwGl2Sc LBUg== X-Received: by 10.58.146.5 with SMTP id sy5mr1633315veb.43.1393614928482; Fri, 28 Feb 2014 11:15:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.91.74 with HTTP; Fri, 28 Feb 2014 11:15:08 -0800 (PST) In-Reply-To: References: <530F6475.4090508@gmail.com> From: Anton Sayetsky Date: Fri, 28 Feb 2014 21:15:08 +0200 Message-ID: Subject: Re: ZFS and Wired memory, again To: Adam Vande More Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-fs 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, 28 Feb 2014 19:15:29 -0000 2014-02-28 21:11 GMT+02:00 Adam Vande More : > On Fri, Feb 28, 2014 at 12:53 PM, Anton Sayetsky wrote: >> >> 2014-02-28 20:42 GMT+02:00 Larry Rosenman : >> > On 2014-02-28 12:31, Anton Sayetsky wrote: >> >> >> >> 2014-02-28 13:47 GMT+02:00 Matthias Gamsjager : >> >>>>> >> >>>>> >> >>>> >> >>>> +1 from me, FreeBSD 10, uma=0 >> >>>> >> >>>> 52 processes: 2 running, 49 sleeping, 1 zombie >> >>>> CPU: 0.0% user, 0.0% nice, 0.0% system, 0.4% interrupt, 99.6% >> >>>> idle >> >>>> Mem: 31M Active, 16K Inact, 3352M Wired, 17M Cache, 48M Free >> >>>> ARC: 1838M Total, 110M MFU, 18M MRU, 548K Anon, 1876M Header, 75M >> >>>> Other >> >>>> Swap: 4096M Total, 126M Used, 3969M Free, 3% Inuse >> >>>> >> >>>> Machine is plain dead. Running database or squid or anything causes >> >>>> excessive swapping. This is the state when I disabled all payload, >> >>>> with >> >>>> everything started swap goes to 500M and machine is burning disks. >> >>>> >> >>> >> >>> I wonder do you use any zfs tuning? Like max arc size? Wonder if >> >>> setting >> >>> that to a reasonable amount would help. >> >> >> >> Please read carefully my first message. No any tuning (configs >> >> posted), and problem is not that ZFS uses big amount of memory. I'm >> >> experiencing exactly one problem - Wired mem is significantly larger >> >> than ARC. >> >> E.g. if my ARC size is 2048M, I'm expecting that Wired will not >> >> consume more than ARC+~150M. >> >> _______________________________________________ >> >> freebsd-fs@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >> >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >> > >> > Other pieces of the system used wired memory...... >> > >> > Have you investigated that as well? >> And again - this has detailed explanation in the first letter. In short: >> 1. I've booted the system without any memory hungry services (only >> basic like cron, powerd). Wired is 95M, ARC is 25M. >> 2. Then I started reading ZFS pool (tar cpf /dev/null >> /pool/mountpoint). ARC - 2048M, Wired - ~2800M. >> WTF? Who eats more than 700M of kernel memory? Do you really think >> that powerd or cron can do this? > > > Without question, cron could do it. > > -- > Adam But never does on the same system with ZFS disabled.