Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2003 00:53:59 -0400
From:      Adam <blueeskimo@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Strange networking behaviour (memory leak?)
Message-ID:  <20030422004530.CAAB.BLUEESKIMO@gmx.net>

next in thread | raw e-mail | index | archive | help
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 <blueeskimo@gmx.net>



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