From owner-freebsd-questions Sat Apr 22 23:27:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from praseodumium.btinternet.com (praseodumium.btinternet.com [194.73.73.82]) by hub.freebsd.org (Postfix) with ESMTP id 65C9C37B8C7 for ; Sat, 22 Apr 2000 23:27:14 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from [213.1.96.203] (helo=parish.my.domain) by tantalum with esmtp (Exim 2.05 #1) id 12j4k6-0004cG-00 for questions@freebsd.org; Sat, 22 Apr 2000 19:34:58 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id TAA00574 for questions@freebsd.org; Sat, 22 Apr 2000 19:35:01 +0100 (BST) (envelope-from mark) Date: Sat, 22 Apr 2000 19:35:01 +0100 From: Mark Ovens To: questions@freebsd.org Subject: Recovering from "out of swap space" Message-ID: <20000422193501.A232@parish> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yesterday whilst running several instances of Netscape and Acroread my machine hung. There was several minutes of endless disk thrashing, but no response from the keyboard or mouse. Trying to switch to a ttyv resulted in a blank screen. Despite waiting ~10 minutes after the disk thrashing stopped I resorted to the good old 3-finger salute. Checking /var/log/messages after re-booting I found: Apr 22 05:04:24 parish /kernel: swap_pager: out of swap space Apr 22 05:04:24 parish /kernel: swap_pager_getswapspace: failed OK, I know the cause and the solution, but what I am curious about is why can't FreeBSD handle this situation? I would have expected it to kill the process that needed the swap, or at least allow me to switch to a ttyv and kill processes manually. Curiously, it did shutdown cleanly as no fs errors appeared (and fsck didn't run) when it re-started. Is there any way to recover from an out of swap situation without resorting to a reboot? # uname -a FreeBSD parish 4.0-STABLE FreeBSD 4.0-STABLE #1: Sat Mar 18 18:53:40 GMT 2000 mark@parish:/usr/src/sys/compile/PARISH i386 # -- ...and on the eighth day God created UNIX ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message