Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2018 15:40:24 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: system hanging with swap_pager_getswapspace
Message-ID:  <alpine.BSF.2.21.9999.1812291531300.1367@mail.fig.ol.no>
In-Reply-To: <CADy1Ce59EV0HXGZrR2QbJUr9%2Bw1-=fndEonpyMsK9RvWmYuMDw@mail.gmail.com>
References:  <CADy1Ce59EV0HXGZrR2QbJUr9%2Bw1-=fndEonpyMsK9RvWmYuMDw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.9999.1812291531300.1367>