Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2014 09:29:16 +0200
From:      Adi <adirmj@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD 10 swapping Idle processes :/
Message-ID:  <53D9F04C.6080607@gmail.com>
In-Reply-To: <53D97C71.3050806@freebsd.org>
References:  <53D962A7.5090105@gmail.com> <53D97C71.3050806@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53D9F04C.6080607>