From owner-freebsd-fs@FreeBSD.ORG Fri Feb 28 19:11:28 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 54FC1E62 for ; Fri, 28 Feb 2014 19:11:28 +0000 (UTC) Received: from mail-pd0-x22d.google.com (mail-pd0-x22d.google.com [IPv6:2607:f8b0:400e:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2677B1C29 for ; Fri, 28 Feb 2014 19:11:28 +0000 (UTC) Received: by mail-pd0-f173.google.com with SMTP id z10so1102728pdj.18 for ; Fri, 28 Feb 2014 11:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cUdQF9kVRAiMrnb9qzsBjpk1kgCUW5Q5pz5P51Nqvrs=; b=lffZrxPKKqEMLd4kUvMBMmvAPEVBWcbhK0Ur4n8SCpLaeeoQNyxX5WnPOf7ChkCn9p /gndtJgt2gkQWYrMSanzE2a9d9J7w4Y3Tt5y3GXvvaH7BCo50NOr1porEENu/yGUR9RQ klccza7m5axZZ270it7UJVfAAREAXMJULF02YQVNKjAcVPJyad5AbbJYQD3q61Wt0+CK IyXG5qE10m7OOvuAzLg4CzYkzIpw2MRhgaIyIEWToNtbIk/Y5qVT4vu5uETZ6mb7tPDM 2xWA8llVylQ0Su1gXm136q0mVtXMlkErejMfSgnrJgKziofnOFpOm/yQZ638ZJDN2psA w2zQ== MIME-Version: 1.0 X-Received: by 10.66.146.105 with SMTP id tb9mr5227470pab.157.1393614687749; Fri, 28 Feb 2014 11:11:27 -0800 (PST) Received: by 10.70.55.7 with HTTP; Fri, 28 Feb 2014 11:11:27 -0800 (PST) In-Reply-To: References: <530F6475.4090508@gmail.com> Date: Fri, 28 Feb 2014 13:11:27 -0600 Message-ID: Subject: Re: ZFS and Wired memory, again From: Adam Vande More To: Anton Sayetsky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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:11:28 -0000 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