From owner-freebsd-fs@FreeBSD.ORG Wed Feb 9 00:49:43 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 416FB10656AC for ; Wed, 9 Feb 2011 00:49:43 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 03A318FC29 for ; Wed, 9 Feb 2011 00:49:42 +0000 (UTC) Received: by iwn39 with SMTP id 39so6399837iwn.13 for ; Tue, 08 Feb 2011 16:49:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=//Tf9VHsEkuPWi9MOcfm54h/aa+naI0c7BksmPV0C/s=; b=UPovi5YC913nBMiCk2NT6+in162czjFpCbNNVKHcDI5HI7DqjhoRFLDTGFdno7SPUF h+q+MLfGRfJCsygSsH6bhLsL5nOJUpZowXn5SeS2NGRCO4jrLtYftJAUYIVjSDtjTgpI tgaxUww1qBVsRSMgopDKsMR8j4R6s1uXSgiu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=tD6YrKns/oOJ0OBlkYVkb3uvunyArSntcjWHfCtiJ8nnFparcxXA9pAti92fW+o0DB vvckDsLS4eiE1HDze/IZ0rWPTLmSE3H7nG0RYycQX8jVlqWfoeisxhLd4KmQiGf1Z16n Pai2fDXfNBdzda5CtfgRnlFyPQC/OTA7LXK8c= Received: by 10.42.217.197 with SMTP id hn5mr1542025icb.529.1297212582177; Tue, 08 Feb 2011 16:49:42 -0800 (PST) Received: from [192.168.1.2] (CPE00236909a9fe-CM00195eca698c.cpe.net.cable.rogers.com [99.236.13.52]) by mx.google.com with ESMTPS id 8sm114329iba.16.2011.02.08.16.49.40 (version=SSLv3 cipher=OTHER); Tue, 08 Feb 2011 16:49:40 -0800 (PST) Message-ID: <4D51E42A.2090208@gmail.com> Date: Tue, 08 Feb 2011 19:47:38 -0500 From: Jeremy Faulkner User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110130 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4D510BBB.1060708@kkip.pl> <20110208102727.GA8555@icarus.home.lan> <4D511F65.2050503@kkip.pl> <4D519F97.2000805@kkip.pl> <4D51A969.5090203@gmail.com> <4D51B775.2010100@kkip.pl> In-Reply-To: <4D51B775.2010100@kkip.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Memory leak in ZFS? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2011 00:49:43 -0000 On 02/08/11 16:36, Bartosz Stec wrote: > >> gldisater@constans:~% zpool upgrade >> This system is currently running ZFS pool version 28. >> >> All pools are formatted using this version. >> gldisater@constans:~% sh memleak-detect.sh >> PHYSMEM: 12268.94 MB >> ACTIVE: 427.57 MB >> INACTIVE: 724.98 MB >> WIRED: 10155.28 MB >> CACHED: 28.32 MB >> FREE: 556.16 MB >> SUM: 11892.32 MB >> ------------------------ >> MISSING: 376.61 MB >> >> gldisater@constans:~% uname -a >> FreeBSD constans 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #14: Tue Jan 18 >> 15:26:02 EST 2011 root@constans:/usr/obj/usr/src/sys/CONSTANS amd64 >> gldisater@constans:~% uptime >> 3:22PM up 8 days, 5:07, 2 users, load averages: 0.21, 0.22, 0.24 >> >> > Have you noticed MISSING count increasing over time or you just looking > at this exact calculation? > This script is far from being perfect and I don't know as much about > FreeBSD internals to calculate it to show exactly zero at this point (if > it is possible at all). > It only calculates physical memory minus memory pools visible in top(1), > and on my system it gives MISSING count about 36MB just after reboot. > > What's important - check if this variable is stable over time. You can > confirm memory leakage if MISSING is increasing over time or while using > sendfile. You can try for instance 'sh memleak-detect.sh -m -r 60' to > check it every one minute. > > Cheers. > My MISSING has increased to 376.62 MB. My usage of this server is primary reading not a lot of writing so a minutely check won't show anything. I'll try to write a lot of data to it later. -- Jeremy Faulkner