From owner-freebsd-questions@FreeBSD.ORG Fri Dec 27 02:45:38 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 235A6830 for ; Fri, 27 Dec 2013 02:45:38 +0000 (UTC) Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AFD051640 for ; Fri, 27 Dec 2013 02:45:37 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id t60so7843889wes.34 for ; Thu, 26 Dec 2013 18:45:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=gfvW2DoM6753CK/02eH4WyjdLyDKCkoTk2Y8+fVklwg=; b=apq/mjZ+WWWdrT3eQ2T5ZAgDUnW25u5CiQyDAL40ogbPcJgBF/1/rcwPxJi9WWe9A3 O0hKOgsXe2C+kCdm8F8m5b3RfpZ1kzV1GJaZMzhi41Nis/6NBgLwUaaP58uZpQ73DGaE T9+qKAgfbnV0isj8Tt3vCckNDHkKhS0iI5VOgIkq84Nji/T2yAW/YceJY4pk3ml9OcGM FAaVtNm3IFXfAJTd9ihtmQ7zFPfKj0wFFk1r+dP+LKhzGwCQHSZ1YSq8UxP0h8JEzyUY lv1j3YMmSY+wg3ym0RlH6Wl9pHD+xCL9PyV2h7/h7cuuDd+Ow2MLn0rcgsPqjPsnHoyD xIvw== X-Gm-Message-State: ALoCoQkwduARqrAxKNvumM7iaMTy+IdBtDMUCUsBZARztQFGdL1BH0q9xW5JrJSMbVGtmJo1Xsrk X-Received: by 10.180.94.7 with SMTP id cy7mr31492234wib.21.1388112329872; Thu, 26 Dec 2013 18:45:29 -0800 (PST) Received: from phenom.cordula.ws (p5DDDAA3A.dip0.t-ipconnect.de. [93.221.170.58]) by mx.google.com with ESMTPSA id o4sm19001362wiy.2.2013.12.26.18.45.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Dec 2013 18:45:28 -0800 (PST) Message-ID: <52BCE9C6.50603@cordula.ws> Date: Fri, 27 Dec 2013 03:45:26 +0100 From: cpghost User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: FreeBSD Questions Subject: exit(2) and swap Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2013 02:45:38 -0000 Hello, I'm wondering (again) how exit(2) and swap interact. I have some process (rtin from ports/tin) taking a LONG time to exit, if it has a lot of pages swapped out. Looking at top(1), it seems as if that process tries to swap pages in again from disk, before shutting down. Is it just rtin doing something funny before exiting, or is that a general problem with FreeBSD's exit(2) implementation? Is there a knob somewhere to tell exit(2) to terminate the process WITHOUT swapping pages back in (simply abandoning them on disk)? It's annoying having to wait for such a long time and generate so much disk activity just to exit a process that won't need those pages anymore anyway. Oh, this is on FreeBSD 9.2-STABLE r256534 amd64. Thanks, -cpghost. -- Cordula's Web. http://www.cordula.ws/