From nobody@FreeBSD.org  Tue Sep 11 04:23:38 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1198716A417
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2007 04:23:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0A0F213C465
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2007 04:23:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8B4NbJl078383
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Sep 2007 04:23:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l8B4Nbqw078382;
	Tue, 11 Sep 2007 04:23:37 GMT
	(envelope-from nobody)
Message-Id: <200709110423.l8B4Nbqw078382@www.freebsd.org>
Date: Tue, 11 Sep 2007 04:23:37 GMT
From: Tom Donnelly <tad1214@aol.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Memory Leak with cp in ntfs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116275
>Category:       i386
>Synopsis:       Memory Leak with cp in ntfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 11 04:30:01 GMT 2007
>Closed-Date:    Tue Sep 11 09:03:32 GMT 2007
>Last-Modified:  Tue Sep 11 09:03:32 GMT 2007
>Originator:     Tom Donnelly
>Release:        6-Stable
>Organization:
>Environment:
FreeBSD Cardinal.donnelly.servebeer.com. 6.2-STABLE FreeBSD 6.2-STABLE #5: Wed Sep  5 18:25:42 CDT 2007     TDonnelly@Cardinal.donnelly.servebeer.com.:/usr/obj/usr/src/sys/CARDINAL  i386

>Description:
freeBSD 6-stable
KDE 3.5.7
Xorg 7.2

Whenever I do a copy from an NTFS partition using the default ntfs reader, (mount -t ntfs /dev/ad0s1 /mnt) with big files, My memory fills until full. I have 2 GB of ram and copying a 600mb file from My Documents in windows to my home in freeBSD.

Here is what I did step by step. It does this consistantly.
Open a konsole (terminal)
su
mount /dev/ad0s1 /mnt
cd /mnt/path/to/my/file/
cp filename ~/
(Memory begins to fill until full)
(file copy finishes)
(Memory drops about 100-200mb below full)

And the memory stays full until I reboot. I feel this is serious being that if this was a server, I would have to take down a production server to restore performance.
>How-To-Repeat:
Here is what I did step by step. It does this consistantly.
Open a konsole (terminal)
su
mount /dev/ad0s1 /mnt
cd /mnt/path/to/my/file/
cp filename ~/
(Memory begins to fill until full)
(file copy finishes)
(Memory drops about 100-200mb below full)

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Sep 11 09:03:30 UTC 2007 
State-Changed-Why:  
Hello, thank you for your report, but this is not a problem at all. It 
is very normal that the memory free, drops to a couple of megabytes, 
why? the system uses the rest of the space to do caching stuff, which 
speeds up various system things. When the system needs the memory again, 
it will be released and reallocated to the requestor. So again, thanks 
for the report, but this is not a bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116275 
>Unformatted:
