From owner-freebsd-stable@FreeBSD.ORG Wed Feb 23 23:41:33 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 637AF106564A for ; Wed, 23 Feb 2011 23:41:33 +0000 (UTC) (envelope-from Henner.Heck@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id EC7A98FC14 for ; Wed, 23 Feb 2011 23:41:32 +0000 (UTC) Received: from smtp07.web.de ( [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id A4EFA189C7D73 for ; Thu, 24 Feb 2011 00:41:31 +0100 (CET) Received: from [77.3.161.16] (helo=[192.168.1.10]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1PsOKm-0008K6-00 for freebsd-stable@freebsd.org; Thu, 24 Feb 2011 00:41:31 +0100 Message-ID: <4D659B12.6050700@web.de> Date: Thu, 24 Feb 2011 00:41:06 +0100 From: Henner Heck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4D6430D9.8060609@web.de> <20110222224332.GA12504@icarus.home.lan> In-Reply-To: <20110222224332.GA12504@icarus.home.lan> Sender: Henner.Heck@web.de X-Sender: Henner.Heck@web.de X-Provags-ID: V01U2FsdGVkX1/7vRuGmCICSlczyw6V49uBaz0GKX3Eb5+9a0yH e60rgIMdPL2QPOf4+kcbDEnRg9eUEClGwNGuF3EiWv60LiPo1G MSTEkUEJA= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: FreeBSD 8.2 Release, ZFS + Samba, running out of memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2011 23:41:33 -0000 Here are my testresults: *Disabling sendfile in smb.conf *(no patching yet) - free memory drops to 570M and stays there - copy speed from share 75MB/s, CPU load 50% (why not 100% and higher speed?) *Patched kernel with patch 218795* - without sendfile Copying works. - with sendfile Copy speed often drops to zero after several hundred megabytes, no more data is transmitted, the BSD machine is 100% idle and responsive. After some time Total Commander claims that the file cannot be copied, on retry it sometimes copies the file, but the problem will usually come up with the same file again or one of the next files. The speed in both cases is between 40-70MB/s, CPU load is 30-50%, the free memory drops to about 250M, no running out of memory. *Other observations* A process named "intr" causes about 20% CPU load when copying. I wonder why. *Conclusions* When using sendfile the patch replaced a freezing system with unreliable copying. Without sendfile there seems to be no problem. I am a bit dissapointed with the speed, since the CPU is not at all maxed out. The NIC is a PCIe Intel CT 1000 (I hadn't mentioned that before.) Any idea where the bottleneck might be? Regards, Henner Heck