From owner-freebsd-current@freebsd.org Tue Dec 12 22:00:15 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCC3AE865F6 for ; Tue, 12 Dec 2017 22:00:15 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-133.reflexion.net [208.70.210.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B51874FC7 for ; Tue, 12 Dec 2017 22:00:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 10070 invoked from network); 12 Dec 2017 21:53:28 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 12 Dec 2017 21:53:28 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Tue, 12 Dec 2017 16:53:28 -0500 (EST) Received: (qmail 20349 invoked from network); 12 Dec 2017 21:53:28 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 12 Dec 2017 21:53:28 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id ED2ABEC9296; Tue, 12 Dec 2017 13:53:27 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: get_swap_pager(x) failed Message-Id: Date: Tue, 12 Dec 2017 13:53:27 -0800 To: gurenchan@gmail.com, FreeBSD Current X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 22:00:16 -0000 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 >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