Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2018 22:30:17 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        Ian Lepore <ian@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Is maximum swap usage tunable?
Message-ID:  <CANCZdfodcE9SWgYf464FQeKzL7fVzG8p1oagwKeFGFGYL%2BebUQ@mail.gmail.com>
In-Reply-To: <20180305045723.GA47820@www.zefox.net>
References:  <20180228185517.GB26187@www.zefox.net> <8f422161-885e-aa91-eacd-018540222d65@mgm51.com> <20180228214301.GA29481@www.zefox.net> <b82801b8-bc29-414c-1170-621bb4a5d937@mgm51.com> <CANCZdfq_MpxjUyVd-=%2BMiAQAER4TeDh9irhx_evdXwa3yt3h0g@mail.gmail.com> <20180303162605.GA41874@www.zefox.net> <20180304182831.GA44154@www.zefox.net> <CANCZdfpcccDuhJh4EF0C4KFz=dcN5mWvQ9aMiyF53kD=hMzy3Q@mail.gmail.com> <1520189171.38056.2.camel@freebsd.org> <20180304214003.GB44154@www.zefox.net> <20180305045723.GA47820@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 4, 2018 at 9:57 PM, bob prohaska <fbsd@www.zefox.net> wrote:

> On Sun, Mar 04, 2018 at 01:40:03PM -0800, bob prohaska wrote:
> > make -j4 buildworld
> >
> > was started with the usb-hosted swap partition turned off, leaving only
> > the microSD-hosted swap running.  It got past the first cycle of
> llvm-tblgen
> > showing only half of the one GB available swap in use, with no errors or
> > warnings. There is some decent chance it'll run to completion, probably
> > late tomorrow. For now I'll just see how far it gets.
> >
> The j4 buildworld using only 1 GB swap on microSD really ran out of
> swap after a prolonged (half hour or so) interval of swread and pfault
> status in top and a stream of
>
> swap_pager_getswapspace(4): failed
>

Yes. This meant that the swapper tried to get space, but failed. It prints
this once, then all further requests print nothing until one succeeds and
then it prints it again. So you are rockering back and forth on the edge
until it finally fails...


> Mar  4 20:02:09 www kernel: pid 25154 (c++), uid 0, was killed: out of
> swap space
>

and kills something, the C++ compiler. A good choice if you are low on
space.


> on the console. There were no "indefinite wait" messages at all
>

That just means that the SD card wasn't overwhelmed this time....


> It appears that swap on microSD worked much better than
> swap on USB, only failing after hitting 85% or more of utilization
> and even then not giving up easily.
>

You likely have power issues then. Power issues and/or cheap-ass USB<->SD
adapters can cause the extremely slow writes that lead to the indefinite
wait.


> The log files for buildworld and gstat are at
> http://www.zefox.net/~fbsd/rpi3/swap_issues/
> on the chance they're worth looking at.


I'd look at power. And add more swap.

Warner


>
> bob prohaska
>
>
>
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfodcE9SWgYf464FQeKzL7fVzG8p1oagwKeFGFGYL%2BebUQ>