From owner-freebsd-questions@FreeBSD.ORG Mon Apr 21 21:53:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C509C37B401 for ; Mon, 21 Apr 2003 21:53:58 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 881C143FDD for ; Mon, 21 Apr 2003 21:53:57 -0700 (PDT) (envelope-from blueeskimo@gmx.net) Received: (qmail 15274 invoked by uid 65534); 22 Apr 2003 04:53:56 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [192.168.56.5]) (216.58.29.174) by mail.gmx.net (mp018-rz3) with SMTP; 22 Apr 2003 06:53:56 +0200 Date: Tue, 22 Apr 2003 00:53:59 -0400 From: Adam To: freebsd-questions@freebsd.org Message-Id: <20030422004530.CAAB.BLUEESKIMO@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.05.10 Subject: Strange networking behaviour (memory leak?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 04:53:59 -0000 I've recently become very concious of possible memory leaks on my FreeBSD box. While troubleshooting a particular memory leak, I came across some very peculiar behaviour when copying files over the local 100mbit network. When copying files over the network, the free memory on my FreeBSD box drops at a rate of about 30mb every couple seconds. It eventually bottoms out at about 500k free. If I kill the active transfer, the amount of free RAM is not affected. However, if I delete the file that was being written to the FreeBSD box, the free RAM instantaneously increases by about 400-450mb. Note that this has only been tested on transfers of large files (>600mb). I've tested this behaviour both by downloading from my Windows computer to the FreeBSD box (using lftp on FreeBSD), and by uploading from the Windows computer to the FreeBSD machine via PureFTPd (SFTP behaves similarly, but much slower since I get max 165k/s via SFTP). Is this behaviour expected? Is it normal? I'm running FreeBSD v4.7 on an Athlon 1.5GHz with 512mb DDR RAM. Thanks, -- Adam