From owner-freebsd-bugs@freebsd.org Wed Oct 31 04:48:25 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19EA610789E2 for ; Wed, 31 Oct 2018 04:48:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A5A088ACBF for ; Wed, 31 Oct 2018 04:48:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6AE5510789DE; Wed, 31 Oct 2018 04:48:24 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 490E210789DD for ; Wed, 31 Oct 2018 04:48:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD1E98ACBD for ; Wed, 31 Oct 2018 04:48:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E54F71CBF0 for ; Wed, 31 Oct 2018 04:48:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w9V4mMi1003898 for ; Wed, 31 Oct 2018 04:48:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9V4mMmo003897 for bugs@FreeBSD.org; Wed, 31 Oct 2018 04:48:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 232800] Processes killed out of swap space Date: Wed, 31 Oct 2018 04:48:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: teksimian@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2018 04:48:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232800 --- Comment #2 from teksimian@gmail.com --- (In reply to Mark Millard from comment #1) Thank you for your feedback. I've added vm.pageout_oom_seq=3D120 to sysctl.= conf. Both of the following messages have been logged; Oct 30 23:08:20 host kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1143, size: 16384 Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 477,size 69632, error 12 swap is filebacked; [user@host /var/log]$ cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# ... md99 none swap sw,late,file=3D/usr/swap0 0 0 the swap file is in /usr which is the same fs as / (it was provisioned this= way by the cloud provider.) I can roll back the vm to a 10.4 snapshot. I'm confident the issue wouldnt be present. The 10.4 install has been solid, a= nd this began /immediately/ after the upgrade. Reboot 1 [user@host /var/log]$ sudo less all.log ... Oct 30 23:05:58 host kernel: Starting jails: Oct 30 23:08:20 host kernel: Oct 30 23:08:20 host kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1143, size: 16384 Oct 30 23:08:20 host last message repeated 2 times Oct 30 23:08:20 host kernel: pid 2532 (mysqld), uid 88, was killed: out of = swap space Oct 30 23:08:20 host kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 1143, size: 16384 Oct 30 23:08:20 host last message repeated 2 times Oct 30 23:08:20 host kernel: pid 791 (ntpd), uid 0, was killed: out of swap space Oct 30 23:08:20 host kernel: Oct 30 23:08:20 host kernel: pid 2532 (mysqld), uid 88, was killed: out of swap space Oct 30 23:08:20 host kernel: Oct 30 23:08:20 host kernel: pid 791 (ntpd), u= id 0, was killed: out of swap space ... [user@host /var/log]$ uname -a FreeBSD host.domain.com 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep= 27 08:16:24 UTC 2018=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [user@host /var/log]$ swapinfo Device 1K-blocks Used Avail Capacity /dev/md99 524288 5296 518992 1% [user@host /var/log]$ uptime 11:13PM up 8 mins, 2 users, load averages: 0.06, 0.11, 0.08 [user@host /var/log]$ sudo service ntpd start Starting ntpd. [user@host /var/log]$ sudo jail -c sql sql: created [user@host /var/log]$ swapinfo Device 1K-blocks Used Avail Capacity /dev/md99 524288 59912 464376 11% [user@host /var/log]$ jls JID IP Address Hostname Path 2 127.0.0.253 php.domain.com /usr/local/jails/php 3 127.0.0.254 www.domain.com /usr/local/jails/www 4 127.0.0.252 sql.domain.com /usr/local/jails/sql Reboot 2 [user@host /var/log]$ sudo less all.log Oct 30 23:16:50 host kernel: Starting jails: Oct 30 23:16:52 host kernel: Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 445,size 131072, error 12 Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 477,size 69632, error 12 Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 494,size 8192, error 12 ... Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 946,size 69632, error 12 Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 963,size 36864, error 12 Oct 30 23:16:52 host kernel: swap_pager: I/O error - pageout failed; blkno 972,size 12288, error 12 Oct 30 23:18:12 host kernel: pid 2532 (mysqld), uid 88, was killed: out of = swap space Oct 30 23:18:12 host kernel: Oct 30 23:18:12 host kernel: pid 2532 (mysqld), uid 88, was killed: out of swap space [user@host ~]$ uptime 11:18PM up 2 mins, 1 user, load averages: 0.23, 0.25, 0.11 [user@host ~]$ jls JID IP Address Hostname Path 2 127.0.0.253 php.domain.com /usr/local/jails/php 3 127.0.0.254 www.domain.com /usr/local/jails/www [user@host ~]$ swapinfo Device 1K-blocks Used Avail Capacity /dev/md99 524288 5752 518536 1% [user@host ~]$ sudo jail -c sql sql: created [user@host ~]$ swapinfo Device 1K-blocks Used Avail Capacity /dev/md99 524288 54272 470016 10% --=20 You are receiving this mail because: You are the assignee for the bug.=