From owner-freebsd-fs@FreeBSD.ORG Tue Feb 8 18:44:18 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 3ED25106564A for ; Tue, 8 Feb 2011 18:44:18 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id E32428FC13 for ; Tue, 8 Feb 2011 18:44:17 +0000 (UTC) Received: from static-78-8-144-74.ssp.dialog.net.pl ([78.8.144.74] helo=[192.168.0.2]) by mainframe.kkip.pl with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1PmsXp-0000t7-7y; Tue, 08 Feb 2011 19:44:16 +0100 Message-ID: <4D518EF6.7000408@kkip.pl> Date: Tue, 08 Feb 2011 19:44:06 +0100 From: Bartosz Stec User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Martin Matuska References: <4D510BBB.1060708@kkip.pl> <20110208102727.GA8555@icarus.home.lan> <4D5138D6.6020007@FreeBSD.org> In-Reply-To: <4D5138D6.6020007@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: admin@kkip.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.5 X-Spam-Score-Int: -84 X-Exim-Version: 4.73 (build at 10-Jan-2011 16:29:01) X-Date: 2011-02-08 19:44:16 X-Connected-IP: 78.8.144.74:59634 X-Message-Linecount: 42 X-Body-Linecount: 29 X-Message-Size: 1949 X-Body-Size: 1261 X-Received-Count: 1 X-Recipient-Count: 2 X-Local-Recipient-Count: 2 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Cc: freebsd-fs@freebsd.org 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: Tue, 08 Feb 2011 18:44:18 -0000 W dniu 2011-02-08 13:36, Martin Matuska pisze: > I am using ZFS and sendfile(2) with apache, lighttpd, nginx and on > FreeBSD 8.2-RC (v15 or with ZFS v28 patch). The systems concerned are > quite busy. > E.g. lighttpd servers delivering 30-50 Megabytes per second (half a > gigabit) or samba servers delivering to hundreds of users. > > Since FreeBSD 8.1, really a lot of bugfixes have been ported to ZFS > including very important sendfile(2) fixes and I highly recommend > upgrading to 8.2 or 8-STABLE. > As of v28, I am using the patch for 8-STABLE on several production servers. > > When 8.2-RELEASE is out, I plan to put a v28 patch + v28 binary upgrade > kit on my webpage. > > As of the memory usage shown by top(1), I have noticed that memory used > by some programs using IPC shared memory (e.g. postgresql) do not show > up in the counts. > After stopping the program the count is "fixed" again. > This machine was rebuilded from fresh sources two days ago, so whatever this bug is, it must be quite new (probably appeared in january 2011). By the way, I wrote (very) simple script for myself, quite helpful with leakage monitoring. Maybe you'll find it useful too if you're experiencing same issue: http://pastebin.com/sQUyQbmm -- Bartosz Stec