From owner-freebsd-questions@freebsd.org Fri Jun 29 17:58:51 2018 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 C56A4F72789 for ; Fri, 29 Jun 2018 17:58:51 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (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 6456474CBF for ; Fri, 29 Jun 2018 17:58:51 +0000 (UTC) (envelope-from kremels@kreme.com) From: "@lbutlr" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: swap_pager_getswapspace Date: Fri, 29 Jun 2018 12:00:12 -0600 References: <20180629202603.0492ab82.freebsd.ed.lists@sumeritec.com> To: freebsd-questions In-Reply-To: <20180629202603.0492ab82.freebsd.ed.lists@sumeritec.com> Message-Id: <8D5A0F22-4017-4A37-843E-07931CE94D32@kreme.com> X-Mailer: Apple Mail (2.3445.100.13.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 17:58:52 -0000 On 29 Jun 2018, at 06:26, Erich Dollansky = wrote: > there was recently a long discussion regarding this. My solution is to > create a file-backed memory disk and use it for swap when the media is > not able or has to be reformatted. I still use the old-fashioned 2 * > RAM size to determine my swap space. It seems overkill but I never had > problems with this saving a lot of my time. Top, after killing off some processes: Mem: 1204M Active, 424M Inact, 1072K Laundry, 219M Wired, 85M Buf, 1542M = Free It looks like what is happening is that many rsync daemon processes are = bing created and do not die. I just checked and there were 49 running = and nearly no free memory (17M). after a killall rysnc the free memory = jumped to 1542M and left 9 processes still running for several minutes. = By the time those died, memory was up to 2300M free. So it appears the = issue is less swap and more rsync spawning many processes for some = reason. # rsyncd.log # Set this if you want to stop rsync daemon with rc.d scripts pid file =3D /var/run/rsyncd.pid uid =3D root gid =3D wheel [root] path =3D / auth users =3D root secrets file =3D /usr/local/etc/rsyncd.secrets