Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 11:36:57 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Nik Azam <freebsd-list@nikazam.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Memory leak in ZFS?
Message-ID:  <20110113103657.GC1723@garage.freebsd.pl>
In-Reply-To: <AANLkTi=8fFwiaQ4%2Bm_cWFkXwpa4_W0_DDV2aW8vyNU4E@mail.gmail.com>
References:  <AANLkTi=8fFwiaQ4%2Bm_cWFkXwpa4_W0_DDV2aW8vyNU4E@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--WfZ7S8PLGjBY9Voh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 13, 2011 at 12:36:51AM +0000, Nik Azam wrote:
> Hi all,
>=20
> For the past few weeks, I noticed that the amount of memory reported in t=
op
> (sum of active, inact, wired, cache buf and free) keeps decreasing as the
> uptime increases. I can't pinpoint to when I first noticed this, as I have
> updated the system a few times just in case this has been fixed.
>=20
> The box has 8GB of RAM, running 8.2-PRERELEASE r216693. The ZFS pool
> consists of two RAIDZ1 with 5 disks each and 50GB L2 ARC. Root filesystem=
 is
> on UFS on separate disk. I have samba, netatalk, istgt, mysql and apache
> running on the box.
>=20
> After booting up, top reports I have 8GB of memory as expected. After mov=
ing
> files around in the ZFS pool, the ARC grows to 4GB (the maximum size I se=
t).
> Now the box has been up for 10 days, and the sum of memory reported in top
> is about 4GB (3GB wired). ARC size is about 2GB. I tried stopping all the
> services running, but this didn't help. When unmounting the ZFS pool (via
> /etc/rc.d/zfs stop), top reports that I have 8GB again. Throughout the 10
> days period, there is no user activity at all to the UFS filesystem.
>=20
> Is there anything sinister happening here? Or is it just top is playing
> tricks on me?

The easiest way to check for memory leaks is to export the pool and
unload zfs.ko. If the leaks exist, they will be reported on the system
console.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--WfZ7S8PLGjBY9Voh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk0u1ckACgkQForvXbEpPzTvqQCfZnvv3sUW0uQM+DPi+P4SDTvp
vuUAnRmKLacklj3OcVEaZCwdYMKqDG2F
=L57n
-----END PGP SIGNATURE-----

--WfZ7S8PLGjBY9Voh--



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