From owner-freebsd-questions@freebsd.org Sat Dec 29 14:40:33 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 1E6DC1421B27 for ; Sat, 29 Dec 2018 14:40:33 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48E8D70E49 for ; Sat, 29 Dec 2018 14:40:32 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id wBTEeOCa056005 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 29 Dec 2018 15:40:24 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id wBTEeOh6056002 for ; Sat, 29 Dec 2018 15:40:24 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Sat, 29 Dec 2018 15:40:24 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: "freebsd-questions@freebsd.org" Subject: Re: system hanging with swap_pager_getswapspace In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.fig.ol.no 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: Sat, 29 Dec 2018 14:40:33 -0000 On Fri, 28 Dec 2018 17:47-0800, Kurt Buff - GSEC, GCIH wrote: > All, > > I'm using 'synth upgrade-system', and the system eventually hangs > building rust (I'm pretty sure - that's the last thing I see in the > display). > > The errors on screen are swap_pager_getswapspace(32) and > swap_pager_getswapspace(24) > > I have done some STFW, and have found complaints about synth eating RAM. > > This machine is a VM under VMware Workstation Pro, and has 8gb of RAM > and 100gb of disk. > > The disk is divided up thusly: > $ gpart show > => 40 209715120 da0 GPT (100G) > 40 1024 1 freebsd-boot (512K) > 1064 984 - free - (492K) > 2048 4194304 2 freebsd-swap (2.0G) > 4196352 205516800 3 freebsd-zfs (98G) > 209713152 2008 - free - (1.0M) > > Just now I've created a 1gb swap file following > https://www.freebsd.org/doc/handbook/adding-swap-space.html > > I'm going to try upgrading again, but am wondering if anyone has > suggestions beyond what I've configured. Try disabling the use of memorybased filesystems. My /usr/local/etc/synth/synth.ini sports: Tmpfs_workdir= false Tmpfs_localbase= false Maybe you should limit the number of builders (workers) and the number of jobs each builder can run simultaneously. On a dedicated 8 core builder at $WORK, I use 4 builders with 4 jobs each, thus placing a high strain on the CPUs in the worst cases. You should also give synth roughly 1.5 - 2 GiBs of memory for each job run in parallel. On my own 4 core server, I use 2 builders with 2 jobs each. -- Trond.