From owner-freebsd-fs@freebsd.org Sat Sep 22 02:53:19 2018 Return-Path: Delivered-To: freebsd-fs@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 B295C10ADCA5 for ; Sat, 22 Sep 2018 02:53:19 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id ECB427C806 for ; Sat, 22 Sep 2018 02:53:18 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-165-15.bras2.adl6.internode.on.net (HELO leader.local) ([118.210.165.15]) by ipmail06.adl6.internode.on.net with ESMTP; 22 Sep 2018 12:23:09 +0930 Subject: Re: Troubleshooting kernel panic with zfs To: Mike Tancsa , Josh Gitlin , freebsd-fs@freebsd.org References: From: Shane Ambler Message-ID: <41d177bf-117b-10c3-06a0-7d74d298fede@ShaneWare.Biz> Date: Sat, 22 Sep 2018 12:23:06 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2018 02:53:19 -0000 On 21/9/18 10:34 pm, Mike Tancsa wrote: > > Given all the issues with memory pressure perhaps ARC is eating too > much, I would try artificially limiting it so it does not eat up too > much RAM. We had a similar purposed server but with 32G RAM and I found > one day the system was randomly shooting processes to reclaim RAM > > eg > pid xxx (yyy), uid zzzz, was killed: out of swap space > I have seen these errors, for me they came when >90% ram is wired. This is something I reported in bug 229764. While ARC is wired, there is also a max_wired that limits other wired allocations, these two are independent and can total more than physical ram. max_wired defaults to 30% ram, so arc_max should be kept less than 70% I also had positive results applying review D7538 -- FreeBSD - the place to B...Storing Data Shane Ambler