From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 31 07:29:12 2014 Return-Path: Delivered-To: freebsd-hackers@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 8044D154 for ; Thu, 31 Jul 2014 07:29:12 +0000 (UTC) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 197042442 for ; Thu, 31 Jul 2014 07:29:11 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id n12so2340676wgh.9 for ; Thu, 31 Jul 2014 00:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=MUL5b8UMRcHRsHxj4ghNIiSG5qQdDGFhqg3vMEVhusw=; b=RhEjxx4ymX5s4IaBj50bW00auVvXAxOEeo0c6qOk8hoDiEBSeUkp67/hfsCeA0Elxz X9oXwxbzM/DTXZnb+1ycYXMNGFw3H2xtF+3XsR+zfV9s4yIXMjlFlYQq5HvnjQCJKYPJ yObdPCTpSw0xGr2fij54CCloNjZ8jQubcM1VkOrfiVu3q/n/gQH55yuifl7w9rlOr07M 11QpGP9bPLGHp5jE8CNXZhNVwIAQRB6Vcf0mWDJ2uzoO1AUwRs8nDzJ13zhfPNu7Ig+L m0gyyA4BEIE9HA8k1tjpcIT0Rqq8awNoFE6MqnO74WYHOzJ4thrHVa/jnbuvAE3goVz5 AL5Q== X-Received: by 10.194.62.140 with SMTP id y12mr14161641wjr.27.1406791750305; Thu, 31 Jul 2014 00:29:10 -0700 (PDT) Received: from [192.168.2.100] (dhcp46-187-149-223.eaw.com.pl. [46.187.149.223]) by mx.google.com with ESMTPSA id fb12sm11351401wjc.43.2014.07.31.00.29.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jul 2014 00:29:09 -0700 (PDT) Message-ID: <53D9F04C.6080607@gmail.com> Date: Thu, 31 Jul 2014 09:29:16 +0200 From: Adi User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 10 swapping Idle processes :/ References: <53D962A7.5090105@gmail.com> <53D97C71.3050806@freebsd.org> In-Reply-To: <53D97C71.3050806@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 07:29:12 -0000 Hello > That looks odd, the output of top shows 0 swap usage, but also 0 > resident memory for most of the processes... Yes very odd. After server restart or after restart all deamons processes working normally (in memory not in SWAP) for few (1-3) hours. Then start odd swapping. And this is not temporary (for the possible disappearance of the "swapping trigger") only lasting behavior. Process is moved from SWAP to memory if is not idle. And back to SWAP after idle few seconds. Now after 10 h from write this thread still 84 processes is in swap. procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 0 0 84 14863M 682M 315 0 0 0 331 546 0 0 89 1769 722 0 0 100 After restart all processes procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id 0 0 0 13908M 1213M 318 0 0 0 335 547 0 0 89 1775 722 0 0 100 SWAP partition is gmirrored - it has no significance ;) # Device Mountpoint FStype Options Dump Pass# /dev/mirror/swap none swap sw 0 0 /dev/mirror/root / ufs rw 1 1 /dev/mirror/tmp /tmp ufs rw 2 2 /dev/mirror/var /var ufs rw 2 2 /dev/mirror/usr /usr ufs rw 2 2 /dev/mirror/home /home ufs rw 2 2 tmpfs /var/pgsql/data/pg_stat_tmp tmpfs rw,size=2m,uid=pgsql,gid=pgsql,nosuid 0 0 Similar problem is in thread: http://lists.freebsd.org/pipermail/freebsd-hackers/2014-January/044040.html Best Regards