From owner-freebsd-stable@FreeBSD.ORG Thu Jan 23 13:02:33 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AFD5EE3 for ; Thu, 23 Jan 2014 13:02:33 +0000 (UTC) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F5461B4A for ; Thu, 23 Jan 2014 13:02:33 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1W6JvS-00032l-PF for freebsd-stable@freebsd.org; Thu, 23 Jan 2014 14:02:31 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-stable@freebsd.org Subject: Re: Processes are incorrectly marked as swapped out References: <2D47B79E-C171-4B91-B0AB-4DD2212770C6@gmail.com> Date: Thu, 23 Jan 2014 14:02:29 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <2D47B79E-C171-4B91-B0AB-4DD2212770C6@gmail.com> User-Agent: Opera Mail/12.16 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.5 X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 X-Scan-Signature: 5a1627636b35b65657045ef62631cd80 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 13:02:33 -0000 On Thu, 23 Jan 2014 13:19:36 +0100, Dmitry Sivachenko wrote: > Hello! > > After upgrade from stable/9 to stable/10 I see the following regression. > Some processes are marked as swapped out in top(1) output: > > 1436 root 1 43 0 16524K 0K nanslp 14 1:14 0.00% > > 1381 smmsp 1 20 0 23988K 0K pause 18 0:04 0.00% > 99348 mitya 1 21 0 23492K 0K pause 16 0:00 0.00% > > > ps(1) also shows them as swapped out (W as second character in state > field): > 1381 - IWs 0:00.00 sendmail: Queue runner at 00:30:00 for > /var/spool/clie > 1436 - IWs 0:00.00 /usr/sbin/cron -s > 80231 - IWs 0:00.00 /usr/local/sbin/collectdmon -c > /usr/local/sbin/coll > 99348 1 IWs 0:00.00 -csh (csh) > > Though swapinfo reports that zero swap is used and even if I turn swap > completely off (swapoff -a) > the output of both top(1) and ps(1) does not change: these processes are > still marked as swapped out. The code of an application can get removed from memory, because there still is an image of it in the executable on disk. It can be 'swapped' in by reading the executable again. The program is memory mapped (mmap). See VN PAGER vs SWAP PAGER in 'systat -vm'. Ronald.