From owner-freebsd-questions@FreeBSD.ORG Sun Mar 15 09:28:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F362E106566C for ; Sun, 15 Mar 2009 09:28:32 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 427748FC18 for ; Sun, 15 Mar 2009 09:28:31 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n2F9RrHd041067; Sun, 15 Mar 2009 10:27:53 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n2F9RrM4041064; Sun, 15 Mar 2009 10:27:53 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 15 Mar 2009 10:27:53 +0100 (CET) From: Wojciech Puchar To: cpghost In-Reply-To: <20090315091301.GB1051@phenom.cordula.ws> Message-ID: References: <20090315091301.GB1051@phenom.cordula.ws> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Speeding up exit(2)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 09:28:33 -0000 > Not sure what's really going on there, but apparently, the process > reads in pages from swap that have been paged out previously > (according to top(1)). is it your program and you are sure it's on exit? i'm sure it's not. it's because the program is writted the way it's doing a lot of things (probably unneeded) on exit. not exit(2) itself