Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2020 03:55:04 -0700
From:      Donald Wilde <dwilde1@gmail.com>
To:        Peter Jeremy <peter@rulingia.com>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: swap space issues
Message-ID:  <CAEC7390nL0hcevR=0fM0ye9f2WwGt%2BH-8Oj7WTzWkC5aY%2BAtRQ@mail.gmail.com>
In-Reply-To: <20200626102331.GA6406@server.rulingia.com>
References:  <CAEC7391qs%2BA-jMpR1RyvR-BmnLyiksXHkQUjsGeePuEZJfMciw@mail.gmail.com> <20200625000410.GA10210@eureka.lemis.com> <CAEC7390VDxbYSY%2B4_fEaYxwdSPzbFWUVTdHw=vbAgq%2Bnmv09Vw@mail.gmail.com> <20200625025248.GB10210@eureka.lemis.com> <CAEC73938Wjb5MHvLW36PdoAy_nso-tSN51AhUYydC6qxY99pog@mail.gmail.com> <E8763B97-2DB7-4C77-864D-08155168E352@gromit.dlib.vt.edu> <CAEC7391AHKXd0KfJdUGKMv1QRh_AtA1BrtqaQwy3dXEoJEMoDw@mail.gmail.com> <20200626102331.GA6406@server.rulingia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/26/20, Peter Jeremy <peter@rulingia.com> wrote:
> On 2020-Jun-25 11:30:31 -0700, Donald Wilde <dwilde1@gmail.com> wrote:
>>Here's 'pstat -s' on the i3 (which registers as cpu HAMMER):
>>
>>Device          1K-blocks     Used    Avail Capacity
>>/dev/ada0s1b     33554432        0 33554432     0%
>>/dev/ada0s1d     33554432        0 33554432     0%
>>Total            67108864        0 67108864     0%
>
> I strongly suggest you don't have more than one swap device on spinning
> rust - the VM system will stripe I/O across the available devices and
> that will give particularly poor results when it has to seek between the
> partitions.

My intent is to make this machine function -- getting the bear
dancing. How deftly she dances is less important than that she dances
at all. My for-real boxen will have real HP and real cores and RAM.

>
> Also, you can't actually use 64GB swap with 4GB RAM.  If you look back
> through your boot messages, I expect you'll find messages like:
> warning: total configured swap (524288 pages) exceeds maximum recommended
> amount (498848 pages).
> warning: increase kern.maxswzone or reduce amount of swap.

Yes, as I posted, those were part of the failure stream from the synth
program. When I had kern.maxswzone increased, it got through boot
without complaining.

> or maybe:
> WARNING: reducing swap size to maximum of xxxxMB per unit

The warnings were there, in the as-it-failed complaints.

> The absolute limit on swap space is vm.swap_maxpages pages but the
> realistic
> limit is about half that.  By default the realistic limit is about 4=C3=
=97RAM
> (on
> 64-bit architectures), but this can be adjusted via kern.maxswzone (which
> defines the #bytes of RAM to allocate to swzone structures - the actual
> space allocated is vm.swzone).
>
> As a further piece of arcana, vm.pageout_oom_seq is a count that controls
> the number of passes before the pageout daemon gives up and starts killin=
g
> processes when it can't free up enough RAM.  "out of swap space" messages
> generally mean that this number is too low, rather than there being a
> shortage of swap - particularly if your swap device is rather slow.
>
Thanks, Peter!
--=20
Don Wilde
****************************************************
* What is the Internet of Things but a system *
* of systems including humans?                     *
****************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEC7390nL0hcevR=0fM0ye9f2WwGt%2BH-8Oj7WTzWkC5aY%2BAtRQ>