From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 06:13:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC24D15F for ; Tue, 28 Oct 2014 06:13:34 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (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 6970F74D for ; Tue, 28 Oct 2014 06:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=KBEkjA1ISMUwAmuV+CRGqdBPpL1WRMNF9CQISwmcNW0=; b=kyakMLbnRErJysfkGhi8UnT/9zYqyQd72au6/Z+yCjS+kFotAHFzK4GMa3dKfwKWr3q3HQUzeEk/3gpNx4sMeHbzxi0tpFw4KqvNrCcnQqTSC1HrxUxh+/tbIillQSppThT95gLPPAomExS7TqCgk7HnCr4gawoKTqgOOksn7qQ=; Received: from [182.8.163.163] (port=58482 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpa (Exim 4.82) (envelope-from ) id 1XizjG-0043nU-RE; Mon, 27 Oct 2014 23:54:03 -0600 Date: Tue, 28 Oct 2014 13:52:49 +0800 From: Erich Dollansky To: Jim Pazarena Subject: Re: out of swap space Message-ID: <20141028135249.7a1d8ba5@X220.alogt.com> In-Reply-To: <0fdf2022075b7a33f0abde4edd7c12a1@paz.bz> References: <0fdf2022075b7a33f0abde4edd7c12a1@paz.bz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: Freebsd Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 06:13:34 -0000 Hi, On Mon, 27 Oct 2014 12:57:55 -0700 Jim Pazarena wrote: > There is a lot of historical chatter about the amount of swap space > required. > But for my question, I haven't seen discussion: > What HAPPENS when the system flags "out of swap space". > Does a process die? or does the system merely become very sluggish? > I have dozens of "out of swap space" messages, but I cannot find any > dead and/or failed jobs. I expect that nothing much will happen when the program is well behaved except some error messages from the program requesting the memory which is not available. When the program is not able to handle failed malloc requests, you should get a dump. The dump will then be for the wrong reason. It could be that the program with the failed request writes nothing to the log files but only to the screen. It is a different story when the kernel itself is affected. The result can be anything from a simple error message in the logs to a kernel dump. Erich