From owner-freebsd-current@freebsd.org Thu Sep 27 22:01:20 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D4F310BBAE6 for ; Thu, 27 Sep 2018 22:01:20 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2AFE79D38 for ; Thu, 27 Sep 2018 22:01:19 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 85DACCDBED for ; Thu, 27 Sep 2018 16:01:46 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WZzJH2rWuIPM for ; Thu, 27 Sep 2018 16:01:46 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA for ; Thu, 27 Sep 2018 16:01:46 -0600 (MDT) To: FreeBSD Current From: Rebecca Cran Subject: 12.0-ALPHA5 - ZFS default ARC max apparently forcing system to run out of memory Message-ID: Date: Thu, 27 Sep 2018 16:01:11 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2018 22:01:20 -0000 I'm running 12.0-ALPHA5 on a laptop which has 32GB RAM and 2GB swap. I've found it running out of memory when building ports via synth: I think I've also seen it when running a buildworld. Johannes on FreeBSDDesktop suggested it might be related to ZFS, and setting vfs.zfs.arc_max to 8GB *does* appear to have resolved the problem. Shortly after running out of memory (with |"swap_pager_getswapspace(32): failed" messages)|, the first few lines of 'top' were: Mem: 4335M Active, 4854M Inact, 7751M Laundry, 9410M Wired, 48K Buf, 5332M Free ARC: 5235M Total, 4169M MFU, 497M MRU, 172K Anon, 97M Header, 471M Other      3479M Compressed, 5930M Uncompressed, 1.70:1 Ratio Swap: 2048M Total, 2009M Used, 39M Free, 98% Inuse I've not seen this happen before on ZFS systems, so is it a regression in 12? -- Rebecca Cran