system hanging with swap_pager_getswapspace
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Sat Dec 29 14:40:33 UTC 2018
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.
More information about the freebsd-questions
mailing list