Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 13:53:27 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        gurenchan@gmail.com, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: get_swap_pager(x) failed
Message-ID:  <C19068B6-2578-41B8-9076-97448C2AF5CB@dsl-only.net>

next in thread | raw e-mail | index | archive | help
blubee blubeeme gurenchan at gmail.com wrote on
Tue Dec 12 15:58:19 UTC 2017 :

> On Tue, Dec 12, 2017 at 3:34 PM, blubee blubeeme <gurenchan at =
gmail.com
> >wrote:
> > I am seeing tons of these messages while running tail -f =
/var/log/messages
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > Dec 12 15:11:41 blubee kernel: swap_pager_getswapspace(25): failed
> . . .
> >  1159 blubee        5  20    0   149M 56876K select  6   1:05   =
0.00%
> > ibus-engine-chewing
> >
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >
> > What's with all the swap errors? I am running ZFS and I have 16GB of =
ram,
> > how could I be having swap space errors?
> >
>=20
> Well I added 4GB of extra swap in /var/tmp/swap0
> then added that to my /etc/fstab: md99                    none    swap
> sw,file=3D/var/tmp/swap0,late     0       0
>=20
> and those errors went away.

I recommend reviewing bugzilla 206048 (title in part
"swapfile usage hangs; swap partition works"):

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206048

before using file-system based swap spaces. They have
lots of problems with deadlocks. See especially comments
#7 and #8 quoting Konstantin Belousov. #8 is just a
reference to:

=
https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kern=
eldebug-deadlocks.html

Comment #3 shows a way to test for the problematical
behavior.

Using swap partitions avoids the issue.

=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C19068B6-2578-41B8-9076-97448C2AF5CB>