From owner-freebsd-questions@freebsd.org Wed Feb 20 21:47:43 2019 Return-Path: Delivered-To: freebsd-questions@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 9E5B414DD8A8 for ; Wed, 20 Feb 2019 21:47:43 +0000 (UTC) (envelope-from g.lister@nodeunit.ch) Received: from nodeunit.com (mx01.nodeunit.ch [192.186.89.182]) by mx1.freebsd.org (Postfix) with ESMTP id 04E5370368 for ; Wed, 20 Feb 2019 21:47:32 +0000 (UTC) (envelope-from g.lister@nodeunit.ch) Received: from x140e (x140e.local.home [10.11.11.4]) by nodeunit.com (Postfix) with ESMTPS id 2CE3B8117; Wed, 20 Feb 2019 21:47:26 +0000 (UTC) Date: Wed, 20 Feb 2019 16:47:25 -0500 From: George To: Mike Clarke Cc: FreeBSD questions Subject: Re: Full swap partition Message-ID: <20190220164725.7421f6eb@x140e> In-Reply-To: <2726723.yzQzn1nXtE@curlew> References: <2726723.yzQzn1nXtE@curlew> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 04E5370368 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.21 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.65)[0.652,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nodeunit.ch]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.87)[0.866,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[mx01.nodeunit.ch]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.22)[0.215,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:7992, ipnet:192.186.64.0/18, country:CA]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.02)[country: CA(-0.09)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2019 21:47:43 -0000 On Wed, 20 Feb 2019 16:46:33 +0000 Mike Clarke wrote: > I'm running kde desktop on FreeBSD 11.2 on a system with 16GB RAM and > 8GB swap. Normally I don't use any swap space but after a huge pkg > upgrade three days ago I've suffered a problem with the entire swap > partition filling up and the system freezing on about 4 occasions. > > I suspect that this might be due to a bug in plasma5-plasma-workspace > which was upgraded from version 5.14.5.1 to 5.15.0 because it now > appears to require 128GB virtual memory > > curlew:/home/mike% top -o size > last pid: 1738; load averages: 0.22, 0.32, 0.21 up > 0+00:12:44 16:11:28 144 processes: 1 running, 142 sleeping, 1 zombie > CPU 0: 0.8% user, 0.0% nice, 0.4% system, 0.4% interrupt, 98.4% > idle CPU 1: 0.8% user, 0.0% nice, 0.4% system, 0.0% interrupt, > 98.8% idle CPU 2: 1.6% user, 0.0% nice, 1.2% system, 0.0% > interrupt, 97.3% idle CPU 3: 0.0% user, 0.0% nice, 0.0% system, > 0.0% interrupt, 100% idle Mem: 1653M Active, 470M Inact, 2104M > Wired, 40K Buf, 11G Free ARC: 1264M Total, 430M MFU, 801M MRU, 4703K > Anon, 4920K Header, 24M Other 742M Compressed, 1059M Uncompressed, > 1.43:1 Ratio Swap: 8192M Total, 8192M Free > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME > WCPU COMMAND 1272 mike 13 20 0 128G 210M select 3 > 0:05 0.01% plasmashe > > The corresponding value for SIZE before the upgrade was 293M. > > The problem is only sporadic, I can run for several hours with no > swap being used (as in the above output from top) and then it > suddenly fills up. > I had to set the kernel tune-able parameter for the max swap to use on an NFS machine as it was experiencing out-of-swap space issues. I did a search and found a post on the forums someone having a similar issue. What I did was get the page number that was allocated by the installer on setup and set in /boot/loader.conf it is called kern.maxswzone that as far as I understand is a directive as to the max available if not present the kernel books double ram which explains mine and and your issue. Have been running like that is for a while now and no issues ...